Skip to content

Hide an explicitly unset logo name in the sidebar - #233

Open
ketpatil77 wants to merge 3 commits into
sphinx-doc:masterfrom
ketpatil77:fix/none-logo-name
Open

ketpatil77 wants to merge 3 commits into
sphinx-doc:masterfrom
ketpatil77:fix/none-logo-name

Conversation

@ketpatil77

@ketpatil77 ketpatil77 commented Oct 26, 2026 •

Copy link
Copy Markdown

Fixes #216.

An explicit logo_name=None is converted to the visible text "None" by the sidebar template. Skip the custom-name heading when the option is None, retaining the existing boolean/string switches and custom names.

Added three unittest methods covering None, six boolean/string forms and a custom name. The None case fails before this change and passes afterward. Run these regressions in the existing Sphinx-version CI matrix; Jinja is already provided by Sphinx. All tests and a warnings-as-errors documentation build pass on Python 3.11/Sphinx 7.4.7. git diff --check passes.

AI assistance: OpenAI Codex helped prepare and validate this change under the contributor's supervision.

CI follow-up: this branch also includes the small Read the Docs configuration repair shared with #232. The service reported config:sphinx:missing-config; explicitly selecting the existing docs/conf.py fixes that prerequisite without changing documentation content. The same path passed a local warnings-as-errors Sphinx build.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

logo_name = None not handled properly, appears in sidebar

1 participant