1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: let sphinx use packaged python doc instead of accessing network
This patch cannot be forwarded because it hardcodes a path specifict
to Debian.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: not-needed
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -49,8 +49,12 @@
intersphinx_mapping = {
# 3.7 so that we can link to contextlib.asynccontextmanager
# This URL can switch back to /3 after cpython 3.7 is released
- "python": ('https://docs.python.org/3.7', None),
- "trio": ('https://trio.readthedocs.io/en/stable', None),
+ "python": ('https://docs.python.org/3.7',
+ ('/usr/share/doc/python3/html/objects.inv',
+ None)),
+ "trio": ('https://trio.readthedocs.io/en/stable',
+ ('/usr/share/doc/python3-sphinxcontrib.trio/html/objects.inv',
+ None)),
}
autodoc_member_order = "bysource"
|