generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gatsby-config.js
98 lines (97 loc) · 3.18 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
89
90
91
92
93
94
95
96
97
98
const nickelLanguageDefinition = require('./src/prism/nickel.js');
module.exports = {
siteMetadata: {
title: "Nickel",
menuLinks: [
{
name: 'Getting started',
link: '/getting-started'
},
{
name: 'Documentation',
link: '/user-manual'
},
{
name: 'Standard Library',
link: '/stdlib'
},
{
name: 'Playground',
link: '/playground'
},
],
userManual: {
sections: [
{name: "Introduction", link: "/user-manual/introduction"},
{name: "Tutorial", link: "/user-manual/tutorial"},
{name: "Syntax", link: "/user-manual/syntax"},
{name: "Merging", link: "/user-manual/merging"},
{name: "Modular Configurations", link: "/user-manual/modular-configurations"},
{name: "Correctness", link: "/user-manual/correctness"},
{name: "Typing", link: "/user-manual/typing"},
{name: "Contracts", link: "/user-manual/contracts"},
{name: "Types vs. Contracts", link: "/user-manual/types-vs-contracts"},
],
},
stdlib: {
link: '/stdlib'
},
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-image',
{
resolve: `gatsby-source-filesystem`,
options: {
name: `user-manual`,
path: `${__dirname}/src/nickel-manual`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `stdlib-doc`,
path: `${__dirname}/src/nickel-stdlib-doc`,
},
},
`gatsby-plugin-sass`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-autolink-headers`,
{
resolve: `gatsby-remark-prismjs`,
options: {
aliases: {
'nickel#lines': 'nickel',
'nickel#repl': 'nickel',
'nickel#parse': 'nickel',
'nickel#no-check': 'nickel',
},
languageExtensions: [
{
language: 'nickel',
definition: nickelLanguageDefinition
}
]
}
},
{
resolve: `gatsby-remark-classes`,
options: {
classMap: {
link: "link-primary",
table: "table table-striped markdown-table",
}
}
},
`gatsby-remark-mangle-links`
],
},
},
`gatsby-transformer-json`,
],
};