pycbc icon indicating copy to clipboard operation
pycbc copied to clipboard

Start pushing tags to permanently-kept documentation pages

Open GarethCabournDavies opened this issue 1 year ago • 8 comments

Here I am starting to put together an idea on how to provide documentation for every release. I.e. instead of only having https://pycbc.org/pycbc/latest/html/, we would have https://pycbc.org/pycbc/v2.4.X/html/ as well, which points to the documentation at that release

Standard information about the request

This change affects continuous integration and the documentation

This change has been proposed using the contribution guidelines

This change will require a new release to ensure that it is correctly enacted

Motivation

This is best practice anyway, but there is an issue at #2504

Contents

  • Add a new job to the CI which is only run when a release is made.
  • This will also add the documentation to a new folder within the gh-pages repo
  • The gh-pages repo should then have the release kept whenever the documentation is built again, and will be pushed for each version

Plan for next steps

  • Get a dropdown of links for each version (plus latest) added to the bottom of the sidebar on the documentation pages
  • Add a link to the latest released version of the documentation to pypi

Testing performed

I'm not sure how to test this without making a release!

  • [x] The author of this pull request confirms they will adhere to the code of conduct

GarethCabournDavies avatar Jun 07 '24 10:06 GarethCabournDavies

@GarethCabournDavies I think this is a long overdue good thing to do. Thank you for looking into this!

ahnitz avatar Jun 07 '24 15:06 ahnitz

I think the only way this can be tested is it it is just merged and see if it runs for the next release

GarethCabournDavies avatar Jul 02 '24 13:07 GarethCabournDavies

I forgot that I hadn't un-drafted and re-requested review for this!

GarethCabournDavies avatar Jan 17 '25 11:01 GarethCabournDavies

Ping @ahnitz

GarethCabournDavies avatar Jul 04 '25 09:07 GarethCabournDavies

Hello,

Is there any plan to finish this soon ? As pointed in #2504, it is rather useful to have stable URL.

duboism avatar Nov 17 '25 13:11 duboism

Hello,

Is there any plan to finish this soon ? As pointed in #2504, it is rather useful to have stable URL.

Thanks for the reminder - this had just dropped off my radar, and was awaiting review. If the changes are still valid this looks to be ready to go

GarethCabournDavies avatar Nov 17 '25 13:11 GarethCabournDavies

Hello, Is there any plan to finish this soon ? As pointed in #2504, it is rather useful to have stable URL.

Thanks for the reminder - this had just dropped off my radar, and was awaiting review. If the changes are still valid this looks to be ready to go

Thank you. Let us know if we can help. I'm not familiar with GitHub pages but do you know if there will be a version selector in the page (like https://microscope.readthedocs.io/en/stable/ - see bottom left).

duboism avatar Nov 17 '25 14:11 duboism

Hello, Is there any plan to finish this soon ? As pointed in #2504, it is rather useful to have stable URL.

Thanks for the reminder - this had just dropped off my radar, and was awaiting review. If the changes are still valid this looks to be ready to go

Thank you. Let us know if we can help. I'm not familiar with GitHub pages but do you know if there will be a version selector in the page (like https://microscope.readthedocs.io/en/stable/ - see bottom left).

Thanks, I'm not sure how to do the version selector either, but the changes here should at least give some stable pages!

GarethCabournDavies avatar Nov 17 '25 14:11 GarethCabournDavies