Skip to content

Use searchfield instead of searchbox component in sidebar#217

Merged
AA-Turner merged 2 commits intosphinx-doc:masterfrom
timhoffm:searchfield
Jul 15, 2024
Merged

Use searchfield instead of searchbox component in sidebar#217
AA-Turner merged 2 commits intosphinx-doc:masterfrom
timhoffm:searchfield

Conversation

@timhoffm
Copy link
Copy Markdown
Contributor

@timhoffm timhoffm commented Jul 8, 2024

Edit: This would require bumping the dependency to 6.2 (Relased Apr 2023), where the new searchfield component was introduced. Is it feasible to bumb the min-version of sphinx to 6.2? I assume nothing really bad would happen. Users with older versions of sphinx would just not get newer versions of the theme.


This moves the search field up before the navigation. It's quite commmon that search is near the top of the page. Also, this results in a fixed position, because navigation is page dependent and may be long, which could move the search field far down or even off-page in the old layout.

The searchfield component
(sphinx-doc/sphinx#11045) is more compact and does not have a heading, which reduces clutter and gives more focus to the content sections.

before / after:

grafik grafik

This moves the search field up before the navigation. It's quite
commmon that search is near the top of the page. Also, this
results in a fixed position, because navigation is page dependent
and may be long, which could move the search field far down or
even off-page in the old layout.

The searchfield component
(sphinx-doc/sphinx#11045)
is more compact and does not have a heading, which reduces
clutter and gives more focus to the content sections.
@AA-Turner AA-Turner closed this Jul 15, 2024
@AA-Turner AA-Turner reopened this Jul 15, 2024
@AA-Turner AA-Turner merged commit eb522b8 into sphinx-doc:master Jul 15, 2024
@timhoffm timhoffm deleted the searchfield branch July 15, 2024 09:44
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.

2 participants