Commit 0a8f36fc authored by André Anjos's avatar André Anjos 💬

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

parent 289b5379
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()
......
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