2018-04-06 14:51:52 +01:00
|
|
|
|
require('dotenv').config();
|
|
|
|
|
|
2018-03-26 13:01:24 +01:00
|
|
|
|
const path = require('path');
|
2018-04-06 14:51:52 +01:00
|
|
|
|
const { buildChallenges$ } = require('./seed/buildChallenges');
|
2018-03-26 13:01:24 +01:00
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
siteMetadata: {
|
2018-04-06 14:51:52 +01:00
|
|
|
|
title: 'freeCodeCamp | Learn to code and help non-profits ',
|
2018-03-26 13:01:24 +01:00
|
|
|
|
siteUrl: 'https://learn.freecodecamp.org'
|
|
|
|
|
},
|
2018-04-06 14:51:52 +01:00
|
|
|
|
proxy: {
|
2018-05-24 19:45:38 +01:00
|
|
|
|
prefix: '/external',
|
2018-04-06 14:51:52 +01:00
|
|
|
|
url: 'http://localhost:3000'
|
|
|
|
|
},
|
2018-03-26 13:01:24 +01:00
|
|
|
|
plugins: [
|
2018-04-06 14:51:52 +01:00
|
|
|
|
'gatsby-plugin-react-next',
|
2018-03-26 13:01:24 +01:00
|
|
|
|
'gatsby-plugin-react-helmet',
|
|
|
|
|
{
|
|
|
|
|
resolve: 'fcc-source-challenges',
|
|
|
|
|
options: {
|
|
|
|
|
name: 'challenges',
|
2018-04-06 14:51:52 +01:00
|
|
|
|
path: path.resolve(__dirname, './seed/challenges'),
|
|
|
|
|
source: buildChallenges$
|
2018-03-26 13:01:24 +01:00
|
|
|
|
}
|
|
|
|
|
},
|
2018-04-12 17:20:52 +01:00
|
|
|
|
{
|
|
|
|
|
resolve: 'gatsby-source-filesystem',
|
|
|
|
|
options: {
|
|
|
|
|
name: 'introductions',
|
|
|
|
|
path: path.resolve(__dirname, './src/introductions')
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-05-30 10:20:58 +01:00
|
|
|
|
{
|
|
|
|
|
resolve: 'gatsby-transformer-remark',
|
|
|
|
|
options: {
|
|
|
|
|
plugins: [
|
|
|
|
|
{
|
|
|
|
|
resolve: 'gatsby-remark-prismjs',
|
|
|
|
|
options: {
|
|
|
|
|
// Class prefix for <pre> tags containing syntax highlighting;
|
|
|
|
|
// defaults to 'language-' (eg <pre class="language-js">).
|
|
|
|
|
// If your site loads Prism into the browser at runtime,
|
|
|
|
|
// (eg for use with libraries like react-live),
|
|
|
|
|
// you may use this to prevent Prism from re-processing syntax.
|
|
|
|
|
// This is an uncommon use-case though;
|
|
|
|
|
// If you're unsure, it's best to use the default value.
|
|
|
|
|
classPrefix: 'language-',
|
|
|
|
|
// This is used to allow setting a language for inline code
|
|
|
|
|
// (i.e. single backticks) by creating a separator.
|
|
|
|
|
// This separator is a string and will do no white-space
|
|
|
|
|
// stripping.
|
|
|
|
|
// A suggested value for English speakers is the non-ascii
|
|
|
|
|
// character '›'.
|
|
|
|
|
inlineCodeMarker: null,
|
|
|
|
|
// This lets you set up language aliases. For example,
|
|
|
|
|
// setting this to '{ sh: "bash" }' will let you use
|
|
|
|
|
// the language "sh" which will highlight using the
|
|
|
|
|
// bash highlighter.
|
|
|
|
|
aliases: {}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-04-06 14:51:52 +01:00
|
|
|
|
{
|
|
|
|
|
resolve: 'gatsby-plugin-google-fonts',
|
|
|
|
|
options: {
|
2018-05-30 17:08:21 -05:00
|
|
|
|
fonts: ['Lato:400,400i,500']
|
2018-04-06 14:51:52 +01:00
|
|
|
|
}
|
2018-04-18 10:58:16 +01:00
|
|
|
|
},
|
2018-04-18 12:51:44 +01:00
|
|
|
|
'gatsby-plugin-sitemap',
|
|
|
|
|
'gatsby-plugin-offline'
|
2018-03-26 13:01:24 +01:00
|
|
|
|
]
|
|
|
|
|
};
|