Skip to content
Snippets Groups Projects
Commit 1f81af42 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Adding intersphinx requirements

parent ef80047a
No related branches found
No related tags found
1 merge request!5Added documentation requirements
...@@ -216,8 +216,13 @@ autodoc_default_flags = [ ...@@ -216,8 +216,13 @@ autodoc_default_flags = [
] ]
# For inter-documentation mapping: # For inter-documentation mapping:
from bob.extension.utils import link_documentation from bob.extension.utils import link_documentation, load_requirements
intersphinx_mapping = link_documentation() sphinx_requirements = "extra-intersphinx.txt"
if os.path.exists(sphinx_requirements):
intersphinx_mapping = link_documentation(additional_packages=load_requirements(sphinx_requirements))
else:
intersphinx_mapping = link_documentation()
# We want to remove all private (i.e. _. or __.__) members # We want to remove all private (i.e. _. or __.__) members
# that are not in the list of accepted functions # that are not in the list of accepted functions
...@@ -237,4 +242,4 @@ def member_function_test(app, what, name, obj, skip, options): ...@@ -237,4 +242,4 @@ def member_function_test(app, what, name, obj, skip, options):
return False return False
def setup(app): def setup(app):
app.connect('autodoc-skip-member', member_function_test) app.connect('autodoc-skip-member', member_function_test)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment