Skip to content

Releases

google-docs-to-markdown@2.0.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 08:41
290ada7

Major Changes

  • cc60ae0: Turn the package into a pure converter. The google-docs-to-markdown/google entry (getAuth, generateToken, fetchDocument, fetchMarkdown) and the google-docs-to-markdown-token command move to the new google-docs-sync package, and the dependencies on @googleapis/docs, google-auth-library and google-oauth2-env-vars go with them. Fetch the document with fetchDocument from google-docs-sync, then give it to toMarkdown.

gatsby-source-google-docs@3.1.1

Choose a tag to compare

@github-actions github-actions released this 21 Nov 08:41
290ada7

Patch Changes

  • cc60ae0: Source the documents with the new google-docs-sync package. The options, the output and the gatsby-source-google-docs-token command do not change.
  • Updated dependencies [cc60ae0]
  • Updated dependencies [cc60ae0]
    • google-docs-sync@0.1.0
    • google-docs-to-markdown@2.0.0

v3.1.0

Choose a tag to compare

@cedricdelpoux cedricdelpoux released this 18 Nov 07:01
f3d8a1e
  • Fixed

    • Images are downloaded again: Google now serves them from docs.google.com/docs-images-rt URLs, which the plugin did not recognize
    • An image Google cannot resize to imagesOptions is downloaded at its original size instead of not at all
    • The descriptions are read with yaml instead of yamljs, which could not read some valid YAML and dropped their metadata. A description that is not valid YAML is now reported instead of ignored silently.
    • An image whose URL expired before it was downloaded is downloaded again from a fresh URL. Google expires them a few minutes after a document is fetched, so most of the images of a large site failed with "403 Forbidden".
    • A folder with exclude: true is no longer walked through, which saves a listing of every folder it holds
    • A description written as a YAML list is ignored instead of becoming metadata named "0", "1", ...
  • Updated

    • The conversion to Markdown and the Google authentication live in google-docs-to-markdown, so they can be used without Gatsby. The output and the .env variables are the same.
    • Node 22.12 or later and Gatsby 5.3 or later are required: the plugin is an ES module, which Gatsby loads from gatsby-node.mjs
    • One Google client is used for the whole build, so the access token is refreshed once instead of once per document
    • Images are downloaded 8 at a time instead of one after the other
    • The types of the options are generated from the code
    • A date written in a description, like date: 2023-12-31, stays as written instead of becoming midnight UTC. Gatsby still reads it as a date.

v2.0.0

Choose a tag to compare

@cedricdelpoux cedricdelpoux released this 11 Mar 08:09

Added

Features:

  • Gatsby v3 support
  • Gatsby Cloud support
  • MDX support
  • Script gatsby-source-google-docs-token for token generation
  • Crosslinks between documents
  • Related content
  • Metadata from YAML Google Drive descriptions

Formats

  • Underline support
  • Blockquote support
  • Superscript support
  • Subscript support
  • Code Blocks support
  • Inline Code support
  • Footnotes support
  • Font size support
  • Foreground color support
  • Background color support
  • Horizontal tabulations
  • Vertical tabulations

Options:

  • createPages
  • pageContext
  • demoteHeadings
  • folder
  • keepDefaultStyle
  • imagesOptions
  • skipCodes
  • skipFootnotes
  • skipHeadings
  • skipImages
  • skipLists
  • skipQuotes
  • skipTables

Updated

  • Breadcrumb is now an array of {name, path}

Deleted

Options:

  • config
  • fieldsMapper
  • fieldsDefault
  • folders
  • updateMetadata