From eb5bea16ff31436a16d31f53f980611f052bd1e8 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 5 Jul 2022 17:05:06 +0200 Subject: [PATCH] [fix] sphinx 5.x: add `nav.contents` everywhere that `div.topic` is used Previously, docutils produced `div.topic` for the contents directive, the latest version produces `nav.contents`. This means that those tables of contents change appearance when switching to docutils 0.18 [1][2]. [1] https://github.com/sphinx-doc/sphinx/pull/10535/commits/5806f0a [2] https://github.com/sphinx-doc/sphinx/issues/10534 Signed-off-by: Markus Heiser --- docs/_themes/searxng/static/searxng.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_themes/searxng/static/searxng.css b/docs/_themes/searxng/static/searxng.css index 1ab8489e..a214bc9d 100644 --- a/docs/_themes/searxng/static/searxng.css +++ b/docs/_themes/searxng/static/searxng.css @@ -40,7 +40,7 @@ p.sidebar-title, .sidebar p { /* admonitions */ -div.admonition, div.topic, div.toctree-wrapper { +div.admonition, div.topic, nav.contents, div.toctree-wrapper { background-color: #fafafa; margin: 8px 0px; padding: 1em;