Skip to content

Version our docs #669

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

Closed
hammer opened this issue Sep 14, 2021 · 6 comments · Fixed by #992
Closed

Version our docs #669

hammer opened this issue Sep 14, 2021 · 6 comments · Fixed by #992
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@hammer
Copy link
Contributor

hammer commented Sep 14, 2021

It will add complexity to our doc build and push but I think we're at the point now where we should support searching different versions of the docs, including the latest version of main.

@hammer hammer added the documentation Improvements or additions to documentation label Sep 14, 2021
@hammer
Copy link
Contributor Author

hammer commented Sep 14, 2021

If we want to stay on GitHub Pages, there seem to be a few options:

Otherwise it may be time to look into RTD again, cf. https://docs.readthedocs.io/en/stable/versions.html

@jeromekelleher
Copy link
Collaborator

We're doing a homegrown docs versioning for tskit and related projects, which just gives (I think) the release and tip of main versions. Code is here.

It's not as good as RTD's setup, but it does most of things you want.

Note there's some ugly string replacement in the Makefile to get the actual version numbers into the built docs.

@tomwhite
Copy link
Collaborator

We already have some of this, but it would be good to improve it and make it more standard. In particular, we don't link to the different versions we have available.

@hammer
Copy link
Contributor Author

hammer commented Sep 16, 2021

@tomwhite ah yes I do recall that now!

I think there are at least 3 tasks here moving forward:

  • Make the most recent release the default docs
  • Allow navigating to other doc versions
  • Update the search typeahead to only search the current version of the docs

@hammer
Copy link
Contributor Author

hammer commented Sep 20, 2021

It looks like a version switcher is coming to the PyData Sphinx theme, from which our theme inherits: pydata/pydata-sphinx-theme#23.

@tomwhite tomwhite added this to the 0.5.0 milestone Nov 18, 2021
@tomwhite tomwhite removed this from the 0.5.0 milestone Apr 7, 2022
@tomwhite
Copy link
Collaborator

tomwhite commented Jan 4, 2023

@tomwhite tomwhite added this to the 0.6.0 milestone Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants