From 3c1bb577fd52441ddca894ce6a3eee1ac9b61bf6 Mon Sep 17 00:00:00 2001 From: Serge Latyntcev Date: Thu, 21 Nov 2019 11:40:22 +1300 Subject: [PATCH] Fix the config --- gatsby-config.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 3528239..ec099aa 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -16,11 +16,11 @@ module.exports = { resolve: `gatsby-source-git`, options: { name: `4`, - remote: `/Users/acarlino/Sites/gatsby-docs-4`, + remote: `https://github.com/silverstripe/silverstripe-framework.git`, branch: `4`, patterns: `docs/en/**` } - }, + }, { resolve: `gatsby-source-git`, options: { @@ -29,14 +29,14 @@ module.exports = { branch: `3.7`, patterns: `docs/en/**` } - }, + }, { resolve: `gatsby-source-filesystem`, options: { name: `watcher--ss3`, path: `${__dirname}/.cache/gatsby-source-git/3/docs/en` } - }, + }, { resolve: `gatsby-source-filesystem`, options: { @@ -64,10 +64,10 @@ module.exports = { options: { maxWidth: 850, }, - }, + }, ] } - }, + }, `gatsby-plugin-typescript`, { resolve: `gatsby-plugin-styled-components`, @@ -75,10 +75,10 @@ module.exports = { // Add any options here }, }, - { + { resolve: `gatsby-plugin-purgecss`, options: { - printRejected: false, + printRejected: false, whitelist: ['algolia-autocomplete', 'pre', 'code'], ignore: ['prismjs/','docsearch.js/', 'src/theme/assets/search/algolia.css'], content: [ @@ -99,15 +99,15 @@ module.exports = { return content.match(/[A-Za-z0-9-_:\/]+/g) || []; } }, - extensions: ['js', 'ts', 'jsx', 'tsx'] - }, + extensions: ['js', 'ts', 'jsx', 'tsx'] + }, { // Match markdown files for icon classes (icon, iconBrand). Add each one to the // allowed selectors defined in FontAwesome. Everything else in FA should be removed. extractor: class { static extract(content) { const selectors = [`file-alt`] - const matches = content.match(/icon(Brand)?: ([a-zA-Z0-9_-]+)/); + const matches = content.match(/icon(Brand)?: ([a-zA-Z0-9_-]+)/); if (matches) { const isBrand = typeof matches[1] !== 'undefined'; selectors.push(isBrand ? `fab` : `fas`); @@ -125,7 +125,7 @@ module.exports = { resolve: `gatsby-plugin-offline`, options: { precachePages: [`/en/4/developer_guides/**`], - }, - } + }, + } ], }