Skip to content

Remove extra_navbar from the theme options reference - #995

Open
dchaudhari7177 wants to merge 1 commit into
executablebooks:mainfrom
dchaudhari7177:docs/810-drop-stale-extra-navbar
Open

Remove extra_navbar from the theme options reference#995
dchaudhari7177 wants to merge 1 commit into
executablebooks:mainfrom
dchaudhari7177:docs/810-drop-stale-extra-navbar

Conversation

@dchaudhari7177

Copy link
Copy Markdown

Closes #810.

The reporter is right that docs/reference.md is the only place extra_navbar appears. Confirmed on current main:

$ grep -rn "extra_navbar" src/ docs/
docs/reference.md:52:* - `extra_navbar`

src/sphinx_book_theme/theme/sphinx_book_theme/theme.conf declares extra_footer but no extra_navbar, which is why Sphinx emits unsupported theme option 'extra_navbar' given for the config in the report.

The row was stale in a second way as well: it points at [](content-footer:extra-footer), and that target does not exist anywhere in docs/ either — so the only surviving mention of the option also carried a dangling cross-reference. What the description actually describes ("Extra HTML to add ... footer") is extra_footer, the row immediately below it.

Why remove rather than reinstate

The option described extra HTML below the sidebar footer, and that slot does not exist in the current PyData-based layout — the footer is assembled from footer_content_items (author.html, copyright.html, last-updated.html, extra-footer.html) and the sidebar from sidebars in theme.conf. Re-adding it would mean designing a new insertion point, which is a feature decision rather than a fix for this issue. Meanwhile a documented option that can only produce a build warning is worse for users than no entry at all — it is what sent the reporter looking.

Happy to open a separate issue for a sidebar-footer slot if you'd want one.

Docs only; no code or template changes.

The option does not exist. `theme.conf` has no `extra_navbar`, and the
name appears nowhere in `src/`, so Sphinx rejects it:

    WARNING: unsupported theme option 'extra_navbar' given

Its description was stale in a second way too: the cross-reference it
offered, `content-footer:extra-footer`, names no target in the docs, and
what it describes is `extra_footer`, the row directly below it.

Drop the row rather than reinstate the option. The sidebar footer slot it
described no longer exists in the PyData-based layout, so bringing it back
would be a new feature rather than a fix, and leaving a documented option
that only produces a warning is worse than not documenting it.

Closes executablebooks#810.
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.

extra_navbar doesn't work

1 participant