Skip to content
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

Make available the documentation of older releases #4

Open
jhlegarreta opened this issue Sep 25, 2022 · 3 comments
Open

Make available the documentation of older releases #4

jhlegarreta opened this issue Sep 25, 2022 · 3 comments

Comments

@jhlegarreta
Copy link
Member

Documentation of older releases should be kept available on the website. Ideally, the latest/current commit could be displayed, but users should be able to choose and look up the documentation of older releases.

I know that the documentation of older releases is available at https://itk.org/download/, but I think users rarely download a documentation ZIP file to look at the corresponding documentation/the above would be appreciated.

Also, right now it is unclear that the online documentation refers to the latest/current commit (and not the displayed tag) unless one realizes about the build date at the bottom. This also happens with the stable documentation linked from itk.org
https://itk.org/Doxygen/html/index.html

@thewtex
Copy link
Member

thewtex commented Nov 8, 2023

We can use the same system as Slicer: (h/t @jcfr):

https://github.com/Slicer/apidocs.slicer.org/tree/gh-pages

@jcfr
Copy link

jcfr commented Nov 8, 2023

A possible path forward:

  • Add each releases (5.2, 5.4, master, ...) a directory in the gh-pages branch
  • Add an index.html page dynamically retrieving the available directories. See this page for an examle
  • Ensure commits are always squashed. This is important to avoid growing the size of the repo beyond GitHub limits and allow it to be efficiently downloaded
  • Add a scheduled GitHub Actions workflow that will:
    1. Checkout the gh-pages of this repository using action/checkout and with path: "ITKDoxygen-gh-pages"
    2. Checkout the latest ITK master using action/checkout specifying the ITK GitHub repo with `path: "ITK-master"``
    3. Use the docker image to build the documentation
    4. Copy the relevant directory into master directory
    5. Force push using an action like push-git-subdirectory-as-branch by specifying SQUASH_HISTORY to true

Existing documentation archives could also be added as release assets to a release called Archives created using https://gist.github.com/jcfr/9c0c0133c2d3fa2b029e6dd2648f7720

@thewtex
Copy link
Member

thewtex commented May 2, 2024

We should be able to have old releases deployed to GitHub Pages, keep the repository light, by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants