-
Notifications
You must be signed in to change notification settings - Fork 0
Add version selection option for library version. #6
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
Comments
Any ideas how to handle this with our github.io site? |
My initial idea was to just have a different URL for each different version similar to how Gradle does it. As to how to realize this technically, a simple way would be to just maintain a copy of the docs for each version, i.e. we would have folders Read the Docs does support versioned documentation by default, but it seems like Github Pages is a bit more limited in that regard since its not meant to be as sophisticated. There is some more work that would need to be done for a new version aside from just copying the docs:
In terms of how to select the version, I think we could just add a selector to the masthead (like Gradle does it). We will also need to redirect from the root Anyways, I think this is something to worry about once we actually need docs for multiple versions. |
I'm not totally against this, but: it's not like we support old versions, anyway (in contrast to, perhaps, gradle et al.). So my simple suggestion for how to handle this would be:
What do you think? My goal here is to avoid some maintenance overhead and keep things simple :) |
I like that idea. Should be easy to offer old docs by tagging the |
The Gradle library allows for selecting which version of Gradle you use and then shows the right documentation for that version. Once we have more than just version 1.0.0, it would be nice to offer a similar functionality for our documentation page.
Since we have multiple projects in our documentation, it would probably make sense to bundle up specific version of each library in a bigger "all of upb.crypto" version, similar to how Math 1.0.0, Craco 1.0.0, etc. are designed to work together. Then the selection would just differentiate between these bundles.
The text was updated successfully, but these errors were encountered: