Follow

Live preview sphinx documentation using watchdog and browser-sync

Install watchdog (pip) and browser-sync (npm).

Then run:

python watch.py

(watch.py -> gist.github.com/vimalkvn/35eb5)

Open a new terminal and run:

browser-sync start -s build/html -f "build/html/*.html"

Modify an rst file and save it. Live preview should update.

Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!