-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdocusaurus.config.js
184 lines (182 loc) · 4.81 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
'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: {
disableDarkMode: true,
navbar: {
logo: {
alt: 'gulp',
src: 'img/gulp.svg',
href: '/',
target: '_self',
},
links: [
{ to: 'docs/en/getting-started/quick-start',
label: 'Get Started',
position: 'left',
},
{ to: 'docs/en/api/concepts',
label: 'API',
position: 'left',
},
// TODO: Remove when plugins is part of the site
{ href: 'https://gulpjs.com/plugins',
label: 'Plugins',
position: 'left',
},
{
href: 'https://github.com/sponsors/gulpjs',
label: 'Donate',
position: 'left',
},
{
to: 'docs/en/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: [
{ 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: 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: [
{
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',
},
},
{
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',
},
},
{
href: 'https://clay.global/',
src: 'sponsor-logos/clay.png',
alt: 'Clay logo',
title: 'Clay',
style: {
flexBasis: '150px',
},
},
]
},
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', {}],
isProd && ['@docusaurus/plugin-google-gtag', {}],
isProd && ['@docusaurus/plugin-sitemap', {}],
]
};