-
-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add make autobuild
to rebuild and reload HTML files in your browser
#1208
Conversation
Naming things: There used to be a Lines 192 to 195 in cd06b15
But it was removed in favour of I went for Pillow uses |
A bunch of projects I'm involved in (like pip, Furo, sphinx-theme-builder etc) use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add a few ignores to this, starting from venv
and then adding editor-specific temp/swap files, since these also seems to trigger rebuilds.
I've added ignores for Anything else? I could reproduce changes in How might We should be careful about ignores, we don't want to accidentally ignore things. For example by ignoring plain |
When I was trying I can add more things to be ignored in a couple of days (I'm currently traveling without my PC). I can create a separate PR for that. |
Sounds good. I wonder if sphinx-autobuild should be ignoring files from |
I don't see any reason that
Updating |
It's a good idea. Could you file an issue for this, over on autobuild? |
Add a
make autobuild
target to use https://github.com/executablebooks/sphinx-autobuild.When you run it, it builds the docs and serves them at something like http://127.0.0.1:8000/
You can visit any page, for example http://127.0.0.1:8000/documentation/style-guide.html, and when you edit/save your source
.rst
file, it will automatically rebuild and update the page in the browser.This drastically improves the edit/inspect loop. A very nice touch is it will also keep you at the same position in the page.
Compare before:
make html
To this PR:
switch to prompt:make html
reload,inspectWe can add the same thing to CPython Docs and PEPs later.
cc @pradyunsg
📚 Documentation preview 📚: https://cpython-devguide--1208.org.readthedocs.build/