sphinx-doc / sphinx-autobuild

Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a hot-reload web server.
MIT License
541 stars 82 forks source link

Does not work on osx - with workaround #9

Closed bdejong closed 10 years ago

bdejong commented 10 years ago

On osx watchdog seems to be oblivious to file-changes (there are plenty of tickets and fixes for this in the watchdog space, but no attention given to them).

A workaround for this problem can be to also listen to directory changes:

class _WatchdogHandler(FileSystemEventHandler):
    def on_any_event(self, event):
        #if event.is_directory:
        #    return
        self._action(self._watcher, event.src_path)

This fixes the problem on OSX.

bdejong commented 10 years ago

My apologies: the develop branch does fix this problem, the default version installed by pip from pypi does not.

bdejong commented 10 years ago

I guess the question would be: when will the develop branch be included in pypi?

GaretJax commented 10 years ago

@bdejong I just released version 0.3.0 to PyPI

bdejong commented 10 years ago

Yeah! :thumbsup: Thanks, this makes editing rst sooo much easier :)