FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Infra: `make htmllive`: open browser when ready by hugovk · Pull Request #3558 · python/peps · GitHub

Repository navigation

Infra: make htmllive: open browser when ready - #3558

Merged
hugovk merged 1 commit into
python:mainfrom
hugovk:make-htmllive-open-browser
Dec 1, 2023
Merged

hugovk merged 1 commit into
python:mainfrom
hugovk:make-htmllive-open-browser

Conversation

hugovk commented Nov 30, 2023 •
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

Like python/devguide#1233.

When running make htmllive, this will open the browser when the docs have been built the first time.

It means you don't need to hunt around for the link in:

❯ make htmllive
venv already exists.
To recreate it, remove it first with `make clean-venv'.
.venv/bin/sphinx-autobuild -b html -j 8  --re-ignore="/\.idea/|/venv/|/pep-0000.rst|/topic/" --open-browser --delay 0 peps build
[sphinx-autobuild] > sphinx-build -b html -j 8 /Users/hugo/github/peps/peps /Users/hugo/github/peps/build
Running Sphinx v7.2.6
loading pickled environment... done
building [html]: targets for 1 source files that are out of date
updating environment: 0 added, 2 changed, 5 removed
reading sources... [100%] topic/typing
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
writing output... [100%] topic/typing
generating indices... done
writing additional pages... done
dumping object inventory... done
build succeeded.

The HTML pages are in build.
[I 231130 18:08:54 server:335] Serving on http://127.0.0.1:8000
[I 231130 18:08:54 handlers:62] Start watching changes
[I 231130 18:08:54 handlers:64] Start detecting changes
[I 231130 18:08:54 handlers:135] Browser Connected: http://127.0.0.1:8000/
[I 231130 18:08:55 handlers:82] Ignore: /Users/hugo/github/peps/peps/pep-0418/clockutils.py
[I 231130 18:08:56 handlers:92] Reload 1 waiters: None
[I 231130 18:08:57 handlers:135] Browser Connected: http://127.0.0.1:8000/

I'll make the same changes for the CPython repo afterwards.


📚 Documentation preview 📚: https://pep-previews--3558.org.readthedocs.build/

hugovk added the infra Core infrastructure for building and rendering PEPs label Nov 30, 2023
hugovk requested a review from AA-Turner as a code owner November 30, 2023 16:10

JacobCoffee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I added this for some of my projects after finding it. It's great.

hugovk merged commit 2d1bdc5 into python:main Dec 1, 2023
hugovk deleted the make-htmllive-open-browser branch December 1, 2023 16:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Core infrastructure for building and rendering PEPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL