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: ...@@ -18,7 +18,7 @@ build:
# installs the documentation source, readme to share/doc so it is available # installs the documentation source, readme to share/doc so it is available
# during test time # during test time
- install -d "${PREFIX}/share/doc/{{ name }}" - 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: requirements:
# place your build dependencies before the 'host' section # place your build dependencies before the 'host' section
......
...@@ -212,6 +212,7 @@ rst_epilog = """ ...@@ -212,6 +212,7 @@ rst_epilog = """
.. |current-year| date:: %%Y .. |current-year| date:: %%Y
""" % (version, ) """ % (version, )
# Default processing flags for sphinx # Default processing flags for sphinx
autoclass_content = 'class' autoclass_content = 'class'
autodoc_member_order = 'bysource' autodoc_member_order = 'bysource'
...@@ -221,13 +222,14 @@ autodoc_default_flags = [ ...@@ -221,13 +222,14 @@ autodoc_default_flags = [
'show-inheritance', 'show-inheritance',
] ]
# For inter-documentation mapping: # For inter-documentation mapping:
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( intersphinx_mapping = link_documentation(
additional_packages=['python', 'numpy'] + additional_packages=['python', 'numpy'] + \
load_requirements(sphinx_requirements)) load_requirements(sphinx_requirements))
else: else:
intersphinx_mapping = link_documentation() 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