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 50 51 52 53 54 55 56
|
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sat, 26 Oct 2013 08:30:36 +0000
Subject: Only use local files for generating sphinx doc.
Set the "intersphinx_mapping" parameter in the doc/conf.py to
point to local object.inv files.
This makes the package self contained and no download attempt
happens any longer (Closes: #726859).
Forwarded: not-needed
---
docs/conf.py | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index bc3ad28..b9e4003 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -83,15 +83,15 @@ html_static_path = ["_static"]
html_last_updated_fmt = "%b %d, %Y"
html_sidebars = {
"index": [
- # 'globaltoc.html',
- # 'relations.html',
- # 'sourcelink.html',
- # 'searchbox.html',
- "pypi.html",
- "gha.html",
- "readthedocs.html",
- "codecov.html",
- "ohloh.html",
+ ## 'globaltoc.html',
+ ## 'relations.html',
+ ## 'sourcelink.html',
+ ## 'searchbox.html',
+ # "pypi.html",
+ # "gha.html",
+ # "readthedocs.html",
+ # "codecov.html",
+ # "ohloh.html",
],
}
html_domain_indices = False
@@ -153,8 +153,10 @@ linkcheck_ignore = [f"https://pyepr.readthedocs.io/en/v{version}"]
# -- Options for intersphinx extension ---------------------------------------
intersphinx_mapping = {
- "python": ("https://docs.python.org/3", None),
- "numpy": ("https://docs.scipy.org/doc/numpy", None),
+ "python": ("https://docs.python.org/3",
+ "/usr/share/doc/python3-doc/html/objects.inv"),
+ # "numpy": ("https://docs.scipy.org/doc/numpy",
+ # "/usr/share/doc/python-numpy-doc/html/objects.inv"),
}
# -- Options for extlinks extension ------------------------------------------
|