Skip to content

Commit 3ba93ba

Browse files
Add more shorthand for links
1 parent afab00a commit 3ba93ba

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/source/conf.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,28 @@
5959
# netCDF4 docs
6060
netcdf4_docs = "https://unidata.github.io/netcdf4-python/netCDF4/index.html"
6161

62+
# ITER docs
63+
iter_projects = "https://git.iter.org/projects/"
64+
imas_site = urljoin(iter_projects, "IMAS/")
65+
imex_site = urljoin(iter_projects, "IMEX/")
66+
al_cython_url = urljoin(imas_site, "repos/al-cython/")
67+
al_python_hli_url = urljoin(imas_site, "repos/al-python/")
68+
al_python_lib_url = urljoin(imas_site, "repos/al-python-lib/")
69+
issue_url = jira_url = "https://jira.iter.org/browse/"
70+
6271
# Configuration of sphinx.ext.extlinks
6372
# See https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html
6473
# unique name: (base URL, label prefix)
6574
extlinks = {
6675
"src": (blob_url + "%s", f"{src_group}/{src_project}/"),
67-
"issue": (issue_url + "%s", "#"),
76+
"issue": (issue_url + "%s", None),
6877
"merge": (mr_url + "%s", "!"),
6978
"jintrac": (jintrac_sphinx + "%s", "jintrac pages "),
7079
"netcdf4": (netcdf4_docs + "%s", "netcdf4 "),
80+
"al_cython": (al_cython_url + "%s", "al_cython "),
81+
"al_hli": (al_python_hli_url + "%s", "al_hli"),
82+
"al_lib": (al_python_lib_url + "%s", "al_lib"),
83+
"pypa": ("https://packaging.python.org/%s", None),
7184
}
7285

7386
full_version = V(imaspy.__version__)
@@ -343,6 +356,8 @@
343356
"matplotlib": ("https://matplotlib.org", None),
344357
"xarray": ("http://xarray.pydata.org/en/stable/", None),
345358
"dask": ("https://docs.dask.org/en/latest", None),
359+
"cython": ("https://cython.readthedocs.io/", None),
360+
"gitpython": ("https://gitpython.readthedocs.io/en/stable", None),
346361
# "netcdf4": ("https://unidata.github.io/netcdf4-python/", None), # netcdf4 does not have an intersphinx mapping
347362
# "jintrac": ("https://users.euro-fusion.org/pages/data-cmg/wiki/", None) Behind password, so cannot link there
348363
}

0 commit comments

Comments
 (0)