Skip to content

Publish the documentation to GitHub Pages - #81

Merged
galjos merged 2 commits into
mainfrom
publish-docs
Jul 6, 2026
Merged

Publish the documentation to GitHub Pages#81
galjos merged 2 commits into
mainfrom
publish-docs

Conversation

@galjos

@galjos galjos commented Jul 6, 2026

Copy link
Copy Markdown
Member

What

The Sphinx docs already built in CI but were only uploaded as a throwaway artifact. This publishes them to GitHub Pages at https://molarverse.github.io/ThermoScreening/.

  • docs.yml: the build job now emits a Pages artifact (actions/upload-pages-artifact), and a new deploy-docs job — gated to push on main — publishes it via actions/deploy-pages with the required pages: write / id-token: write permissions and the github-pages environment. Pull-request runs still build (catching breakage) but do not deploy.
  • Pages is enabled on the repo with GitHub Actions as the build source (no branch/gh-pages needed).
  • conf.py: set html_baseurl for canonical URLs.
  • pyproject.toml: add a Documentation project URL (surfaces on PyPI).
  • README.md: add a docs badge and link the hosted site.

Notes

Self-contained — no external service (ReadTheDocs) or account linking. The alabaster theme ships with Sphinx, so the docs extra is unchanged. First deploy happens when this merges to main.

Deploy the Sphinx site to GitHub Pages on pushes to main. The docs job
now uploads a Pages artifact and a gated deploy-docs job (push to main
only) publishes it via actions/deploy-pages, so the previously
build-only docs are served at https://molarverse.github.io/ThermoScreening/.

Also set html_baseurl for canonical URLs, add a Documentation project URL
and a docs badge, and link the hosted site from the README.
@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.92%. Comparing base (9882357) to head (89d6558).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #81   +/-   ##
=======================================
  Coverage   96.92%   96.92%           
=======================================
  Files          28       28           
  Lines        1689     1689           
=======================================
  Hits         1637     1637           
  Misses         52       52           
Flag Coverage Δ
unittests 96.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add a job-level concurrency group so overlapping main pushes queue
instead of racing the github-pages environment, and correct the
top-level permissions comment.
@galjos
galjos merged commit 1eb5235 into main Jul 6, 2026
3 checks passed
@galjos
galjos deleted the publish-docs branch July 6, 2026 21:02
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