Jacob Kaplan-Moss

Tag: Sphinx

Auto-building Sphinx docs

Here’s a quick way to automatically regenerate your Sphinx docs as you make changes to the source. There’s probably a million ways to do this; here’s mine:

$ pip install watchdog
$ watchmedo shell-command \
              --patterns="*.txt" \
              --ignore-pattern='_build/*' \
              --recursive \
              --command='make html'
May 24th, 2012 • documentation python sphinx tips