Skip to content

Doc migration#115

Open
chemiskyy wants to merge 6 commits intomainfrom
doc_migration
Open

Doc migration#115
chemiskyy wants to merge 6 commits intomainfrom
doc_migration

Conversation

@chemiskyy
Copy link
Member

This pull request migrates the documentation hosting from Read the Docs to GitHub Pages and updates the build workflow accordingly. It removes Read the Docs configuration, updates documentation links throughout the project, and improves the GitHub Actions workflow for building and caching documentation. These changes ensure that users and contributors are directed to the new documentation site and that documentation builds are more efficient.

Documentation Hosting Migration

  • Removed .readthedocs.yaml to discontinue Read the Docs builds and hosting.
  • Updated all documentation links in README.md to point to the new GitHub Pages site (https://3mah.github.io/microgen-docs/). [1] [2]
  • Changed the canonical URL in docs/conf.py to the new documentation site.

Build Workflow Improvements

  • Renamed and refactored the GitHub Actions workflow in .github/workflows/build-docs.yml to reflect the new documentation process, added caching for Sphinx builds, and improved installation steps for dependencies. [1] [2] [3]

Revamp documentation CI: rename workflow, remove scheduled run and ReadTheDocs config, and add caching for Sphinx output. Set USE_CACHE env, change job id to build-doc, make apt-get install use -y, clarify install steps and use a multiline step to uninstall vtk and install vtk-osmesa for headless rendering. Add actions/cache for docs/_build keyed by source and docs files. Update docs/conf.py canonical_url to the GitHub Pages docs URL and delete .readthedocs.yaml to consolidate docs builds under GitHub Actions.
Replace ReadTheDocs documentation links with the GitHub Pages site (https://3mah.github.io/microgen-docs/) in conda.recipe/meta.yaml and pyproject.toml so package metadata points to the hosted docs.
@chemiskyy chemiskyy requested a review from ylgrst February 24, 2026 14:03
Copy link
Collaborator

@ylgrst ylgrst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good PR for a useful change.
I did find some readme anchors discrepancies. Even though redirection still works fine, fixing those can prevent broken links in the future
I also have my reservations regarding how docs caching is done but I don't know any good practice about this

Comment on lines +47 to 58
- name: Cache Sphinx build directory
uses: actions/cache@v4
if: env.USE_CACHE == 'true'
with:
path: docs/_build/
key: doc-build-${{ hashFiles('microgen/__init__.py') }}-${{ hashFiles('docs/**/*.rst') }}
restore-keys: |
doc-build-${{ hashFiles('microgen/__init__.py') }}-
doc-build-

- name: Build Documentation
run: make -C docs html
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very sure of the behavior here
While caching previously generated docs is a good idea for faster build when nothing is changed, caching the whole output only based on init and *.rst as cache keys run the risk of republishing obsolete docs if, for example, box.py changes but the author forgets to change the corresponding .rst file
However I do not know what would be the best practice here

chemiskyy and others added 3 commits February 24, 2026 23:47
Co-authored-by: Yasmin Legerstee <125015797+ylgrst@users.noreply.github.com>
Co-authored-by: Yasmin Legerstee <125015797+ylgrst@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants