Allow building with Debian's pydata-sphinx-theme
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 7 Jul 2024 18:36:37 +0000 (19:36 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 7 Jul 2024 18:36:37 +0000 (19:36 +0100)
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 ce515f3cad186805b20ad651795364781109905a..b817cc7bb13ceffefc0bd945f5716d06976ff105 100644 (file)
@@ -245,14 +245,7 @@ html_theme_options = {
     "footer_start": ["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_align": "left",
-    "navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
-    "switcher": {
-        "json_url": "https://pandas.pydata.org/versions.json",
-        "version_match": switcher_version,
-    },
-    "show_version_warning_banner": True,
+    "navbar_end": ["navbar-icon-links"],
     "icon_links": [
         {
             "name": "Mastodon",