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: pyopencl-2016.1+git20161003/doc/conf.py
===================================================================
--- pyopencl-2016.1+git20161003.orig/doc/conf.py
+++ pyopencl-2016.1+git20161003/doc/conf.py
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 
 from __future__ import absolute_import
+import collections
 
 # PyOpenCL documentation build configuration file, created by
 # sphinx-quickstart on Fri Jun 13 00:51:19 2008.
@@ -92,10 +93,10 @@ pygments_style = 'sphinx'
 html_theme = "alabaster"
 
 html_theme_options = {
-        "extra_nav_links": {
-            "🚀 Github": "https://github.com/pyopencl/pyopencl",
-            "💾 Download Releases": "https://pypi.python.org/pypi/pyopencl",
-            }
+        "extra_nav_links": collections.OrderedDict((
+            ("🚀 Github", "https://github.com/pyopencl/pyopencl"),
+            ("💾 Download Releases", "https://pypi.python.org/pypi/pyopencl"),
+            ))
         }
 
 html_sidebars = {
@@ -192,9 +193,12 @@ latex_documents = [
 #latex_use_modindex = True
 
 intersphinx_mapping = {
-        'http://docs.python.org/dev': None,
-        'http://docs.scipy.org/doc/numpy/': None,
-        'http://docs.makotemplates.org/en/latest/': 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',
         }
 
 autoclass_content = "both"
