Package: pycuda / 2020.1~dfsg1-1

reproducible-documentation.patch 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Description: Ensure reproducible documentation
 Do not fetch external Sphinx inverntory but use one from Debian packages.
 Use OrderedDict to ensure the same order of added external links.
Forwarded: not-needed
Author: Tomasz Rybak <tomasz.rybak@post.pl>
Last-Update: 2016-11-28
Index: pycuda-2016.1.2+git20161024/doc/source/conf.py
===================================================================
--- pycuda-2016.1.2+git20161024.orig/doc/source/conf.py
+++ pycuda-2016.1.2+git20161024/doc/source/conf.py
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 
 from __future__ import absolute_import
+import collections
 
 # PyCUDA documentation build configuration file, created by
 # sphinx-quickstart on Fri Jun 13 00:51:19 2008.
@@ -87,10 +88,10 @@ pygments_style = 'sphinx'
 html_theme = "alabaster"
 
 html_theme_options = {
-        "extra_nav_links": {
-            "🚀 Github": "https://github.com/inducer/pycuda",
-            "💾 Download Releases": "https://pypi.python.org/pypi/pycuda",
-            }
+        "extra_nav_links": collections.OrderedDict((
+            ("🚀 Github", "https://github.com/inducer/pycuda"),
+            ("💾 Download Releases", "https://pypi.python.org/pypi/pycuda"),
+            ))
         }
 
 html_sidebars = {
@@ -186,9 +187,12 @@ latex_documents = [
 #latex_use_modindex = True
 
 intersphinx_mapping = {
-        'http://docs.python.org/dev': None,
-        'http://docs.scipy.org/doc/numpy/': None,
-        'https://documen.tician.de/codepy/': None,
+        'file:///usr/share/doc/python3-doc/html/':
+           '/usr/share/doc/python3-doc/html/objects.inv',
+        'file:///usr/share/doc/python-numpy-doc/html/':
+            '/usr/share/doc/python-numpy-doc/html/objects.inv',
+        'file:///usr/share/doc/python-mako-doc/html/':
+            '/usr/share/doc/python-mako-doc/html/objects.inv'
         }
 
 mathjax_path = "file:///usr/share/javascript/mathjax/mathjax/MathJax.js"