gatsby-source-google-docs
  • Home

Getting Started

Features

Configuration

Options

OptionRequiredTypeDefaultExample
foldertrueString-"1Tn1dCbIc"
createPagesfalseBooleanfalsetrue
pageContextfalseArray[][``"locale"``]
demoteHeadingsfalseBoolean[]false
imagesOptionsfalseObject-{width:``512``}
skipCodesfalseBooleanfalsetrue
skipFootnotesfalseBooleanfalsetrue
skipHeadingsfalseBooleanfalsetrue
skipImagesfalseBooleanfalsetrue
skipListsfalseBooleanfalsetrue
skipQuotesfalseBooleanfalsetrue
skipTablesfalseBooleanfalsetrue
debugfalseBooleanfalsetrue

gatsby-config.js

module.exports = {
    plugins: [
        {
            resolve: "gatsby-source-google-docs",
            options: {
                // https://drive.google.com/drive/folders/FOLDER_ID
                folder: "FOLDER_ID",
                createPages: true,
            },
        },
        {
            resolve: "gatsby-transformer-remark",
            options: {
                plugins: [
                    // You need some transformations?
                    // Checkout https://www.gatsbyjs.com/plugins/?=gatsby-remark
                    // And pick-up some plugins
                ],
            },
        },
    ],
}

Congratulations! Setup is complete.