summaryrefslogtreecommitdiff
path: root/debian/patches/local-doc-references.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-01 17:44:24 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-01 17:44:24 +0300
commitc089c4500b0b78acf03ee5405ad250a84b0dfa66 (patch)
tree23870848d194569aff6e0e4e41bc7907960b1af1 /debian/patches/local-doc-references.diff
parent377002e7300431b68f3548d9fd2c7f99cf883939 (diff)
downloadpython3.7-debian.tar.gz
Import python3.7 (3.7.5-2)debian/3.7.5-2debian
Diffstat (limited to 'debian/patches/local-doc-references.diff')
-rw-r--r--debian/patches/local-doc-references.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/local-doc-references.diff b/debian/patches/local-doc-references.diff
new file mode 100644
index 0000000..631a1de
--- /dev/null
+++ b/debian/patches/local-doc-references.diff
@@ -0,0 +1,22 @@
+--- a/Doc/tools/templates/layout.html
++++ b/Doc/tools/templates/layout.html
+@@ -50,7 +50,7 @@
+ {% endblock %}
+ {% block extrahead %}
+ <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
+- <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
++ <link rel="canonical" href="file:///usr/share/doc/python3.7/html/{{pagename}}.html" />
+ {% if builder != "htmlhelp" %}
+ {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
+ {% if switchers is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %}
+--- a/Lib/idlelib/help.html
++++ b/Lib/idlelib/help.html
+@@ -27,7 +27,7 @@
+ <link rel="copyright" title="Copyright" href="../copyright.html" />
+ <link rel="next" title="Other Graphical User Interface Packages" href="othergui.html" />
+ <link rel="prev" title="tkinter.scrolledtext — Scrolled Text Widget" href="tkinter.scrolledtext.html" />
+- <link rel="canonical" href="https://docs.python.org/3/library/idle.html" />
++ <link rel="canonical" href="file:///usr/share/doc/python3.7/html/library/idle.html" />
+
+
+