-
-
Notifications
You must be signed in to change notification settings - Fork 43
Upgrade to Docusaurus v2 (closes #105) #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a505682
Intial work migrating to Docusaurus v2 (ref #105)
phated d3d14db
More cleanup of docusaurus upgrade
phated 5a644e2
More styling stuff and component cleanup
phated bc3be6f
More v2 cleanup
phated 177f978
Reorganize the project since v2 does not require website directory
phated 36b5cf8
Update development workflow (closes #96)
phated File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
29 changes: 25 additions & 4 deletions
.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,29 @@ | ||
# dependencies | ||
node_modules | ||
|
||
# production | ||
build | ||
|
||
# generated files | ||
.docusaurus | ||
.cache-loader | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
*.log | ||
node_modules | ||
docs | ||
converted-docs | ||
|
||
# lock | ||
package-lock.json | ||
yarn.lock | ||
website/build | ||
|
||
# generated | ||
docs | ||
converted-docs |
1 change: 1 addition & 0 deletions
.npmrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
package-lock=false | ||
loglevel=error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
122 changes: 122 additions & 0 deletions
docusaurus.config.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
'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/', | ||
}], | ||
isProd && ['@docusaurus/plugin-google-analytics', {}], | ||
isProd && ['@docusaurus/plugin-google-gtag', {}], | ||
isProd && ['@docusaurus/plugin-sitemap', {}], | ||
] | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.