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
|
From: Tomasz Rybak <tomasz.rybak@post.pl>
Date: Tue, 21 Feb 2023 11:23:15 +0100
Subject: use Debian packages for external documentation
Forwarded: not-needed
Last-Update: 2019-11-05
Do not fetch external Sphinx inventory but use one from Debian packages.
---
doc/Makefile | 2 +-
doc/conf.py | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/doc/Makefile b/doc/Makefile
index f6f1339..e9ec9e3 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -3,7 +3,7 @@
# You can set these variables from the command line, and also
# from the environment for the first two.
-SPHINXOPTS ?= -W -n
+SPHINXOPTS ?= -n
SPHINXBUILD ?= python $(shell which sphinx-build)
SOURCEDIR = .
BUILDDIR = _build
diff --git a/doc/conf.py b/doc/conf.py
index 45ea337..2236956 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -7,6 +7,9 @@ _conf_url = \
with open("sphinxconfig.py") as _inf:
exec(compile(_inf.read(), _conf_url, "exec"), globals())
+project = "PyOpenCL"
+html_theme = "alabaster"
+
exclude_patterns = ["subst.rst"]
copyright = "2009-21, Andreas Kloeckner"
@@ -20,8 +23,8 @@ version = ".".join(str(x) for x in ver_dic["VERSION"])
release = ver_dic["VERSION_TEXT"]
intersphinx_mapping = {
- "python": ("https://docs.python.org/3", None),
+ "python": ("file:///usr/share/doc/python3-doc/html/", "/usr/share/doc/python3-doc/html/objects.inv"),
"numpy": ("https://numpy.org/doc/stable/", None),
- "mako": ("https://docs.makotemplates.org/en/latest", None),
+ "mako": ("file:///usr/share/doc/python-mako-doc/html/", "/usr/share/doc/python-mako-doc/html/objects.inv"),
"pytools": ("https://documen.tician.de/pytools", None),
}
|