Skip to content

v3.1.0

Choose a tag to compare

@cedricdelpoux cedricdelpoux released this 18 Nov 07:01
· 47 commits to master since this release
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.