~/talk

Automate Documentation with Sphinx & GitHub Actions

Talkat PyCon US 2023 · 2023-04-19..04-27· [developer-experience, devops-and-delivery]
links:none on file
links:none on file
slides:none on file

Shows how to generate HTML docs from real docstrings using Sphinx autodoc + Napoleon, builds per-module rst with sphinx-apidoc, applies the furo theme, and hosts the output on an orphan gh-pages branch so the site is served via actions/github-pages. Demonstrates a GitHub Actions workflow that installs dependencies, runs sphinx-build (or sphinx-multiversion for versions), and publishes on a release trigger; the example repo produces a live site with multiple versioned directories and an index redirect that already works.

AI-written summary · about

  1. 0:00Workshop introduction
  2. 1:05What is Sphinx
  3. 2:06How this workshop came to be
  4. 3:10Workshop setup
  5. 4:17Environment setup
  6. 8:15Sphinx basics
  7. 10:26reStructuredText
  8. 12:13API docstrings
  9. 16:50Generating HTML documentation
  10. 19:21Theme customization
  11. 22:35GitHub Pages hosting
  12. 27:24Break
  13. 28:08Automation with GitHub Actions
  14. 36:02Documentation versioning
  15. 42:06Versioned docs automation
  16. 45:17Workshop conclusion and feedback
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.