~/talk

Documenting your code from docstrings to automated builds

Talkat PyCon US 2022 · 2022-04-27..05-03· [python]
links:none on file
slides:none on file

Shows a concrete workflow: write docstrings and type hints, render API with Sphinx + extensions (autodoc, napoleon, viewcode), author guides and runnable notebooks with JupyterBook, and automate builds to GitHub Pages using GitHub Actions → gh-pages. Demonstrates numbers from the pre-survey (10 tried Sphinx, 4 succeeded), runs notebooks, uses binder for live demos, and adds docs tests (xdoctest), coverage checks (interrogate/pydocstyle); ends with a live site build and troubleshooting notes.

AI-written summary · about

  1. 0:00Intro
  2. 0:38Jacob Deppen
  3. 2:24Why does documentation matter
  4. 2:43Values of documentation
  5. 4:47Who am I
  6. 5:58Who am I not
  7. 6:33Why this tutorial
  8. 8:09The workflow
  9. 9:26Sphinx
  10. 11:24Pros to Sphinx
  11. 17:15Sticky Notes
  12. 17:52Clone to local machine
  13. 20:34Setup environment
  14. 22:38Explore code
  15. 29:47Documentation level 1
  16. 42:26Type annotations
  17. 44:03Pros Cons
  18. 46:17Practice module
  19. 52:17Return type
  20. 57:17Invalid type
~/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.