Skip to content

nathanmsmith/gatsby-source-published-google-sheets

Repository files navigation

gatsby-source-published-google-sheets

npm Build Status

Gatsby plugin that pulls data from a published Google sheet.

Install

Use Yarn or npm.

yarn add gatsby-source-published-google-sheets
# or
npm install --save gatsby-source-published-google-sheets

How to use

  1. Make sure your spreadsheet is published.
  2. Note your spreadsheet's id. This is the random string that's in the middle of your spreadsheet's url. Google
  3. Add the plugin to plugins in your gatsby-config.js. It should look something like:
module.exports = {
  plugins: [
    {
      resolve: 'gatsby-source-published-google-sheets',
      options: {
        sheetID: 'Google sheet id',
      },
    },
  ],
}