Allow building with Debian's pydata-sphinx-theme
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 19 Feb 2023 11:01:48 +0000 (11:01 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 19 Feb 2023 11:01:48 +0000 (11:01 +0000)
This is currently too old to have all the options upstream expects

Gbp-Pq: Name sphinx_old_pydata_theme.patch

doc/_templates/sidebar-nav-bs.html
doc/source/conf.py

index 8298b66568e200be752c1639766c2737fe3acdea..cccff8475c1438578f00d6e2d0b847f3a25445f1 100644 (file)
@@ -1,9 +1,9 @@
 <nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation">
   <div class="bd-toc-item navbar-nav">
     {% if pagename.startswith("reference") %}
-    {{ generate_toctree_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }}
+    {{ generate_nav_html("sidebar", maxdepth=4, collapse=True, includehidden=True, titles_only=True) }}
     {% else %}
-    {{ generate_toctree_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
+    {{ generate_nav_html("sidebar", maxdepth=4, collapse=False, includehidden=True, titles_only=True) }}
     {% endif %}
   </div>
 </nav>
index 53e5ad104d2fb4819f1d3c4cc63184c1b538b7f5..b891e0be2ffc9f2df33a1b1c47d04abf0da1e320 100644 (file)
@@ -244,12 +244,7 @@ html_theme_options = {
     "footer_items": ["pandas_footer", "sphinx-version"],
     "github_url": "https://github.com/pandas-dev/pandas",
     "twitter_url": "https://twitter.com/pandas_dev",
-    "logo": {"image_dark": "https://pandas.pydata.org/static/img/pandas_white.svg"},
-    "navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
-    "switcher": {
-        "json_url": "/versions.json",
-        "version_match": switcher_version,
-    },
+    "navbar_end": ["navbar-icon-links"],
 }
 
 # Add any paths that contain custom themes here, relative to this directory.