File: 0006-Disable-unsupported-add-ons-in-documentation.patch

package info (click to toggle)
numpy 1%3A2.3.5%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 86,232 kB
  • sloc: python: 255,841; asm: 232,483; ansic: 212,578; cpp: 157,469; f90: 1,575; sh: 845; fortran: 567; makefile: 431; sed: 139; xml: 109; java: 97; perl: 82; cs: 62; javascript: 53; objc: 33; lex: 13; yacc: 9
file content (51 lines) | stat: -rw-r--r-- 1,571 bytes parent folder | download | duplicates (3)
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
41
42
43
44
45
46
47
48
49
50
51
From: Sandro Tosi <morph@debian.org>
Date: Sun, 3 Dec 2023 11:24:19 -0400
Subject: Disable unsupported add-ons in documentation

Forwarded: not-needed
---
 doc/source/conf.py              | 6 +-----
 doc/source/release/template.rst | 2 +-
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/doc/source/conf.py b/doc/source/conf.py
index f202baa..6d9ecd5 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -97,7 +97,6 @@ extensions = [
     'sphinx_copybutton',
     'sphinx_design',
     'sphinx.ext.imgconverter',
-    'jupyterlite_sphinx',
 ]
 
 skippable_extensions = [
@@ -261,9 +260,6 @@ html_theme_options = {
     "header_links_before_dropdown": 6,
     # Add light/dark mode and documentation version switcher:
     "navbar_end": [
-        "search-button",
-        "theme-switcher",
-        "version-switcher",
         "navbar-icon-links"
     ],
     "navbar_persistent": [],
@@ -271,7 +267,7 @@ html_theme_options = {
         "version_match": switcher_version,
         "json_url": "https://numpy.org/doc/_static/versions.json",
     },
-    "show_version_warning_banner": True,
+    "show_version_warning_banner": False,
 }
 
 html_title = f"{project} v{version} Manual"
diff --git a/doc/source/release/template.rst b/doc/source/release/template.rst
index a3364da..76ac0c9 100644
--- a/doc/source/release/template.rst
+++ b/doc/source/release/template.rst
@@ -18,4 +18,4 @@ Highlights
 
 .. **Content from release note snippets in doc/release/upcoming_changes:**
 
-.. include:: notes-towncrier.rst
+ .. include:: notes-towncrier.rst