diff --git a/doc/conf.py b/doc/conf.py index d7a1e92c0e9101ef151ef43207157ac29812d499..f5da23390bf59ddbbdace4b0beafee5029bbd3a5 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -217,7 +217,12 @@ autodoc_default_flags = [ # For inter-documentation mapping: from bob.extension.utils import link_documentation -intersphinx_mapping = link_documentation(['python', 'numpy', 'bob.bio.face', 'bob.bio.speaker', 'bob.bio.gmm', 'bob.bio.video', 'bob.bio.csu', 'bob.bio.spear', 'gridtk', 'bob.db.youtube']) +documentation_requirements = "../documentation-requirements.txt" +if os.path.exists(documentation_requirements): + intersphinx_mapping = link_documentation(requirements_file=documentation_requirements) +else: + intersphinx_mapping = link_documentation() + # We want to remove all private (i.e. _. or __.__) members # that are not in the list of accepted functions diff --git a/documentation-requirements.txt b/documentation-requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..da9c656f1edb88f35193fac0ac4880cb6d881c65 --- /dev/null +++ b/documentation-requirements.txt @@ -0,0 +1,11 @@ +python +numpy +bob.bio.face +bob.bio.speaker +bob.bio.gmm +bob.bio.video +bob.bio.csu +bob.bio.spear +bob.learn.linear +gridtk +bob.db.youtube \ No newline at end of file