Skip to content
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

-D translation_progress_classes=0 doesn't convert to False as it should #13071

Open
liborjelinek opened this issue Oct 25, 2024 · 0 comments
Open

Comments

@liborjelinek
Copy link
Contributor

liborjelinek commented Oct 25, 2024

Describe the bug

-D, --define parameter to sphinx-build should convert 0 to False as documented.

However, for recently added translation_progress_classes option it doesn't work.

How to Reproduce

sphinx-build -b html -D language=cs -D translation_progress_classes=0 source build

says

WARNING: The config value `translation_progress_classes` has to be a one of (True, False, 'translated', 'untranslated'), but `0` is given.

Configuration error:
translation_progress_classes must be True, False, "translated" or "untranslated"

Environment Information

"sphinx==8.1.3"

Sphinx extensions

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants