lepture/python-livereload — pull request #9 by kespindler (2012-11-06 17:09:12+00:00)
Title: add support for rst compilation

restructuredText can also get some love.

I'm using this for writing class notes or otherwise live previewing my restructured text code. Works really well. :)

Didn't do egregious amounts of testing, but seems to be working fine. Successfully prints out errors when rst2html.py fails.

Example:

raise Exception(stderr)
Exception: test.rst:5: (WARNING/2) Title underline too short.

Hellofasldkfjskfj
------

---
The Guardfile I'm currently using looks like the following:

#!/usr/bin/env python
from livereload.task import Task
from livereload.compiler import rstc

Task.add('test.rst', rstc('test.rst', 'test.html'))

However, I would love to get glob support going for arbitrary file compilation. But it seems like the framework doesn't pass along file names to the compilation step. Maybe this is something that should be happening?