-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdocusaurus.config.js
124 lines (122 loc) · 3.39 KB
/
docusaurus.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
'use strict';
var isProd = process.env.NODE_ENV === 'production';
module.exports = {
title: 'gulp.js',
favicon: 'img/favicon.png',
url: 'https://gulpjs.com/',
baseUrl: '/',
tagline: 'The streaming build system',
// Used by the deployment
organizationName: 'gulpjs',
projectName: 'gulpjs.github.io',
// The theme
themeConfig: {
disableDarkMode: true,
navbar: {
logo: {
alt: 'gulp',
src: 'img/gulp.svg',
// TODO: Remove these when we have a homepage in the router
href: 'https://gulpjs.com/',
target: '_self',
},
links: [
{ to: 'docs/en/getting-started/quick-start',
label: 'Getting Started',
position: 'left',
},
{ to: 'docs/en/api/concepts',
label: 'API',
position: 'left',
},
{ href: 'https://gulpjs.com/plugins',
label: 'Plugins',
position: 'left',
},
{ href: 'https://twitter.com/gulpjs',
logo: {
alt: 'Gulp on Twitter',
src: 'img/twitter.svg',
},
position: 'right'
},
{ href: 'https://medium.com/gulpjs',
logo: {
alt: 'The gulp blog',
src: 'img/medium.svg',
},
position: 'right'
},
]
},
footer: {
links: [
{ items: [
{ html: '<img src="/img/gulp-white-logo.svg" alt="gulp" href="/" />' }
]
},
{ title: 'Docs',
items: [
{ to: 'docs/en/getting-started/quick-start',
label: 'Getting Started',
},
{ to: 'docs/en/api/concepts',
label: 'API',
},
]
},
{ title: 'Community',
items: [
{ href: 'https://github.com/gulpjs/gulp',
label: 'GitHub',
},
{ href: 'https://stackoverflow.com/questions/tagged/gulp',
label: 'Stack Overflow',
},
{ href: 'https://twitter.com/gulpjs',
label: 'Twitter',
}
]
},
],
copyright: `Copyright © ${new Date().getFullYear()} GulpJS`,
},
prism: {
// One of:
// dracula, duotoneDark, duotoneLight, github, nightOwl, nightOwlLight,
// oceanicNext, palenight, shad esOfPurple, ultramin, vsDark
theme: require('prism-react-renderer/themes/vsDark'),
},
algolia: {
apiKey: 'a6ef919bce0b83de1bcbad1d4ef753f8',
indexName: 'gulpjs',
algoliaOptions: {} // Optional, if provided by Algolia
},
googleAnalytics: {
trackingID: 'UA-128126650-1',
},
gtag: {
trackingID: 'UA-128126650-1',
},
},
themes: [
['@docusaurus/theme-classic', {
customCss: require.resolve('./src/css/docs.css')
}],
['@docusaurus/theme-search-algolia', {}]
],
plugins: [
['@docusaurus/plugin-content-docs', {
path: 'docs',
sidebarPath: require.resolve('./sidebars.json'),
// This is a holdover because we set up original docusaurus
// to support translations and v2 doesn't support them yet
routeBasePath: 'docs/en/',
}],
"docusaurus-plugin-sass",
['@docusaurus/plugin-content-pages', {}],
isProd && ['@docusaurus/plugin-google-analytics', {}],
isProd && ['@docusaurus/plugin-google-gtag', {}],
isProd && ['@docusaurus/plugin-sitemap', {}],
]
};