Begin implementing new website

This commit is contained in:
MoyuScript
2017-12-09 17:47:25 +08:00
parent 9670b26696
commit 99b963a0fb
18 changed files with 13017 additions and 1 deletions

42
www/gatsby-config.js Normal file
View File

@@ -0,0 +1,42 @@
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/../docs/`
}
},
`gatsby-plugin-catch-links`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-glamor`,
{
resolve: `gatsby-plugin-typography`,
options: {
pathToConfigModule: `src/utils/typography.js`
}
},
{
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-'
}
}
]
}
}
]
};