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",
|