-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgatsby-config.js
More file actions
116 lines (115 loc) · 2.99 KB
/
gatsby-config.js
File metadata and controls
116 lines (115 loc) · 2.99 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
const path = require('path');
module.exports = {
siteMetadata: {
title: 'Syscase: A Fuzzing Framework for ARM TrustZone',
siteUrl: 'https://syscase.org',
},
mapping: {
'MarkdownRemark.frontmatter.author': 'AuthorYaml',
'Mdx.frontmatter.author': 'AuthorYaml',
},
plugins: [
'gatsby-plugin-glamor',
'gatsby-plugin-react-helmet',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-sitemap',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/src/pages`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'content',
path: `${__dirname}/content/`,
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.md', '.mdx'],
shouldBlockNodeFromTransformation(node) {
return (
['NPMPackage', 'NPMPackageReadme'].includes(node.internal.type) ||
(node.internal.type === 'File' &&
path.parse(node.dir).dir.endsWith('packages'))
);
},
gatsbyRemarkPlugins: [
'gatsby-remark-embedder',
'gatsby-remark-graphviz',
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 786,
backgroundColor: '#ffffff',
},
},
{
resolve: 'gatsby-remark-responsive-iframe',
options: {
wrapperStyle: 'margin-bottom: 1.5rem',
},
},
'gatsby-remark-autolink-headers',
'gatsby-remark-copy-linked-files',
'gatsby-remark-smartypants',
],
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
'gatsby-remark-embedder',
'gatsby-remark-graphviz',
'gatsby-remark-code-titles',
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 786,
backgroundColor: '#ffffff',
},
},
{
resolve: 'gatsby-remark-responsive-iframe',
options: {
wrapperStyle: 'margin-bottom: 1.5rem',
},
},
'gatsby-remark-autolink-headers',
{
resolve: 'gatsby-remark-prismjs',
options: {
aliases: {
dosini: 'ini',
env: 'bash',
es6: 'js',
flowchart: 'none',
gitignore: 'none',
gql: 'graphql',
htaccess: 'apacheconf',
mdx: 'markdown',
ml: 'fsharp',
styl: 'stylus',
},
},
},
'gatsby-remark-copy-linked-files',
'gatsby-remark-smartypants',
],
},
},
],
};