Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beat.editor
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
beat
beat.editor
Commits
162ae25f
Commit
162ae25f
authored
4 years ago
by
Samuel GAIST
Browse files
Options
Downloads
Patches
Plain Diff
[doc] Pre-commit cleanup
parent
ca26eb00
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!150
Add pyproject.toml
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/conf.py
+6
-6
6 additions, 6 deletions
doc/conf.py
doc/get_dep_licenses.py
+6
-6
6 additions, 6 deletions
doc/get_dep_licenses.py
with
12 additions
and
12 deletions
doc/conf.py
+
6
−
6
View file @
162ae25f
...
@@ -4,14 +4,12 @@
...
@@ -4,14 +4,12 @@
import
os
import
os
import
time
import
time
import
pkg_resources
import
pkg_resources
import
sphinx_rtd_theme
import
sphinx_rtd_theme
from
bob.extension.utils
import
link_documentation
from
bob.extension.utils
import
link_documentation
from
bob.extension.utils
import
load_requirements
from
bob.extension.utils
import
load_requirements
# -- General configuration -----------------------------------------------------
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
# If your documentation needs a minimal Sphinx version, state it here.
...
@@ -237,10 +235,12 @@ autodoc_default_options = {
...
@@ -237,10 +235,12 @@ autodoc_default_options = {
"
show-inheritance
"
:
True
,
"
show-inheritance
"
:
True
,
}
}
if
not
'
BOB_DOCUMENTATION_SERVER
'
in
os
.
environ
:
if
"
BOB_DOCUMENTATION_SERVER
"
not
in
os
.
environ
:
# notice we need to overwrite this for BEAT projects - defaults from Bob are
# notice we need to overwrite this for BEAT projects - defaults from Bob are
# not OK
# not OK
os
.
environ
[
'
BOB_DOCUMENTATION_SERVER
'
]
=
"
https://www.idiap.ch/software/beat/docs/beat/%(name)s/%(version)s/|https://www.idiap.ch/software/beat/docs/beat/%(name)s/master/
"
os
.
environ
[
"
BOB_DOCUMENTATION_SERVER
"
]
=
"
https://www.idiap.ch/software/beat/docs/beat/%(name)s/%(version)s/|https://www.idiap.ch/software/beat/docs/beat/%(name)s/master/
"
# For inter-documentation mapping:
# For inter-documentation mapping:
...
...
This diff is collapsed.
Click to expand it.
doc/get_dep_licenses.py
+
6
−
6
View file @
162ae25f
...
@@ -59,9 +59,9 @@ def _run_cmd(cmd_list):
...
@@ -59,9 +59,9 @@ def _run_cmd(cmd_list):
def
_call_conda
(
extra_args
):
def
_call_conda
(
extra_args
):
"""
call conda with the list of extra arguments, and return the tuple
"""
call conda with the list of extra arguments, and return the tuple
stdout, stderr
stdout, stderr
"""
"""
cmd_list
=
[
os
.
environ
.
get
(
"
CONDA_EXE
"
)]
cmd_list
=
[
os
.
environ
.
get
(
"
CONDA_EXE
"
)]
...
@@ -77,9 +77,9 @@ def _get_pip_info():
...
@@ -77,9 +77,9 @@ def _get_pip_info():
def
_clean_pkg_name
(
name
):
def
_clean_pkg_name
(
name
):
"""
Cleanup package name:
"""
Cleanup package name:
- lower case
- lower case
- replace minus and underscore by only minus
- replace minus and underscore by only minus
"""
"""
return
re
.
sub
(
r
"
[_-]
"
,
"
-
"
,
name
.
lower
())
return
re
.
sub
(
r
"
[_-]
"
,
"
-
"
,
name
.
lower
())
...
...
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