Skip to content

Deploy GitHub pages from GitHub actions with Sphinx - #489

Merged
fdxmw merged 2 commits into
UCSBarchlab:developmentfrom
fdxmw:pages
Jul 31, 2026
Merged

Deploy GitHub pages from GitHub actions with Sphinx#489
fdxmw merged 2 commits into
UCSBarchlab:developmentfrom
fdxmw:pages

Conversation

@fdxmw

@fdxmw fdxmw commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

This PR significantly changes PyRTL's GitHub Pages workflow. This will also change the appearance of http://ucsbarchlab.github.io/PyRTL, a preview is available at https://fdxmw.github.io/PyRTL/

This replaces the old gh-pages branch workflow, and generates the HTML with Sphinx so we don't have to manually edit HTML. GitHub Pages' index.html is now generated from www/index.rst, which is much easier to edit. Sphinx automatically runs from GitHub actions when changes are pushed to www/.

Also:

  • Added simulation scripts to all GitHub pages code samples. Add tests for these scripts.

  • Add screenshots for all render_trace outputs. Remove GCD block graph and improve formatting.

  • Moved the larger code samples to external .py files in www/examples so ruff can auto-format them and check them for lint.

  • Added many type hints.

  • Added many PyRTL documentation and example links.

  • Fixed many typos.

  • Upgraded some GitHub actions workflows.

  • Remove Sphinx version information and copyright from documentation footers.

  • Update READMEs.

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.8%. Comparing base (1a7c606) to head (8eb0a95).

Additional details and impacted files
@@             Coverage Diff             @@
##           development    #489   +/-   ##
===========================================
  Coverage         93.8%   93.8%           
===========================================
  Files               30      30           
  Lines             7172    7172           
===========================================
  Hits              6722    6722           
  Misses             450     450           

☔ 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.

@fdxmw
fdxmw force-pushed the pages branch 6 times, most recently from f57a1ed to 02cd219 Compare June 30, 2026 21:12
@fdxmw

fdxmw commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

I have follow-up changes to this PR that add Jupyter Lite "try this example in your browser" buttons to the webpage. The preview at https://fdxmw.github.io/PyRTL/ currently includes these follow-up changes. The source for these changes are in fdxmw:lite.

… actions

with Sphinx.

This replaces the old `gh-pages` branch workflow, and generates the HTML with
Sphinx so we don't have to edit HTML tags. We can also update the code,
documentation, and webpage in the same commit.

GitHub Pages' `index.html` is now generated from `www/index.rst`. Sphinx
automatically runs from GitHub actions when changes are pushed to `www/`.

Also:

* Added simulation scripts (create `Simulation`, `step`, `render_trace`) to all
  code samples.

* Move the code samples to separate `.py` files in `www/examples` so `ruff` can
  auto-format them and check them for lint, and `test_examples.py` can test
  them.

* Add screenshots for all `render_trace` outputs. Remove the GCD block graph.
  Increase resolution for all screenshots. Set screenshot width in `em`s so the
  text in screenshots is the same size as surrounding text.

* Add many type hints and links to PyRTL documentation and examples.

* Fix many typos.

* Remove Sphinx version information and copyright from documentation footers.

* Update READMEs, add instructions for updating screenshots.

* Move "Gotchas" and "Related Projects" sections to documentation.

* Reduce `example2.py`'s number of simulated cycles so the screenshot displays
  better on narrow screens.
@fdxmw
fdxmw merged commit d4c22cb into UCSBarchlab:development Jul 31, 2026
6 checks passed
@fdxmw
fdxmw deleted the pages branch July 31, 2026 03:11
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