Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
6d81ab8b
"examples/vscode:/vscode.git/clone" did not exist on "2455934ac41647d24b743871a6dc531253fa8f63"
Unverified
Commit
6d81ab8b
authored
Mar 12, 2021
by
Rahul Amaram
Committed by
GitHub
Mar 11, 2021
Browse files
Fix Lint doc config (#1385)
parent
16de2b5b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
.circleci/unittest/linux/scripts/run_style_checks.sh
.circleci/unittest/linux/scripts/run_style_checks.sh
+1
-1
docs/source/conf.py
docs/source/conf.py
+3
-4
No files found.
.circleci/unittest/linux/scripts/run_style_checks.sh
View file @
6d81ab8b
...
@@ -29,7 +29,7 @@ set +e
...
@@ -29,7 +29,7 @@ set +e
exit_status
=
0
exit_status
=
0
printf
"
\x
1b[34mRunning flake8:
\x
1b[0m
\n
"
printf
"
\x
1b[34mRunning flake8:
\x
1b[0m
\n
"
flake8 torchaudio
test
build_tools/setup_helpers
flake8 torchaudio
test
build_tools/setup_helpers
docs/source/conf.py
status
=
$?
status
=
$?
exit_status
=
"
$((
exit_status+status
))
"
exit_status
=
"
$((
exit_status+status
))
"
if
[
"
${
status
}
"
-ne
0
]
;
then
if
[
"
${
status
}
"
-ne
0
]
;
then
...
...
docs/source/conf.py
View file @
6d81ab8b
...
@@ -20,8 +20,6 @@
...
@@ -20,8 +20,6 @@
# import os
# import os
# import sys
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# sys.path.insert(0, os.path.abspath('.'))
import
torch
import
torchaudio
import
pytorch_sphinx_theme
import
pytorch_sphinx_theme
# -- General configuration ------------------------------------------------
# -- General configuration ------------------------------------------------
...
@@ -135,6 +133,7 @@ html_logo = '_static/img/pytorch-logo-dark.svg'
...
@@ -135,6 +133,7 @@ html_logo = '_static/img/pytorch-logo-dark.svg'
# so a file named "default.css" will overwrite the builtin "default.css".
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path
=
[
'_static'
]
html_static_path
=
[
'_static'
]
def
setup
(
app
):
def
setup
(
app
):
# NOTE: in Sphinx 1.8+ `html_css_files` is an official configuration value
# NOTE: in Sphinx 1.8+ `html_css_files` is an official configuration value
# and can be moved outside of this function (and the setup(app) function
# and can be moved outside of this function (and the setup(app) function
...
@@ -145,7 +144,7 @@ def setup(app):
...
@@ -145,7 +144,7 @@ def setup(app):
# In Sphinx 1.8 it was renamed to `add_css_file`, 1.7 and prior it is
# In Sphinx 1.8 it was renamed to `add_css_file`, 1.7 and prior it is
# `add_stylesheet` (deprecated in 1.8).
# `add_stylesheet` (deprecated in 1.8).
add_css
=
getattr
(
app
,
'add_css_file'
,
getattr
(
app
,
'
add_stylesheet
'
)
)
add_css
=
getattr
(
app
,
'add_css_file'
,
app
.
add_stylesheet
)
for
css_file
in
html_css_files
:
for
css_file
in
html_css_files
:
add_css
(
css_file
)
add_css
(
css_file
)
...
@@ -226,7 +225,7 @@ def patched_make_field(self, types, domain, items, **kw):
...
@@ -226,7 +225,7 @@ def patched_make_field(self, types, domain, items, **kw):
# `kw` catches `env=None` needed for newer sphinx while maintaining
# `kw` catches `env=None` needed for newer sphinx while maintaining
# backwards compatibility when passed along further down!
# backwards compatibility when passed along further down!
# type: (
L
ist,
unicode
,
T
uple) -> nodes.field
# type: (
l
ist,
str
,
t
uple) -> nodes.field
def
handle_item
(
fieldarg
,
content
):
def
handle_item
(
fieldarg
,
content
):
par
=
nodes
.
paragraph
()
par
=
nodes
.
paragraph
()
par
+=
addnodes
.
literal_strong
(
''
,
fieldarg
)
# Patch: this line added
par
+=
addnodes
.
literal_strong
(
''
,
fieldarg
)
# Patch: this line added
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment