mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
74 lines
2.0 KiB
JavaScript
74 lines
2.0 KiB
JavaScript
module.exports = {
|
|
siteMetadata: {
|
|
title: `SilverStripe Documentation`,
|
|
description: `Developer documentation for the SilverStripe CMS and framework.`,
|
|
author: `The Silverstripe Community`,
|
|
siteUrl: `https://doc.silverstripe.org`,
|
|
},
|
|
plugins: [
|
|
`gatsby-plugin-react-helmet`,
|
|
`gatsby-plugin-sass`,
|
|
`gatsby-plugin-sharp`,
|
|
`gatsby-plugin-sitemap`,
|
|
{
|
|
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/**`
|
|
}
|
|
},
|
|
{
|
|
resolve: `gatsby-source-git`,
|
|
options: {
|
|
name: `3`,
|
|
remote: `https://github.com/unclecheese/silverstripe-framework.git`,
|
|
branch: `pulls/3/gatsby-docs`,
|
|
patterns: `docs/en/**`
|
|
}
|
|
},
|
|
{
|
|
resolve: 'gatsby-transformer-remark',
|
|
options: {
|
|
plugins: [
|
|
'gatsby-remark-prismjs',
|
|
`gatsby-remark-copy-linked-files`,
|
|
{
|
|
resolve: `gatsby-remark-images`,
|
|
options: {
|
|
maxWidth: 850,
|
|
},
|
|
},
|
|
]
|
|
}
|
|
},
|
|
`gatsby-plugin-typescript`,
|
|
{
|
|
resolve: `gatsby-plugin-styled-components`,
|
|
options: {
|
|
// Add any options here
|
|
},
|
|
},
|
|
{
|
|
resolve: `gatsby-plugin-purgecss`,
|
|
options: {
|
|
printRejected: false,
|
|
whitelist: ['algolia-autocomplete'],
|
|
ignore: ['prismjs/','docsearch.js/', 'src/theme/assets/search/algolia.css'],
|
|
//purgeOnly : ['components/', '/main.css', 'bootstrap/'],
|
|
}
|
|
}
|
|
// this (optional) plugin enables Progressive Web App + Offline functionality
|
|
// To learn more, visit: https://gatsby.dev/offline
|
|
// `gatsby-plugin-offline`,
|
|
],
|
|
}
|