const IS_STATIC = process.env.GATSBY_IS_STATIC const OPTS = { siteMetadata: { title: 'npm cli documentation', description: 'Documentation for the npm cli.', author: '@gatsbyjs' }, plugins: [ 'gatsby-plugin-root-import', 'gatsby-plugin-react-helmet', 'gatsby-plugin-catch-links', 'gatsby-plugin-styled-components', { resolve: 'gatsby-source-filesystem', options: { name: 'src', path: `${__dirname}/content/` } }, { resolve: 'gatsby-plugin-no-sourcemaps' }, 'gatsby-plugin-sharp', { resolve: 'gatsby-plugin-manifest', options: { name: 'gatsby-starter-default', short_name: 'starter', start_url: '/', background_color: '#663399', theme_color: '#663399', display: 'minimal-ui', icon: 'src/images/npm-icon.png' // This path is relative to the root of the site. } }, { resolve: 'gatsby-plugin-google-fonts', options: { fonts: [ 'Poppins', 'Inconsolata' ] } }, { resolve: 'gatsby-transformer-remark', options: { // CommonMark mode (default: true) commonmark: true, // Footnotes mode (default: true) footnotes: true, // Pedantic mode (default: true) pedantic: true, // GitHub Flavored Markdown mode (default: true) gfm: true, // Plugins configs plugins: [{ resolve: 'gatsby-remark-autolink-headers', options: { offsetY: '100', icon: '', className: 'header-link-class', maintainCase: false, removeAccents: true } }, { resolve: 'gatsby-remark-prismjs', options: { classPrefix: 'language-', inlineCodeMarker: null, aliases: {}, showLineNumbers: false, noInlineHighlight: false } }] } } ] } const STATIC_OPTS = Object.assign({}, OPTS, { pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__', plugins: OPTS.plugins.concat(['gatsby-plugin-ipfs']) }) module.exports = IS_STATIC ? STATIC_OPTS : OPTS