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

Use searchfield instead of searchbox component in sidebar #217

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

timhoffm
Copy link
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
17 of 18 checks passed
@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