File: fix-doc-header.patch

package info (click to toggle)
networkx 3.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,680 kB
  • sloc: python: 105,308; xml: 544; makefile: 131; javascript: 120; sh: 34
file content (29 lines) | stat: -rw-r--r-- 1,140 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: Fix doc header
 This patch removes the theme-switcher that is making the doc build fail,
 plus some more that are privacy-breach.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed
Last-Update: 2024-03-15

Index: networkx/doc/conf.py
===================================================================
--- networkx.orig/doc/conf.py
+++ networkx/doc/conf.py
@@ -145,15 +145,9 @@ html_theme_options = {
         },
     ],
     "external_links": [{"name": "Guides", "url": "https://networkx.org/nx-guides/"}],
-    "navbar_end": ["theme-switcher", "navbar-icon-links", "version-switcher"],
-    "secondary_sidebar_items": ["page-toc", "edit-this-page"],
+    "navbar_end": ["navbar-icon-links"],
+    "secondary_sidebar_items": ["page-toc"],
     "header_links_before_dropdown": 7,
-    "switcher": {
-        "json_url": (
-            "https://networkx.org/documentation/latest/_static/version_switcher.json"
-        ),
-        "version_match": "latest" if "dev" in version else version,
-    },
     "show_version_warning_banner": True,
     "analytics": {
         "plausible_analytics_domain": "networkx.org",