diff --git a/doc_src/python_docs_theme/layout.html b/doc_src/python_docs_theme/layout.html
index 18d6a8724..dcc8f2379 100644
--- a/doc_src/python_docs_theme/layout.html
+++ b/doc_src/python_docs_theme/layout.html
@@ -37,6 +37,8 @@
{%- endif %}
{% endblock %}
+{% block sidebar1 %}{{ sidebar() }}{% endblock %}
+{% block sidebar2 %} {% endblock %}
{% block extrahead %}
{% if builder != "htmlhelp" %}
diff --git a/doc_src/python_docs_theme/static/pydoctheme.css b/doc_src/python_docs_theme/static/pydoctheme.css
index 5e9c65319..445c69b0b 100644
--- a/doc_src/python_docs_theme/static/pydoctheme.css
+++ b/doc_src/python_docs_theme/static/pydoctheme.css
@@ -241,6 +241,19 @@ dl > dt span ~ em {
height: auto;
position: relative;
}
+ div.sphinxsidebar ul {
+ flex-basis: content;
+ flex-wrap: wrap;
+ }
+ div.sphinxsidebarwrapper {
+ display: flex;
+ }
+ div.sphinxsidebarwrapper > h3:nth-child(5) {
+ display: none;
+ }
+ div#searchbox {
+ display: none !important;
+ }
div.content {margin-left: 0;}
div.bodywrapper {