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 = [
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx.ext.mathjax",
# 'matplotlib.sphinxext.plot_directive'
"auto_intersphinx",
]
# Be picky about warnings
......@@ -232,14 +232,11 @@ 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",
"bob.pad.base",
"bob.bio.base",
]
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