Skip to content

Instantly share code, notes, and snippets.

@JacobKnaack
Created January 24, 2019 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JacobKnaack/398ea713ec6fc0d23939220d98c0677d to your computer and use it in GitHub Desktop.
Save JacobKnaack/398ea713ec6fc0d23939220d98c0677d to your computer and use it in GitHub Desktop.
Gatsby config file for gatsby-docs
module.exports = {
siteMetadata: {
title: `Gatsby Docs`,
description: `Create and View Minimalistic Documentation, powered by GatsbyJs and CosmicJS`,
author: `@jacobknaack`,
},
plugins: [
`gatsby-plugin-eslint`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
`gatsby-plugin-sass`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-docs`,
short_name: `docs`,
start_url: `/`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-source-graphql`,
options: {
url: `https://graphql.cosmicjs.com/v1`,
fieldName: `docs`,
typeName: `Doc`,
refetchInterval: 10,
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.app/offline
// 'gatsby-plugin-offline',
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment