You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Pydata Sphinx theme includes the searchbox twice (you can specify the template with html_theme_options.navbar_persistent). Once for wider screens and once for narrower screens.
The DocSearch UI can only be added once per page, so it's added to the element for wider screens only. This means the search is not available on narrower screens.
The text was updated successfully, but these errors were encountered:
For those looking for a workaround or two: based on the PyData Sphinx Theme documentation, the div/template can be added under the navigation bar (navbar_center), the article header (i.e., before the heading of any page) in article_header_start, or in the primary or secondary sidebars.
For those looking for a workaround or two: based on the PyData Sphinx Theme documentation, the div/template can be added under the navigation bar (navbar_center), the article header (i.e., before the heading of any page) in article_header_start, or in the primary or secondary sidebars.
This is not working for me (unless I'm mistaken). navbar_center and both sidebars are also included twice for different screen sizes. article_header_start does not persist as one scroll down the page which I think is not a proper place to put the search box. Only navbar_start works for me.
Oops, thanks, @Charlie-XIAO – I did mean to mention navbar_start, not navbar_center. Yes, as for article_header_start, it would render on the top of every page, but it's not going to be a fixed header on scrolling. I agree on it not being a proper place for a search box.
Split off from issue #33.
The Pydata Sphinx theme includes the searchbox twice (you can specify the template with
html_theme_options.navbar_persistent
). Once for wider screens and once for narrower screens.The DocSearch UI can only be added once per page, so it's added to the element for wider screens only. This means the search is not available on narrower screens.
The text was updated successfully, but these errors were encountered: