Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
0a8f36fc
Commit
0a8f36fc
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[templates] Update templates to include requirements.txt on conda installation [ci skip]
parent
289b5379
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#27318
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/devtools/templates/conda/meta.yaml
+1
-1
1 addition, 1 deletion
bob/devtools/templates/conda/meta.yaml
bob/devtools/templates/doc/conf.py
+4
-2
4 additions, 2 deletions
bob/devtools/templates/doc/conf.py
with
5 additions
and
3 deletions
bob/devtools/templates/conda/meta.yaml
+
1
−
1
View file @
0a8f36fc
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
bob/devtools/templates/doc/conf.py
+
4
−
2
View file @
0a8f36fc
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment