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
|
from urllib.request import urlopen
_conf_url = \
"https://raw.githubusercontent.com/inducer/sphinxconfig/main/sphinxconfig.py"
#with urlopen(_conf_url) as _inf:
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"
ver_dic = {}
with open("../pyopencl/version.py") as ver_file:
ver_src = ver_file.read()
exec(compile(ver_src, "../pyopencl/version.py", "exec"), ver_dic)
version = ".".join(str(x) for x in ver_dic["VERSION"])
# The full version, including alpha/beta/rc tags.
release = ver_dic["VERSION_TEXT"]
intersphinx_mapping = {
"python": ("file:///usr/share/doc/python3-doc/html/", "/usr/share/doc/python3-doc/html/objects.inv"),
"numpy": ("https://numpy.org/doc/stable/", 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),
}
|