Skip to content
Snippets Groups Projects
Commit 73982a75 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'patch-sphinx-conf' into 'master'

[sphinx] Added numpy and python in the intersphinx mapping

By distraction I removed the packages intersphinx mapping from `python` and `numpy` when we use the file `extra-intersphinx.txt`.

This patch fixes the issue.

See merge request !14
parents 47411b38 bd0cf626
No related branches found
No related tags found
1 merge request!14[sphinx] Added numpy and python in the intersphinx mapping
......@@ -25,6 +25,7 @@ extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'matplotlib.sphinxext.plot_directive'
]
import sphinx
......@@ -239,7 +240,7 @@ autodoc_default_flags = [
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=load_requirements(sphinx_requirements))
intersphinx_mapping = link_documentation(additional_packages=['python', 'numpy']+load_requirements(sphinx_requirements))
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