Versioning of build section #499
Replies: 3 comments 9 replies
-
I agree on the versioning by branches. This makes most sense from a project maintainer perspective and allows us to utilize the new build system fully. Each branch of a project would then contain its own version of the documentation, with a Docusaurus config defining any plugins it needs. Then on the Wiki side we will have a directory containing:
The versioning plugin takes care of placing the default version on a default path (mimicking the Docusaurus plugin, i.e. Then we can provide a dropdown component similar to the versioning dropdown of Docusaurus that lists the versions available for the current path. |
Beta Was this translation helpful? Give feedback.
-
Just to keep notes:
Open questions:
|
Beta Was this translation helpful? Give feedback.
-
So, initially I expected that you could somehow specify in
I think I prefer 1) because it doesn't change the layout and isn't too complicated to implement with the cli |
Beta Was this translation helpful? Give feedback.
-
With the introduction of Shimmer, a versioning system in the wiki became more and more important.
Here I will summarize what has been tested and which way we prefer with the current knowledge.
We started with our old build system. This made it much more difficult to implement versioning in general.
But with the new build system (#498) we have better possibilities.
Basically, there are two:
Let's talk about both approaches.
The Docusaurus way
Docusaurus provides its own versioning system. It basically creates a copy of the docs in another folder.
Pros
Cons
The "role our own versioning" way
With the new build system, we would build a structure like mentioned in #498
As an example for Hornet:
So every subfolder is a git submodule of a specific branch.
We would then build a dropdown which checks the existing path and let you switch between them.
Example paths could be:
Pros
Cons
Conclusion
We probably could convince Docusaurus to change some of their stuff, as it wouldn't be too much work and would fit into their logic (and most problems are bugs on their side anyway ). But as I think we don't want to have all docs in a single repo, we would always need to split it into multiple submodules.
So imo we should go the
The "roll our own versioning" way :trollface:
because then if we can convince Docusaurus later on into adapting their system (with for example customizable paths to different versions) we can just change our dropdown for theirs basicallyBeta Was this translation helpful? Give feedback.
All reactions