2018-07-25 07:47:26 -04:00
|
|
|
const pkg = require('./package.json');
|
|
|
|
|
|
|
|
const neatgrid = require('postcss-neat');
|
|
|
|
const nestedcss = require('postcss-nested');
|
|
|
|
const colorfunctions = require('postcss-colour-functions');
|
|
|
|
const hdBackgrounds = require('postcss-at2x');
|
|
|
|
const cssextend = require('postcss-simple-extend');
|
|
|
|
const cssvars = require('postcss-simple-vars-async');
|
|
|
|
|
|
|
|
const styleVariables = require('./src/theme');
|
|
|
|
|
|
|
|
const postCssPlugins = [
|
|
|
|
neatgrid(),
|
|
|
|
nestedcss(),
|
|
|
|
colorfunctions(),
|
|
|
|
hdBackgrounds(),
|
|
|
|
cssextend(),
|
2018-08-07 14:46:54 -06:00
|
|
|
cssvars({ variables: styleVariables }),
|
2018-07-25 07:47:26 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
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',
|
2018-08-07 14:46:54 -06:00
|
|
|
title: 'Quick Start',
|
2018-07-25 07:47:26 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'guides',
|
2018-08-07 14:46:54 -06:00
|
|
|
title: 'Guides',
|
2018-07-25 07:47:26 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'reference',
|
2018-08-07 14:46:54 -06:00
|
|
|
title: 'Reference',
|
2018-07-25 07:47:26 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'contributing',
|
2018-08-07 14:46:54 -06:00
|
|
|
title: 'Contributing',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2018-07-25 07:47:26 -04:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
path: `${__dirname}/content`,
|
2018-08-07 14:46:54 -06:00
|
|
|
name: 'content',
|
|
|
|
},
|
2018-07-25 07:47:26 -04:00
|
|
|
},
|
|
|
|
'gatsby-transformer-yaml',
|
|
|
|
'gatsby-transformer-json',
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
options: {
|
|
|
|
path: `${__dirname}/data`,
|
2018-08-07 14:46:54 -06:00
|
|
|
name: 'data',
|
|
|
|
},
|
2018-07-25 07:47:26 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-transformer-remark',
|
|
|
|
options: {
|
|
|
|
// prettier-ignore
|
|
|
|
plugins: [
|
|
|
|
'gatsby-remark-autolink-headers',
|
|
|
|
'gatsby-remark-prismjs'
|
|
|
|
]
|
2018-08-07 14:46:54 -06:00
|
|
|
},
|
2018-07-25 07:47:26 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
resolve: 'gatsby-plugin-postcss-sass',
|
|
|
|
options: {
|
2018-08-07 14:46:54 -06:00
|
|
|
postCssPlugins,
|
|
|
|
},
|
2018-07-25 07:47:26 -04:00
|
|
|
},
|
|
|
|
'gatsby-plugin-react-helmet',
|
|
|
|
'gatsby-plugin-react-next',
|
|
|
|
'gatsby-plugin-catch-links',
|
|
|
|
{
|
|
|
|
resolve: `gatsby-plugin-manifest`,
|
|
|
|
options: {
|
|
|
|
name: 'NetlifyCMS',
|
|
|
|
short_name: 'NetlifyCMS',
|
|
|
|
start_url: '/',
|
|
|
|
background_color: '#ffffff',
|
|
|
|
theme_color: '#ffffff',
|
|
|
|
display: 'standalone',
|
2018-08-07 14:46:54 -06:00
|
|
|
icon: 'static/img/favicon/icon-512x512.png',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2018-07-25 07:47:26 -04:00
|
|
|
};
|