doc.silverstripe.org/gatsby-config.js

77 lines
1.9 KiB
JavaScript
Raw Normal View History

2019-11-08 03:40:20 +01:00
module.exports = {
siteMetadata: {
title: `SilverStripe Documentation`,
description: `Developer documentation for the SilverStripe CMS and framework.`,
2019-11-14 00:27:55 +01:00
author: `The Silverstripe Community`,
siteUrl: `https://doc.silverstripe.org`,
2019-11-08 03:40:20 +01:00
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sass`,
`gatsby-plugin-sharp`,
2019-11-14 00:27:55 +01:00
`gatsby-plugin-sitemap`,
2019-11-08 03:40:20 +01:00
{
resolve: `gatsby-source-filesystem`,
options: {
name: `files`,
path: `${__dirname}/static`
}
},
{
resolve: `gatsby-source-git`,
options: {
name: `4`,
remote: `https://github.com/unclecheese/silverstripe-framework.git`,
branch: `pulls/4/gatsby-docs`,
patterns: `docs/en/**`
}
},
2019-11-12 04:09:29 +01:00
{
resolve: `gatsby-source-git`,
options: {
name: `3`,
remote: `https://github.com/unclecheese/silverstripe-framework.git`,
branch: `pulls/3/gatsby-docs`,
patterns: `docs/en/**`
}
},
2019-11-08 03:40:20 +01:00
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
'gatsby-remark-prismjs',
`gatsby-remark-copy-linked-files`,
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 850,
},
},
2019-11-08 03:40:20 +01:00
]
}
},
`gatsby-plugin-typescript`,
{
resolve: `gatsby-plugin-styled-components`,
options: {
// Add any options here
},
2019-11-08 04:53:25 +01:00
},
{
resolve: `gatsby-plugin-purgecss`,
options: {
printRejected: false,
2019-11-12 05:05:31 +01:00
whitelist: ['algolia-autocomplete'],
2019-11-08 11:47:42 +01:00
ignore: ['prismjs/','docsearch.js/', 'src/theme/assets/search/algolia.css'],
2019-11-08 04:53:25 +01:00
//purgeOnly : ['components/', '/main.css', 'bootstrap/'],
}
2019-11-14 04:09:30 +01:00
},
{
resolve: `gatsby-plugin-offline`,
options: {
precachePages: [`/en/4/developer_guides/*`],
},
}
2019-11-08 03:40:20 +01:00
],
}