-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Config option for not including next release docs in the final build #1243
Comments
@yangshun @endiliey @JoelMarcey What are your thoughts on this feature. We really need this for our project and I am interested in implementing this feature. As far as I can understand from the code base, I need to look into generate.js. Do you have any pointers/suggestion on where should I do a deep dive in the codebase? |
I am not adverse to implementing this -- it could possibly be a build option if we do it in v1. https://docusaurus.io/docs/en/command ? |
I agree. Using a "build option" is probably a better approach. Something like |
I am not against this and will be happy to see this, but I think there are quite lot of places/ code that need to be changed to achieve this. I personally feel creating your own script to remove the |
It definitely is, but links on the "All Versions" page might be broken :/ |
Yes, that can be done too and I have thought about it as well. Personally it just felt more like a work-around. This feature request can be useful to others too. That's why I raised it here and if you agree, my friend @parthpp can help contribute. We just need a bit guidance as neither of has experience with Docusaurus' code base. |
@yangshun @endiliey @JoelMarcey I would like to propose the following design changes to implement this feature. One of the ways we can do this is by not generating the metadata for the An appropriate place to make these changes would be Let me know your thought on this approach. Thanks |
You mean, that will happen only if the build command ( |
Yes, it will only happen when the |
Your approach looks OK for me. Feel free to send a PR asap if you want it to ship within next release. This isn't a high priority though |
@endiliey |
🚀 Feature
Provide a build option or a configuration so that we can choose whether or not to include the docs for the next release, when it's being built.
Have you read the Contributing Guidelines on issues?
Yes
Motivation
Being able to publish different versions of docs easily is a great feature. Existing setup also means that when you build the site, you'll have docs for all of the different version of the product and the next release, which is currently under development. This may be perfect for open source projects. For example, the docs for next release of docusaurus is available here:
https://docusaurus.io/docs/en/next/installation
Others may not want to have documentation released yet for a version that has not been officially published. But in the meantime, if you need to make corrections/update to docs for existing version and publish, there's no way of separating or omitting the publishing of docs for next release.
Pitch
(Please explain why this feature should be implemented and how it would be used.)
This feature would allow much more flexibility to the end user. They don't have to come up with work-arounds or hacks just to make sure that the docs for the release that is currently being developed is not being published while still able to maintain changes to previous release docs.
The text was updated successfully, but these errors were encountered: