Skip to content

Support docs for previous versions (and "latest", "stable", etc.) and languages other than English #15

@pdurbin

Description

@pdurbin

It's fairly common for software projects to provide documentation for previous versions like this:

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:

Screen Shot 2021-05-07 at 4 43 46 PM

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions