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

[doc] Use auto-intersphinx

parent cd9ab9ea
No related branches found
No related tags found
1 merge request!17Resolve "Switch to new CI/CD configuration"
Pipeline #69800 failed
...@@ -24,7 +24,7 @@ extensions = [ ...@@ -24,7 +24,7 @@ extensions = [
"sphinx.ext.napoleon", "sphinx.ext.napoleon",
"sphinx.ext.viewcode", "sphinx.ext.viewcode",
"sphinx.ext.mathjax", "sphinx.ext.mathjax",
# 'matplotlib.sphinxext.plot_directive' "auto_intersphinx",
] ]
# Be picky about warnings # Be picky about warnings
...@@ -232,14 +232,11 @@ autodoc_default_options = { ...@@ -232,14 +232,11 @@ 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): "bob.pad.base",
intersphinx_mapping = link_documentation( "bob.bio.base",
additional_packages=["python", "numpy"] ]
+ load_requirements(sphinx_requirements) auto_intersphinx_catalog = "catalog.json"
)
else:
intersphinx_mapping = link_documentation()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment