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

[templates] Update templates to include requirements.txt on conda installation [ci skip]

parent 289b5379
No related branches found
No related tags found
No related merge requests found
Pipeline #27318 skipped
......@@ -18,7 +18,7 @@ build:
# installs the documentation source, readme to share/doc so it is available
# during test time
- install -d "${PREFIX}/share/doc/{{ name }}"
- cp -R README.rst doc "${PREFIX}/share/doc/{{ name }}/"
- cp -R README.rst requirements.txt doc "${PREFIX}/share/doc/{{ name }}/"
requirements:
# place your build dependencies before the 'host' section
......
......@@ -212,6 +212,7 @@ rst_epilog = """
.. |current-year| date:: %%Y
""" % (version, )
# Default processing flags for sphinx
autoclass_content = 'class'
autodoc_member_order = 'bysource'
......@@ -221,13 +222,14 @@ autodoc_default_flags = [
'show-inheritance',
]
# 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))
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.
Finish editing this message first!
Please register or to comment