Skip to content

Commit a505682

Browse files
committed
Intial work migrating to Docusaurus v2 (ref #105)
1 parent dd1385c commit a505682

File tree

8 files changed

+313
-419
lines changed

8 files changed

+313
-419
lines changed

.gitignore

+25-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1+
# dependencies
2+
node_modules
3+
4+
# production
5+
build
6+
7+
# generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# misc
112
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*
221
*.log
3-
node_modules
4-
docs
5-
converted-docs
22+
23+
# lock
624
package-lock.json
725
yarn.lock
8-
website/build
26+
27+
# generated
28+
docs
29+
converted-docs

website/core/Footer.js

-77
This file was deleted.

website/docusaurus.config.js

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
'use strict';
2+
3+
var isProd = process.env.NODE_ENV === 'production';
4+
5+
module.exports = {
6+
title: 'gulp.js',
7+
favicon: 'img/favicon.png',
8+
url: 'https://gulpjs.com/',
9+
baseUrl: '/',
10+
tagline: 'The streaming build system',
11+
// Used by the deployment
12+
organizationName: 'gulpjs',
13+
projectName: 'gulpjs.github.io',
14+
// The theme
15+
themeConfig: {
16+
disableDarkMode: true,
17+
sidebarCollapsible: false,
18+
navbar: {
19+
logo: {
20+
alt: 'gulp',
21+
src: 'img/gulp.svg',
22+
},
23+
links: [
24+
{ to: 'getting-started/quick-start',
25+
label: 'Getting Started',
26+
position: 'left',
27+
},
28+
{ to: 'api/concepts',
29+
label: 'API',
30+
position: 'left',
31+
},
32+
{ href: 'https://gulpjs.com/plugins',
33+
label: 'Plugins',
34+
position: 'left',
35+
},
36+
{ href: 'https://twitter.com/gulpjs',
37+
label: 'Twitter',
38+
position: 'right'
39+
},
40+
{ href: 'https://medium.com/gulpjs',
41+
label: 'Blog',
42+
position: 'right'
43+
},
44+
]
45+
},
46+
footer: {
47+
links: [
48+
{ items: [
49+
{ html: '<img src="/img/gulp.svg" alt="gulp" href="/" />' }
50+
]
51+
},
52+
{ title: 'Docs',
53+
items: [
54+
{ to: 'getting-started/quick-start',
55+
label: 'Getting Started',
56+
},
57+
{ to: 'api/concepts',
58+
label: 'API',
59+
},
60+
]
61+
},
62+
{ title: 'Community',
63+
items: [
64+
{ href: 'https://stackoverflow.com/questions/tagged/gulp',
65+
label: 'Stack Overflow',
66+
},
67+
{ href: 'https://twitter.com/gulpjs',
68+
label: 'Twitter',
69+
}
70+
]
71+
},
72+
{ title: 'More',
73+
items: [
74+
{ href: 'https://github.com/gulpjs/gulp',
75+
label: 'GitHub',
76+
}
77+
]
78+
},
79+
],
80+
copyright: `Copyright © ${new Date().getFullYear()} GulpJS`,
81+
},
82+
prism: {
83+
// One of:
84+
// dracula, duotoneDark, duotoneLight, github, nightOwl, nightOwlLight,
85+
// oceanicNext, palenight, shad esOfPurple, ultramin, vsDark
86+
theme: require('prism-react-renderer/themes/vsDark'),
87+
},
88+
algolia: {
89+
apiKey: 'a6ef919bce0b83de1bcbad1d4ef753f8',
90+
indexName: 'gulpjs',
91+
algoliaOptions: {} // Optional, if provided by Algolia
92+
},
93+
googleAnalytics: {
94+
trackingID: 'UA-128126650-1',
95+
},
96+
gtag: {
97+
trackingID: 'UA-128126650-1',
98+
},
99+
},
100+
themes: [
101+
['@docusaurus/theme-classic', {
102+
customCss: require.resolve('./src/css/docs.css')
103+
}],
104+
['@docusaurus/theme-search-algolia', {}]
105+
],
106+
plugins: [
107+
['@docusaurus/plugin-content-docs', {
108+
path: '../converted-docs',
109+
sidebarPath: require.resolve('./sidebars.json'),
110+
}],
111+
isProd && ['@docusaurus/plugin-google-analytics', {}],
112+
isProd && ['@docusaurus/plugin-google-gtag', {}],
113+
isProd && ['@docusaurus/plugin-sitemap', {}],
114+
]
115+
};

website/package.json

+28-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
11
{
22
"scripts": {
3-
"examples": "docusaurus-examples",
4-
"start": "docusaurus-start",
5-
"build": "docusaurus-build",
6-
"publish-gh-pages": "docusaurus-publish",
7-
"write-translations": "docusaurus-write-translations",
8-
"version": "docusaurus-version",
9-
"rename-version": "docusaurus-rename-version"
3+
"start": "docusaurus start",
4+
"build": "docusaurus build",
5+
"swizzle": "docusaurus swizzle",
6+
"deploy": "docusaurus deploy"
7+
},
8+
"dependencies": {
9+
"react": "^16.13.1",
10+
"react-dom": "^16.13.1",
11+
"remark-admonitions": "^1.2.1"
1012
},
1113
"devDependencies": {
12-
"docusaurus": "^1.6.0"
14+
"@docusaurus/core": "^2.0.0-alpha.50",
15+
"@docusaurus/plugin-content-docs": "^2.0.0-alpha.50",
16+
"@docusaurus/plugin-google-analytics": "^2.0.0-alpha.50",
17+
"@docusaurus/plugin-google-gtag": "^2.0.0-alpha.50",
18+
"@docusaurus/plugin-sitemap": "^2.0.0-alpha.50",
19+
"@docusaurus/theme-classic": "^2.0.0-alpha.50",
20+
"@docusaurus/theme-search-algolia": "^2.0.0-alpha.50"
21+
},
22+
"browserslist": {
23+
"production": [
24+
">0.2%",
25+
"not dead",
26+
"not op_mini all"
27+
],
28+
"development": [
29+
"last 1 chrome version",
30+
"last 1 firefox version",
31+
"last 1 safari version"
32+
]
1333
}
1434
}

website/pages/en/help.js

-58
This file was deleted.

website/siteConfig.js

-45
This file was deleted.

0 commit comments

Comments
 (0)