~/talk

Customizing Sphinx: Simple, Normal, and Hard

Talkat PyOhio 2018 · 2018-07-28..07-29· [documentation]
slides:none on file

Shows concrete steps to tweak Sphinx: change conf.py values to alter theme and page width, pass alabaster theme options through theme.conf, drop CSS/JS into a _static directory (use .css_t for templated values), override Jinja2 templates by copying search_box.html into _templates, and install a pip theme like sphinx_bootstrap_theme. Demonstrates building a minimal extension: define a docutils node, a directive, an HTML visitor, and a setup(app) that calls add_node/add_directive and connects events. Tests run with pytest fixtures and the extension renders HTML as expected.

AI-written summary · about

  1. 0:00Start
  2. 6:35B.CHANGE SOVE HTML THENE OPTIONS
  3. 8:27theme.conf
  4. 9:10ALABASTER CUSTOMIZATION
  5. 14:3121. OVERRIDE A TEMPLATE
  6. 16:23alabaster/layout.html
  7. 17:37basic/layout.html
  8. 24:18EXAMPLE: alabaster
~/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.