forked from naqvis/pipy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
49 lines (49 loc) · 1.03 KB
/
gatsby-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
module.exports = {
siteMetadata: {
title: `Pipy`,
},
proxy: [
{
prefix: `/api`,
url: `http://localhost:6060`,
},
],
plugins: [
`gatsby-plugin-material-ui`,
{
resolve: `gatsby-plugin-mdx`,
options: {
defaultLayouts: {
default: require.resolve('./gui/src/components/doc-page.js'),
},
remarkPlugins: [require('remark-slug')],
shouldBlockNodeFromTransformation: node => {
if (node.internal.type !== 'File' || node.ext !== '.mdx') return true;
return false;
},
},
},
{
resolve: `gatsby-plugin-react-svg`,
options: {
rule: {
include: /docs/,
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `doc`,
path: `${__dirname}/docs/`,
ignore: [`**/guides/*`, `**/dts/*`],
},
},
{
resolve: `gatsby-plugin-page-creator`,
options: {
path: `${__dirname}/gui/src/pages/`,
},
},
],
}