static-cms/website/gatsby-config.js

88 lines
1.9 KiB
JavaScript
Raw Normal View History

const pkg = require('./package.json');
module.exports = {
siteMetadata: {
title: 'Netlify CMS | Open-Source Content Management System',
description: 'Open source content management for your Git workflow',
siteUrl: pkg.homepage,
menu: {
docs: [
{
name: 'start',
title: 'Quick Start',
},
{
name: 'reference',
title: 'Reference',
},
{
name: 'media',
title: 'Media',
},
{
name: 'guides',
title: 'Guides',
},
{
name: 'contributing',
title: 'Contributing',
},
],
},
},
plugins: [
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/content`,
name: 'content',
},
},
'gatsby-transformer-yaml',
'gatsby-transformer-json',
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/data`,
name: 'data',
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
// prettier-ignore
plugins: [
'gatsby-remark-autolink-headers',
{
resolve: 'gatsby-remark-prismjs',
options: {
noInlineHighlight: true,
},
},
]
},
},
'gatsby-plugin-postcss',
'gatsby-plugin-react-helmet',
'gatsby-plugin-catch-links',
{
resolve: 'gatsby-plugin-netlify-cms',
options: {
modulePath: `${__dirname}/src/cms/cms.js`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'NetlifyCMS',
short_name: 'NetlifyCMS',
start_url: '/',
background_color: '#ffffff',
theme_color: '#ffffff',
display: 'standalone',
icon: 'static/img/favicon/icon-512x512.png',
},
},
],
};