Skip to content

Publish Sphinx docs via GitHub Actions Pages#535

Merged
Mbompr merged 2 commits intoX-DataInitiative:masterfrom
Mbompr:docs/github-actions-pages
Apr 22, 2026
Merged

Publish Sphinx docs via GitHub Actions Pages#535
Mbompr merged 2 commits intoX-DataInitiative:masterfrom
Mbompr:docs/github-actions-pages

Conversation

@Mbompr
Copy link
Copy Markdown
Contributor

@Mbompr Mbompr commented Apr 20, 2026

Summary

  • Add .github/workflows/docs.yml that builds the Sphinx site on every push to master and deploys it through actions/deploy-pages@v5, replacing the gh-pages branch flow (last updated 2017-04-25).
  • Un-ignore .github/ in .gitignore so workflow files stop being swallowed by the blanket .* rule (the reason docs.yml was never committed until now).
  • In doc/conf.py, read release/version from the installed tick distribution via importlib.metadata so they track pyproject.toml (currently 0.8.0.1) instead of the hard-coded 0.6.0.

One-time settings change required

This PR alone will not make the site update. A repo admin needs to switch Settings → Pages → Source from "Deploy from a branch" to "GitHub Actions". Without that flip, the deploy job will fail with a Pages-not-enabled error.

Once flipped, the stale gh-pages branch can be deleted (or left as a historical artifact).

Test plan

  • Verify the build job produces doc/_build/html via html on the PR run.
  • After merge + Pages source flip, confirm the deploy job succeeds and https://x-datainitiative.github.io/tick/ serves the new build.
  • Check the site header shows 0.8.0.1 rather than 0.6.0.

🤖 Generated with Claude Code

m.bompaire and others added 2 commits April 20, 2026 18:04
Adds a docs.yml workflow that builds the Sphinx site on push to master
and deploys it through actions/deploy-pages, replacing the dormant
gh-pages branch flow (last updated 2017). Also un-ignores .github/ so
workflow files stop being swallowed by the blanket .* rule, and reads
the doc version/release from the installed tick distribution so they
track pyproject.toml automatically.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Switch `make html-noplot` to `make html` so the published site executes
the example gallery and inline module plots, matching the pre-2017
builds.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Mbompr Mbompr merged commit 8443f0c into X-DataInitiative:master Apr 22, 2026
14 of 15 checks passed
@Mbompr Mbompr deleted the docs/github-actions-pages branch April 22, 2026 14:14
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.

1 participant