-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
docusaurus.config.js
230 lines (227 loc) · 6.08 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
'use strict';
const {themes} = require('prism-react-renderer');
const 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',
},
items: [
{
to: 'docs/en/getting-started/quick-start',
label: 'Get Started',
position: 'left',
},
{
to: 'docs/en/api/concepts',
label: 'API',
position: 'left',
},
{
to: 'plugins',
label: 'Plugins',
position: 'left',
},
{
href: 'https://github.com/sponsors/gulpjs',
label: 'Donate',
position: 'left',
className: 'emphasis',
},
{
href: 'https://twitter.com/gulpjs',
html: '<img class="navbarIcon" src="/img/twitter.svg" alt="Gulp on Twitter" />',
position: 'right'
},
{
href: 'https://medium.com/gulpjs',
html: '<img class="navbarIcon" src="/img/medium.svg" alt="The gulp blog" />',
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',
}
]
},
],
},
prism: {
// One of:
// dracula, duotoneDark, duotoneLight, github, nightOwl, nightOwlLight,
// oceanicNext, palenight, shad esOfPurple, ultramin, vsDark
theme: themes.vsDark,
},
algolia: {
appId: 'HQ9BYTRO7N',
apiKey: 'e0f1bf55fa3f4fb5150c708638b02e22',
indexName: 'gulpjs',
algoliaOptions: {} // Optional, if provided by Algolia
},
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',
// },
// },
// Stopped donating in Sept 2023
// {
// href: 'https://word.tips/',
// src: 'sponsor-logos/word-tips.png',
// alt: 'WordTips logo',
// title: 'WordTips',
// style: {
// flexBasis: '150px',
// },
// },
{
href: 'https://developer.americanexpress.com',
src: 'sponsor-logos/american-express.svg',
alt: 'American Express',
title: 'American Express',
style: {
flexBasis: '145px',
},
},
{
href: 'https://webweekly.email/',
src: 'sponsor-logos/web-weekly.svg',
alt: 'Web Weekly - Your friendly web dev newsletter',
title: 'Web Weekly - Your friendly web dev newsletter',
style: {
flexBasis: '175px',
}
}
]
},
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/en/',
}],
['docusaurus-plugin-sass', {}],
['@docusaurus/plugin-content-pages', {}],
isProd && ['@docusaurus/plugin-google-analytics', {
trackingID: 'UA-128126650-1',
}],
isProd && ['@docusaurus/plugin-google-gtag', {
trackingID: 'UA-128126650-1',
}],
isProd && ['@docusaurus/plugin-sitemap', {}],
]
};