File: docs-no-version-switch

package info (click to toggle)
python-skbio 0.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,924 kB
  • sloc: python: 67,527; ansic: 672; makefile: 225
file content (40 lines) | stat: -rw-r--r-- 1,116 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
30
31
32
33
34
35
36
37
38
39
40
From: "Michael R. Crusoe" <crusoe@debian.org>
Date: Tue, 25 Jun 2024 11:39:43 +0200
Subject: Skip the version switcher

Forwarded: not-needed

We only build one version, without this patch we get the following error:

writing output... [  0%] alignment
Theme error:
An error happened in rendering the page alignment.
Reason: TemplateNotFound('version-switcher.html')
---
 doc/source/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- python-skbio.orig/doc/source/conf.py
+++ python-skbio/doc/source/conf.py
@@ -149,12 +149,6 @@
     # show warning if not latest stable version
     # 'show_version_warning_banner': True,
 
-    # version switcher
-    'switcher': {
-        'json_url': f'{html_baseurl}/versions.json',
-        'version_match': doc_dir,
-    },
-
     # simplify section navigation
     'navigation_depth': 2,
     'collapse_navigation': True,
@@ -163,7 +157,7 @@
     'header_links_before_dropdown': 7,
 
     # header layout
-    'navbar_start': ['navbar-logo', 'version-switcher'],
+    'navbar_start': ['navbar-logo'],
 
     # footer layout
     'footer_start': ['copyright'],