fix: removed all guide bits from gatsby
This commit is contained in:
committed by
mrugesh
parent
7bc6367d68
commit
0124e7556d
@ -6,16 +6,8 @@ const {
|
||||
localeChallengesRootDir
|
||||
} = require('./utils/buildChallenges');
|
||||
|
||||
const {
|
||||
NODE_ENV: env,
|
||||
LOCALE: locale = 'english',
|
||||
API_PROXY: proxyUrl = 'http://localhost:3000'
|
||||
} = process.env;
|
||||
const { API_PROXY: proxyUrl = 'http://localhost:3000' } = process.env;
|
||||
|
||||
const selectedGuideDir = `../${
|
||||
env === 'production' ? 'guide' : 'mock-guide'
|
||||
}/${locale}`;
|
||||
const guideRoot = path.resolve(__dirname, selectedGuideDir);
|
||||
const curriculumIntroRoot = path.resolve(__dirname, './src/pages');
|
||||
|
||||
module.exports = {
|
||||
@ -50,13 +42,6 @@ module.exports = {
|
||||
curriculumPath: localeChallengesRootDir
|
||||
}
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-source-filesystem',
|
||||
options: {
|
||||
name: 'guides',
|
||||
path: guideRoot
|
||||
}
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-source-filesystem',
|
||||
options: {
|
||||
@ -97,19 +82,6 @@ module.exports = {
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-remark-node-identity',
|
||||
options: {
|
||||
identity: 'guideMarkdown',
|
||||
predicate: ({ frontmatter }) => {
|
||||
if (!frontmatter) {
|
||||
return false;
|
||||
}
|
||||
const { title, block, superBlock } = frontmatter;
|
||||
return title && !block && !superBlock;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-remark-node-identity',
|
||||
options: {
|
||||
@ -136,7 +108,6 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
},
|
||||
{ resolve: 'fcc-create-nav-data' },
|
||||
{
|
||||
resolve: 'gatsby-plugin-manifest',
|
||||
options: {
|
||||
|
Reference in New Issue
Block a user