~/talk

Writing Documentation with Sphinx and reStructuredText

Talkat PyCon US 2021 · 2021-05-14..05-15· [developer-experience, python]
slides:none on file

Walks through creating a docs project with sphinx-quickstart, editing conf.py, and running make html or sphinx-autobuild to see live output. Shows enabling sphinx.ext.autodoc to generate API pages from docstrings, adding intersphinx mappings, using linkcheck to find broken URLs, and installing small extensions like copybutton and themes. Demonstrates where to commit sources versus the _build/html output and notes a few live debugging hiccups but overall the workflow produces usable HTML documentation.

AI-written summary · about

  1. 0:00Start
  2. 3:30Agenda
  3. 4:33Introduction about Documentation
  4. 5:05What Is Restructure Text
  5. 10:36Creating the Documentation Directory
  6. 11:36Quick Start
  7. 15:22Sphinx Quick Start
  8. 21:04Exclude Patterns
  9. 33:59Adding New Pages to the Documentation
  10. 1:00:11Sub Headings
  11. 1:01:06Render Links
  12. 1:03:46Add Comments
  13. 1:04:55Can I Define Python Docs Once
  14. 1:05:44Code Blocks
  15. 1:06:39Two Columns at the End of a Sentence
  16. 1:08:27Syntax Highlighting
  17. 1:14:34Table
  18. 1:15:46The Grid Table
  19. 1:18:19Table of Contents
  20. 1:20:24Image
  21. 1:24:06Cross-Referencing
  22. 1:24:17Cross Referencing
  23. 1:29:28Downloadable Files
  24. 1:56:47The Sphinx Extensions
  25. 2:00:10Add the Path to that Module
  26. 2:16:59Link Check
  27. 2:19:36The Documentation Coverage
  28. 2:21:01Sphinx Copy Button
  29. 2:21:49Themes
  30. 2:22:44What Files You Need To Commit
~/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.