-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
88 lines (87 loc) · 2.12 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module.exports = {
siteMetadata: {
title: 'OTTO Documentation',
description: ''
},
plugins: [
'gatsby-plugin-meta-redirect',
'gatsby-plugin-theme-ui',
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.mdx', '.md'],
remarkPlugins: [require('remark-slug'), require('remark-emoji')],
plugins: [
'gatsby-remark-images'
],
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-mermaid`,
options: {
language: "mermaid",
theme: "neutral",
viewport: {
width: 1200,
height: 1200
},
mermaidOptions: {
themeCSS: ` { background: white; } * {
font-size: 14px;
stroke-width: 1px;
margin: 0;
padding: 0;
font-family: "Source Code Pro", Menlo, monospace;
}`
}
}
},
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1035,
wrapperStyle: 'overflow: hidden; border-radius: 4px',
},
},
],
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/docs`,
name: 'docs'
}
},
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/posts`,
name: 'posts'
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/images`,
},
},
{
resolve: `gatsby-plugin-prefetch-google-fonts`,
options: {
fonts: [
{
family: `Roboto`,
subsets: [`latin`],
variants: [`400`, `700`],
},
{
family: `Source Code Pro`,
variants: [`400`, `700`],
},
],
},
},
]
}