-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
247 lines (245 loc) · 6.4 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
'use strict';
var isProd = process.env.NODE_ENV === 'production';
module.exports = {
title: 'gulp.js',
favicon: 'img/favicon.png',
url: 'https://gulpjs.com/',
baseUrl: '/',
tagline: 'A toolkit to automate & enhance your workflow',
// Used by the deployment
organizationName: 'gulpjs',
projectName: 'gulpjs.github.io',
// The theme
themeConfig: {
colorMode: {
defaultMode: 'light',
disableSwitch: true,
},
navbar: {
logo: {
alt: 'gulp',
src: 'img/gulp.svg',
href: '/',
target: '_self',
},
<<<<<<< HEAD
links: [
{ to: 'docs/cn/getting-started/quick-start',
label: 'Get Started',
position: 'left',
},
{ to: 'docs/cn/api/concepts',
=======
items: [
{
to: 'docs/en/getting-started/quick-start',
label: 'Get Started',
position: 'left',
},
{
to: 'docs/en/api/concepts',
>>>>>>> 8b5b2f9d6fde55aa4585561068909469863124df
label: 'API',
position: 'left',
},
{
to: 'plugins',
label: 'Plugins',
position: 'left',
},
{
href: 'https://github.com/sponsors/gulpjs',
label: 'Donate',
position: 'left',
},
{
to: 'docs/cn/support/for-enterprise',
label: 'Enterprise',
position: 'left',
emphasis: true,
},
{
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: [
<<<<<<< HEAD
{ to: 'docs/cn/getting-started/quick-start',
label: 'Getting Started',
},
{ to: 'docs/cn/api/concepts',
=======
{
to: 'docs/en/getting-started/quick-start',
label: 'Getting Started',
},
{
to: 'docs/en/api/concepts',
>>>>>>> 8b5b2f9d6fde55aa4585561068909469863124df
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',
}
]
},
],
},
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',
},
companyLogos: [
// Stopped donating on April 1, 2020
// {
// href: 'https://stickermule.com',
// src: 'sponsor-logos/sticker-mule.svg',
// alt: 'Sticker Mule logo',
// title: 'Sticker Mule',
// style: {
// flexBasis: '120px',
// },
// },
{
href: 'https://icons8.com/',
src: 'sponsor-logos/icons8.svg',
alt: 'Icons8 logo',
title: 'Icons8',
style: {
flexBasis: '80px',
},
},
// Stopped donating on ??
// {
// href: 'https://frontendmasters.com/',
// src: 'sponsor-logos/frontend-masters.png',
// alt: 'Frontend Masters logo',
// title: 'Frontend Masters',
// style: {
// flexBasis: '200px',
// },
// },
{
href: 'https://www.codeinwp.com/',
src: 'sponsor-logos/codeinwp.svg',
alt: 'CodeinWP',
title: 'CodeinWP',
style: {
flexBasis: '150px',
},
},
// Stopped donating on May 2nd, 2020
// {
// href: 'https://clay.global/',
// src: 'sponsor-logos/clay.png',
// alt: 'Clay logo',
// title: 'Clay',
// style: {
// flexBasis: '150px',
// },
// },
// Stopped donating on ??
// {
// href: 'https://twitter.com/chromiumdev',
// src: 'sponsor-logos/chrome.svg',
// alt: 'Chrome logo',
// title: 'Chrome Developers',
// style: {
// flexBasis: '80px',
// },
// },
{
href: 'https://word.tips/',
src: 'sponsor-logos/word-tips.png',
alt: 'WordTips logo',
title: 'WordTips',
style: {
flexBasis: '150px',
},
},
// Stopped donating on June 15th, 2022
// {
// href: 'https://developer.americanexpress.com',
// src: 'sponsor-logos/american-express.svg',
// alt: 'American Express',
// title: 'American Express',
// style: {
// flexBasis: '145px',
// },
// },
]
},
stylesheets: [
'https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,400&family=Roboto:wght@900&display=swap'
],
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/cn/',
}],
['docusaurus-plugin-sass', {}],
['@docusaurus/plugin-content-pages', {}],
isProd && ['@docusaurus/plugin-google-analytics', {}],
isProd && ['@docusaurus/plugin-google-gtag', {}],
isProd && ['@docusaurus/plugin-sitemap', {}],
]
};