Skip to content

Add colour to status progress percentage - #14670

Open
hugovk wants to merge 1 commit into
sphinx-doc:masterfrom
hugovk:colour-progress
Open

hugovk wants to merge 1 commit into
sphinx-doc:masterfrom
hugovk:colour-progress

Conversation

@hugovk

@hugovk hugovk commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Purpose

Add more colour to the logs, so the "[XX%]" bit is shown in a different colour based on percentage, from red to green:

reading sources... [ 49%] extdev/nodes
...
writing output... [ 97%] usage/restructuredtext/directives
...
highlighting module code... [100%] sphinxcontrib.websupport.storage
...
copying images... [100%] _static/themes/bizstyle.png

Demo using:

uv run --group docs --no-group package make -C doc clean html

I verified no colour is shown when disabling via env var:

NO_COLOR=1 uv run --group docs --no-group package make -C doc clean html

AI Disclosure

Initial code by Claude, improved by me.

@hugovk

hugovk commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

CI failure unrelated, should be fixed by #14611 or #14669.

@jdillard jdillard added the type:proposal a feature suggestion label Sep 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:proposal a feature suggestion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants