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
523 stars 75 forks source link

Ignore contents of `.gitignore` #140

Open hugovk opened 8 months ago

hugovk commented 8 months 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

welcome[bot] commented 8 months ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada: