Skip to content

Use flexible search field for navbar#991

Open
TimMonko wants to merge 3 commits intonapari:mainfrom
TimMonko:enh/search-field
Open

Use flexible search field for navbar#991
TimMonko wants to merge 3 commits intonapari:mainfrom
TimMonko:enh/search-field

Conversation

@TimMonko
Copy link
Copy Markdown
Contributor

@TimMonko TimMonko commented Apr 16, 2026

References and relevant issues

Follow-up to #979

Will only be styled as below once napari/docs constraints get updated. (should we bump min pydata-sphinx-theme in napari/napari?)

Description

Uses pydata-sphinx-theme's flexible search-field -> search button width-dependent navbar search.
You can check https://napari.org/napari-sphinx-theme to see it in action, for now

image image

@TimMonko TimMonko added this to the 0.7.1 milestone Apr 16, 2026
@TimMonko TimMonko added the enhancement New feature or request label Apr 16, 2026
@github-actions github-actions Bot added documentation Improvements or additions to documentation and removed enhancement New feature or request labels Apr 16, 2026
@TimMonko TimMonko added enhancement New feature or request and removed enhancement New feature or request labels Apr 16, 2026
Comment thread docs/conf.py
'version_match': version_match,
},
'show_version_warning_banner': True,
'navbar_persistent': ['search-button'],
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interestingly, using ['search-field'] here seems to pull in a different html template, so it works better by just removing this and I guess defaulting to pydata-sphinx-theme's route. I thought that was the flexible one, but the docs are unclear. Just leaving a breadcrumb here

https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/search.html

@TimMonko
Copy link
Copy Markdown
Contributor Author

@napari-bot make slimfast

the constraints have been bumped so it should have the new search field

@TimMonko
Copy link
Copy Markdown
Contributor Author

Hmm doesn't look like circle pulled in the updated napari-sphinx-theme yet

@TimMonko
Copy link
Copy Markdown
Contributor Author

Yay it's showing now after merging in a commit from main :) There is a small section of width where the search field dissapears and the search icon is not present. This does not seem to be the case for pydata-sphinx-theme

I suspect it has something to do with napari/napari-sphinx-theme#198

image

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant