-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
feat(v2): allow skipping build docs for next version #2877
Conversation
Deploy preview for docusaurus-2 ready! Built with commit 5cfb3db |
…ocusaurus into lex111/docs-skip-next-release
cc @yangshun |
lgtm |
Thanks a lot for bringing this feature from V1. Will this also generate the sitemap without the next release docs if the option is enabled? I couldn't tell from the changes in this PR. |
yes the next paths should not appear in the sitemaps because we don't add any react router route for the next paths (which are read by the sitemaps plugin) Tell me if this does not work for you once we release |
Perfect!! Thank you. Will try it out. |
Motivation
Resolve #2813
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
docs
set theexcludeNextVersionDocs
field with thetrue
value.yarn start
and make sure that docs are accessible bydocs/next
pathyarn build
and make surebuild/docs/next
dir does not exist.excludeNextVersionDocs
filed and build site again, and make surebuild/docs/next
dir appears.Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)