-
Notifications
You must be signed in to change notification settings - Fork 2
Description
It's fairly common for software projects to provide documentation for previous versions like this:
- https://docs.python-requests.org/en/v3.0.0/
- https://docs.python-requests.org/en/v2.9.1/
- https://docs.python-requests.org/en/v1.2.3/
Likewise, often you can see the most recent unreleased version of the docs at "master" (indicating the default branch):
It's also nice to have "stable" indicate the most recent release:
Finally, it's nice to have translations available (if you have translators):
All of this makes me think that we should add "en" and "main" (for our default branch) for now like this:
That way, we have a namespace in which to grow for versions and languages.
My thinking is heavily influenced by Read the Docs, which has a nice write up about versions at https://docs.readthedocs.io/en/stable/versions.html and languages at https://docs.readthedocs.io/en/stable/guides/manage-translations.html
Read the Docs also has a nice picker that lets your switch between versions and languages:
For now, I don't think we should worry about languages apart from using "en" to give us room the the URL for other languages. I did play a bit with sphinx-intl
but actually getting it all set up seems like overkill right now.
For versions I've been playing with sphinx-multiversion
and it seems promising.