Skip to content
Snippets Groups Projects
Commit cc187103 authored by André MAYORAZ's avatar André MAYORAZ
Browse files

[doc] switch to auto-intersphinx

parent 4236e43d
Branches
Tags
1 merge request!107Resolve "Switch to new CI/CD configuration"
Pipeline #66630 passed
{}
......@@ -25,6 +25,7 @@ extensions = [
"sphinx.ext.viewcode",
"sphinx.ext.mathjax",
"matplotlib.sphinxext.plot_directive",
"auto_intersphinx",
]
# Be picky about warnings
......@@ -232,14 +233,15 @@ autodoc_default_options = {
"show-inheritance": True,
}
# For inter-documentation mapping:
from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
intersphinx_mapping = link_documentation(
additional_packages=["python", "numpy"]
+ load_requirements(sphinx_requirements)
)
else:
intersphinx_mapping = link_documentation()
auto_intersphinx_packages = [
("python", "3"),
"numpy",
"scikit-learn",
"scipy",
"h5py",
"matplotlib",
"tabulate",
"numba",
"xarray",
]
auto_intersphinx_catalog = "catalog.json"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment