From c74ed824687c0a313bbcf5fac573da477901faa9 Mon Sep 17 00:00:00 2001 From: Floyd Date: Wed, 16 Nov 2022 06:30:05 -0400 Subject: [PATCH] Docs improvement: Move search box up the sidebar Currently on non-index pages, the search box is the last thing to appear in the sidebar. When viewing a page with a large "Table of Contents" section ([example](https://marshmallow.readthedocs.io/en/stable/marshmallow.fields.html)), the search box is very low on the page and readers must scroll down for a long time to find the search box. I recommend moving the search box up the sidebar so it appears '[above the fold](https://en.wikipedia.org/wiki/Above_the_fold)' on most resolutions. Let me know if you have any questions. Thanks! --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 006695328..88318819d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -81,14 +81,14 @@ } html_sidebars = { - "index": ["about.html", "donate.html", "useful-links.html", "searchbox.html"], + "index": ["about.html", "searchbox.html", "donate.html", "useful-links.html"], "**": [ "about.html", + "searchbox.html", "donate.html", "useful-links.html", "localtoc.html", "relations.html", - "searchbox.html", ], }