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
No related branches found
No related tags found
1 merge request!107Resolve "Switch to new CI/CD configuration"
Pipeline #66630 passed
{}
...@@ -25,6 +25,7 @@ extensions = [ ...@@ -25,6 +25,7 @@ extensions = [
"sphinx.ext.viewcode", "sphinx.ext.viewcode",
"sphinx.ext.mathjax", "sphinx.ext.mathjax",
"matplotlib.sphinxext.plot_directive", "matplotlib.sphinxext.plot_directive",
"auto_intersphinx",
] ]
# Be picky about warnings # Be picky about warnings
...@@ -232,14 +233,15 @@ autodoc_default_options = { ...@@ -232,14 +233,15 @@ autodoc_default_options = {
"show-inheritance": True, "show-inheritance": True,
} }
# For inter-documentation mapping: auto_intersphinx_packages = [
from bob.extension.utils import link_documentation, load_requirements ("python", "3"),
"numpy",
sphinx_requirements = "extra-intersphinx.txt" "scikit-learn",
if os.path.exists(sphinx_requirements): "scipy",
intersphinx_mapping = link_documentation( "h5py",
additional_packages=["python", "numpy"] "matplotlib",
+ load_requirements(sphinx_requirements) "tabulate",
) "numba",
else: "xarray",
intersphinx_mapping = link_documentation() ]
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