forked from joostdecock/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxtdown.config.js
144 lines (142 loc) · 3.73 KB
/
nuxtdown.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
var Prism = require('prismjs');
var loadLanguages = require('prismjs/components/index.js');
loadLanguages(['yaml', 'markdown', 'php']);
const markdownConfig = {
extend(config) {
config.highlight = (code, lang) => {
return `<pre class="language-${lang} fs-codeblock"><code class="language-${lang}">${Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup)}</code></pre>`
}
},
plugins: {
attrs: require('markdown-it-attrs'),
figures: [require('markdown-it-implicit-figures'), { figcaption: true }],
video: require('markdown-it-video'),
footnote: require('markdown-it-footnote')
}
}
module.exports = {
content: [
// English
['en/blog', {
page: '/blog/_blogpost',
permalink: '/blog/:slug',
toc: 1,
data: { contentLocale: 'en' },
markdown: markdownConfig
}],
['en/showcase', {
page: '/showcase/_showcase',
permalink: '/showcase/:slug',
data: { contentLocale: 'en' },
markdown: markdownConfig
}],
['en/docs', {
page: '/docs/_page',
permalink: '/docs/:section*/:slug',
isPost: false,
toc: 1,
breadcrumbs: true,
data: { contentLocale: 'en' },
markdown: markdownConfig
}],
// German (Deutsch)
['de/blog', {
page: '/de/blog/_blogpost',
permalink: '/de/blog/:slug',
toc: 1,
data: { contentLocale: 'de' },
markdown: markdownConfig
}],
['de/showcase', {
page: '/de/showcase/_showcase',
permalink: '/de/showcase/:slug',
isPost: true,
data: { contentLocale: 'de' },
markdown: markdownConfig
}],
['de/docs', {
page: '/de/docs/_page',
permalink: '/de/docs/:section*/:slug',
isPost: false,
toc: 1,
breadcrumbs: true,
data: { contentLocale: 'de' },
markdown: markdownConfig
}],
// French (Français)
['fr/blog', {
page: '/fr/blog/_blogpost',
permalink: '/fr/blog/:slug',
toc: 1,
data: { contentLocale: 'fr' },
markdown: markdownConfig
}],
['fr/showcase', {
page: '/fr/showcase/_showcase',
permalink: '/fr/showcase/:slug',
isPost: true,
data: { contentLocale: 'fr' },
markdown: markdownConfig
}],
['fr/docs', {
page: '/fr/docs/_page',
permalink: '/fr/docs/:section*/:slug',
isPost: false,
toc: 1,
breadcrumbs: true,
data: { contentLocale: 'fr' },
markdown: markdownConfig
}],
// Dutch (Nederlands)
['nl/blog', {
page: '/nl/blog/_blogpost',
permalink: '/nl/blog/:slug',
toc: 1,
data: { contentLocale: 'nl' },
markdown: markdownConfig
}],
['nl/showcase', {
page: '/nl/showcase/_showcase',
permalink: '/nl/showcase/:slug',
isPost: true,
data: { contentLocale: 'nl' },
markdown: markdownConfig
}],
['nl/docs', {
page: '/nl/docs/_page',
permalink: '/nl/docs/:section*/:slug',
isPost: false,
toc: 1,
breadcrumbs: true,
data: { contentLocale: 'nl' },
markdown: markdownConfig
}],
// Spanish
['es/blog', {
page: '/es/blog/_blogpost',
permalink: '/es/blog/:slug',
toc: 1,
data: { contentLocale: 'es' },
markdown: markdownConfig
}],
['es/showcase', {
page: '/es/showcase/_showcase',
permalink: '/es/showcase/:slug',
data: { contentLocale: 'es' },
markdown: markdownConfig
}],
['es/docs', {
page: '/es/docs/_page',
permalink: '/es/docs/:section*/:slug',
isPost: false,
toc: 1,
breadcrumbs: true,
data: { contentLocale: 'es' },
markdown: markdownConfig
}],
],
api: {
baseURL: 'http://localhost:3000',
browserBaseURL: process.env.FS_SITE
}
}