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
MMCV
Commits
9b227ecf
Unverified
Commit
9b227ecf
authored
Dec 06, 2021
by
Zaida Zhou
Committed by
GitHub
Dec 06, 2021
Browse files
[Fix] Remove outdated code in docs/conf.py (#1560)
parent
709908a7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
34 deletions
+3
-34
.gitignore
.gitignore
+2
-0
docs/conf.py
docs/conf.py
+0
-17
docs_zh_CN/conf.py
docs_zh_CN/conf.py
+0
-15
requirements/docs.txt
requirements/docs.txt
+0
-1
setup.cfg
setup.cfg
+1
-1
No files found.
.gitignore
View file @
9b227ecf
...
@@ -117,3 +117,5 @@ venv.bak/
...
@@ -117,3 +117,5 @@ venv.bak/
# datasets and logs and checkpoints
# datasets and logs and checkpoints
data/
data/
work_dir/
work_dir/
src/
docs/conf.py
View file @
9b227ecf
...
@@ -15,8 +15,6 @@ import os
...
@@ -15,8 +15,6 @@ import os
import
sys
import
sys
import
pytorch_sphinx_theme
import
pytorch_sphinx_theme
from
m2r
import
MdInclude
from
recommonmark.transform
import
AutoStructify
from
sphinx.builders.html
import
StandaloneHTMLBuilder
from
sphinx.builders.html
import
StandaloneHTMLBuilder
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'..'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'..'
))
...
@@ -51,14 +49,12 @@ extensions = [
...
@@ -51,14 +49,12 @@ extensions = [
'sphinx.ext.autodoc'
,
'sphinx.ext.autodoc'
,
'sphinx.ext.napoleon'
,
'sphinx.ext.napoleon'
,
'sphinx.ext.viewcode'
,
'sphinx.ext.viewcode'
,
'sphinx.ext.autosectionlabel'
,
'sphinx_markdown_tables'
,
'sphinx_markdown_tables'
,
'myst_parser'
,
'myst_parser'
,
'sphinx_copybutton'
,
'sphinx_copybutton'
,
]
# yapf: disable
]
# yapf: disable
autodoc_mock_imports
=
[
'mmcv._ext'
,
'mmcv.utils.ext_loader'
,
'torchvision'
]
autodoc_mock_imports
=
[
'mmcv._ext'
,
'mmcv.utils.ext_loader'
,
'torchvision'
]
autosectionlabel_prefix_document
=
True
# Add any paths that contain templates here, relative to this directory.
# Add any paths that contain templates here, relative to this directory.
templates_path
=
[
'_templates'
]
templates_path
=
[
'_templates'
]
...
@@ -286,16 +282,3 @@ StandaloneHTMLBuilder.supported_image_types = [
...
@@ -286,16 +282,3 @@ StandaloneHTMLBuilder.supported_image_types = [
# Ignore >>> when copying code
# Ignore >>> when copying code
copybutton_prompt_text
=
r
'>>> |\.\.\. '
copybutton_prompt_text
=
r
'>>> |\.\.\. '
copybutton_prompt_is_regexp
=
True
copybutton_prompt_is_regexp
=
True
def
setup
(
app
):
app
.
add_config_value
(
'no_underscore_emphasis'
,
False
,
'env'
)
app
.
add_config_value
(
'm2r_parse_relative_links'
,
False
,
'env'
)
app
.
add_config_value
(
'm2r_anonymous_references'
,
False
,
'env'
)
app
.
add_config_value
(
'm2r_disable_inline_math'
,
False
,
'env'
)
app
.
add_directive
(
'mdinclude'
,
MdInclude
)
app
.
add_config_value
(
'recommonmark_config'
,
{
'auto_toc_tree_section'
:
'Contents'
,
'enable_eval_rst'
:
True
,
},
True
)
app
.
add_transform
(
AutoStructify
)
docs_zh_CN/conf.py
View file @
9b227ecf
...
@@ -15,8 +15,6 @@ import os
...
@@ -15,8 +15,6 @@ import os
import
sys
import
sys
import
pytorch_sphinx_theme
import
pytorch_sphinx_theme
from
m2r
import
MdInclude
from
recommonmark.transform
import
AutoStructify
from
sphinx.builders.html
import
StandaloneHTMLBuilder
from
sphinx.builders.html
import
StandaloneHTMLBuilder
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'..'
))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'..'
))
...
@@ -288,16 +286,3 @@ StandaloneHTMLBuilder.supported_image_types = [
...
@@ -288,16 +286,3 @@ StandaloneHTMLBuilder.supported_image_types = [
# Ignore >>> when copying code
# Ignore >>> when copying code
copybutton_prompt_text
=
r
'>>> |\.\.\. '
copybutton_prompt_text
=
r
'>>> |\.\.\. '
copybutton_prompt_is_regexp
=
True
copybutton_prompt_is_regexp
=
True
def
setup
(
app
):
app
.
add_config_value
(
'no_underscore_emphasis'
,
False
,
'env'
)
app
.
add_config_value
(
'm2r_parse_relative_links'
,
False
,
'env'
)
app
.
add_config_value
(
'm2r_anonymous_references'
,
False
,
'env'
)
app
.
add_config_value
(
'm2r_disable_inline_math'
,
False
,
'env'
)
app
.
add_directive
(
'mdinclude'
,
MdInclude
)
app
.
add_config_value
(
'recommonmark_config'
,
{
'auto_toc_tree_section'
:
'Contents'
,
'enable_eval_rst'
:
True
,
},
True
)
app
.
add_transform
(
AutoStructify
)
requirements/docs.txt
View file @
9b227ecf
docutils==0.16.0
docutils==0.16.0
m2r
myst-parser
myst-parser
opencv-python
opencv-python
-e git+https://github.com/open-mmlab/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
-e git+https://github.com/open-mmlab/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
...
...
setup.cfg
View file @
9b227ecf
...
@@ -14,7 +14,7 @@ line_length = 79
...
@@ -14,7 +14,7 @@ line_length = 79
multi_line_output = 0
multi_line_output = 0
known_standard_library = pkg_resources,setuptools,logging,os,warnings,abc
known_standard_library = pkg_resources,setuptools,logging,os,warnings,abc
known_first_party = mmcv
known_first_party = mmcv
known_third_party = addict,cv2,
m2r,
numpy,onnx,onnxruntime,packaging,pytest,pytorch_sphinx_theme,
recommonmark,
scipy,sphinx,tensorrt,torch,torchvision,yaml,yapf
known_third_party = addict,cv2,numpy,onnx,onnxruntime,packaging,pytest,pytorch_sphinx_theme,scipy,sphinx,tensorrt,torch,torchvision,yaml,yapf
no_lines_before = STDLIB,LOCALFOLDER
no_lines_before = STDLIB,LOCALFOLDER
default_section = THIRDPARTY
default_section = THIRDPARTY
...
...
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