Package: python3.11 / 3.11.2-6+deb12u6

local-doc-references.diff Patch series | 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
Description: Debian: Reference the local path to the documentation

Forwarded: not-needed

--- a/Doc/tools/templates/layout.html
+++ b/Doc/tools/templates/layout.html
@@ -18,7 +18,7 @@
 {% endblock %}
 
 {% block extrahead %}
-    <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
+    <link rel="canonical" href="file:///usr/share/doc/python3.11/html/{{pagename}}.html" />
     {% if builder != "htmlhelp" %}
       {% if pagename == 'whatsnew/changelog' and not embedded %}
       <script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
--- a/Lib/idlelib/help.html
+++ b/Lib/idlelib/help.html
@@ -28,7 +28,7 @@
     <link rel="copyright" title="Copyright" href="../copyright.html" />
     <link rel="next" title="Development Tools" href="development.html" />
     <link rel="prev" title="tkinter.tix — Extension widgets for Tk" href="tkinter.tix.html" />
-    <link rel="canonical" href="https://docs.python.org/3/library/idle.html" />
+    <link rel="canonical" href="file:///usr/share/doc/python3.11/html/library/idle.html" />