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

Allow installing pip modules (requirements.txt) from repo #111

Closed ibotty closed 2 years ago

ibotty commented 2 years ago

Description / Summary

It would be great if sphinx-autobuild could install modules from requirements.txt automatically and when the file changes.

Value / benefit

I am offering development-containers running in a cloud for people writing documentation. Apart from the known issues it works great. But installing sphinx modules via pip is not as easy for them.

Implementation details

No response

Tasks to complete

No response

welcome[bot] commented 2 years 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:

pradyunsg commented 2 years ago

You can do this with a pre-build command. This is done by passing --pre-build to sphinx-autobuild.

sphinx-autobuild --pre-build "path/to/venv/bin/pip install magic" ...