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

[ENH] Sphinx's `exclude_patterns` as ignore patterns #135

Open maxdup opened 11 months ago

maxdup commented 11 months ago

Hi :) This is an implementation for the feature requested in issue #131

This fork enables sphinx-autobuild's ignore system to leverage sphinx's conf.py. Sphinx's exclude_patterns configuration is now taken into account when determining what files to ignore.

P.S: I know my try statement looks a little paranoid but I feel it's adequate given the circumstances. Anyway, let me know your thoughts.

P.P.S: Sorry I couldn't run the linter ¯_(ツ)_/¯ (but I did run the code through Black)

welcome[bot] commented 11 months ago

Thanks for submitting your first pull request! You are awesome! :hugs:
If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.
Welcome to the EBP community! :tada: