Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/website/gridsome.config.js
1028 views
1
module.exports = {
2
titleTemplate: 'SecretAgent - The Web Browser Built for Scraping',
3
siteUrl: 'https://secretagent.dev',
4
pathPrefix: '/',
5
outputDir: '../build-dist/website',
6
templates: {},
7
chainWebpack: config => {
8
const svgRule = config.module.rule('svg');
9
svgRule.uses.clear();
10
svgRule.use('vue-svg-loader').loader('vue-svg-loader');
11
},
12
plugins: [
13
{
14
use: 'gridsome-plugin-pug',
15
options: {
16
pug: {
17
/* Options for `pug-plain-loader` */
18
},
19
pugLoader: {
20
/* Options for `pug-loader` */
21
},
22
},
23
},
24
{
25
use: 'gridsome-plugin-typescript',
26
},
27
{
28
use: '@gridsome/vue-remark',
29
options: {
30
baseDir: './docs',
31
pathPrefix: '/docs',
32
typeName: 'Docs',
33
template: './src/templates/DocsPage.vue',
34
plugins: ['@gridsome/remark-prismjs'],
35
remark: {
36
autolinkHeadings: {
37
content: {
38
type: 'text',
39
value: '#',
40
},
41
},
42
},
43
},
44
},
45
{
46
use: '@gridsome/vue-remark',
47
options: {
48
baseDir: './awaited-dom',
49
pathPrefix: '/docs/awaited-dom',
50
typeName: 'AwaitedDom',
51
template: './src/templates/AwaitedDomDocsPage.vue',
52
plugins: ['@gridsome/remark-prismjs'],
53
remark: {
54
autolinkHeadings: {
55
content: {
56
type: 'text',
57
value: '#',
58
},
59
},
60
},
61
},
62
},
63
{
64
use: '@gridsome/vue-remark',
65
options: {
66
baseDir: './blog',
67
pathPrefix: '/blog',
68
typeName: 'Post',
69
template: './src/templates/BlogPost.vue',
70
plugins: ['@gridsome/remark-prismjs'],
71
remark: {
72
autolinkHeadings: {
73
content: {
74
type: 'text',
75
value: '#',
76
},
77
},
78
},
79
},
80
},
81
{
82
use: '@microflash/gridsome-plugin-feed',
83
options: {
84
contentTypes: ['Post'],
85
feedOptions: {
86
title: 'SecretAgent Blog',
87
description: 'A blog about scraping, features and experiences developing SecretAgent',
88
},
89
rss: {
90
enabled: true,
91
output: '/feed.xml',
92
},
93
atom: {
94
enabled: true,
95
output: '/feed.atom',
96
},
97
json: {
98
enabled: true,
99
output: '/feed.json',
100
},
101
},
102
},
103
],
104
};
105
106