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
552 stars 84 forks source link

Ignore contents of `.gitignore` #140

Open hugovk opened 1 year ago

hugovk commented 1 year ago

Context

We're going to start using sphinx-autobuild in https://github.com/python/devguide/pull/1208 and are adding the PyCharm IDE directory (.idea) and virtualenv directory (venv) to prevent irrelevant changes from triggering a rebuild:

--re-ignore="/\.idea/|/venv/"

Proposal

It would be helpful if sphinx-autobuild read in the contents of any .gitignore and automatically ignored any files matching the contents.

This should be in addition to any files specified via command-line options.

Tasks and updates

No response