This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gridsome.config.js
67 lines (61 loc) · 1.57 KB
/
gridsome.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
const nodeExternals = require("webpack-node-externals");
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
module.exports = {
siteName: "WGTWO API v0 docs",
siteUrl: "https://v0.docs.wgtwo.com",
icon: "./src/favicon.png",
chainWebpack(config, { isServer }) {
config.module.rules.delete("svg");
config.module.rule("svg")
.test(/\.svg$/)
.use("vue")
.loader("vue-loader")
.end()
.use("svg-to-vue-component")
.loader("svg-to-vue-component/loader");
if (isServer) {
config.externals(nodeExternals({
allowlist: [
/\.css$/,
/\?vue&type=style/,
/vue-instantsearch/,
/instantsearch.js/,
/typeface-league-spartan/
]
}));
}
},
templates: {
},
plugins: [
{
use: "@gridsome/vue-remark",
options: {
baseDir: "./docs",
typeName: "DocPage",
template: "./src/templates/DocPage.vue",
route: "/:topic/:title", // e.g. /voicemail/list-and-play-voicemails/
plugins: [
[
"gridsome-remark-embed-snippet",
{
directory: `${__dirname}/`
}
],
"@gridsome/remark-prismjs",
],
remark: {
autolinkHeadings: {
content: {
type: "text",
value: "#"
}
}
}
}
},
],
};