Commit f3da17be authored by André Anjos's avatar André Anjos 💬

Updates sphinx configuration with latest

parent 424d749d
Pipeline #4755 passed with stages
in 11 minutes and 13 seconds
...@@ -25,6 +25,7 @@ extensions = [ ...@@ -25,6 +25,7 @@ extensions = [
'sphinx.ext.intersphinx', 'sphinx.ext.intersphinx',
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
'sphinx.ext.viewcode', 'sphinx.ext.viewcode',
'matplotlib.sphinxext.plot_directive'
] ]
import sphinx import sphinx
...@@ -239,9 +240,12 @@ autodoc_default_flags = [ ...@@ -239,9 +240,12 @@ autodoc_default_flags = [
from bob.extension.utils import link_documentation, load_requirements from bob.extension.utils import link_documentation, load_requirements
sphinx_requirements = "extra-intersphinx.txt" sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements): 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: else:
intersphinx_mapping = link_documentation() intersphinx_mapping = link_documentation()
# We want to remove all private (i.e. _. or __.__) members # We want to remove all private (i.e. _. or __.__) members
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment