Skip to content

Instantly share code, notes, and snippets.

@kezabelle
Created September 6, 2012 20:10
Show Gist options
  • Save kezabelle/3660029 to your computer and use it in GitHub Desktop.
Save kezabelle/3660029 to your computer and use it in GitHub Desktop.
Continuous preview of Sphinx docs. A reminder to me, when my .bash_history forgets.
" To get vim to work with Watchdog http://pypi.python.org/pypi/watchdog
" we have to set these; see https://github.com/gorakhargosh/watchdog/issues/56
set noswapfile
set nobackup
set nowritebackup
# Making rocket go now.
sphinx-quickstart
make html
open _build/index.html
# Make many changes.
watchmedo shell-command --patterns="*.py;*.rst" --recursive --command='make html' .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment