Re: Upstream build system, Sphinx autodoc, Python import path
Or use the following alternative, which lets the user browse the
documentation offline.
$ cat debian/patches/use-local-python3-doc-for-cross-references
>From f519a948173bfd4e9700a4ebc60bc54bf3455018 Mon Sep 17 00:00:00 2001
From: Florent Rougon <f.rougon@free.fr>
Date: Thu, 8 Oct 2015 13:28:35 -0700
Subject: Use local doc from python3-doc for cross references
Forwarded: not-needed
Last-Update: 2014-10-17
Patch-Name: use-local-python3-doc-for-cross-references
---
doc/conf.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/doc/conf.py b/doc/conf.py
index 728397d..18461c9 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -35,7 +35,8 @@ extensions = [
'sphinx.ext.viewcode',
]
-intersphinx_mapping = {'python': ('http://docs.python.org/3', None)}
+intersphinx_mapping = {'python': ('file:///usr/share/doc/python3/html',
+ '/usr/share/doc/python3/html/objects.inv')}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Then put python3-doc in B-D and Suggests or so.
--
Florent
Reply to: