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

Support newly documented (but previously available) -M option #64

Open nwwells opened 6 years ago

nwwells commented 6 years ago

See https://github.com/sphinx-doc/sphinx/pull/3938/files for the documentation, and https://github.com/sphinx-doc/sphinx/blob/master/sphinx/make_mode.py for implementation

Basically -M is a alias for -b with some additional handling for other features like a help and LaTeX.

Assuming this is just something we can pass through, it would allow me to do something like

make html --auto

and simply use sphinx-autobuild as the SPHINXBUILD option.

rowanG077 commented 6 years ago

I have implemented this feature: https://github.com/rowanG077/sphinx-multibuild

pradyunsg commented 3 years ago

Looks like a reasonable request!