mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
Address black + isort fbsource linter warnings
Summary: Address black + isort fbsource linter warnings from D20558374 (previous diff) Reviewed By: nikhilaravi Differential Revision: D20558373 fbshipit-source-id: d3607de4a01fb24c0d5269634563a7914bddf1c8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
eb512ffde3
commit
d57daa6f85
@@ -22,6 +22,7 @@ from recommonmark.states import DummyStateMachine
|
||||
from sphinx.builders.html import StandaloneHTMLBuilder
|
||||
from sphinx.ext.autodoc import between
|
||||
|
||||
|
||||
# Monkey patch to fix recommonmark 0.4 doc reference issues.
|
||||
orig_run_role = DummyStateMachine.run_role
|
||||
|
||||
@@ -154,9 +155,7 @@ html_theme_options = {"collapse_navigation": True}
|
||||
def url_resolver(url):
|
||||
if ".html" not in url:
|
||||
url = url.replace("../", "")
|
||||
return (
|
||||
"https://github.com/facebookresearch/pytorch3d/blob/master/" + url
|
||||
)
|
||||
return "https://github.com/facebookresearch/pytorch3d/blob/master/" + url
|
||||
else:
|
||||
if DEPLOY:
|
||||
return "http://pytorch3d.readthedocs.io/" + url
|
||||
@@ -188,9 +187,7 @@ def setup(app):
|
||||
|
||||
# Register a sphinx.ext.autodoc.between listener to ignore everything
|
||||
# between lines that contain the word IGNORE
|
||||
app.connect(
|
||||
"autodoc-process-docstring", between("^.*IGNORE.*$", exclude=True)
|
||||
)
|
||||
app.connect("autodoc-process-docstring", between("^.*IGNORE.*$", exclude=True))
|
||||
app.add_transform(AutoStructify)
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user