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
vision
Commits
dba5cf31
"vscode:/vscode.git/clone" did not exist on "42337dc018f090aeb7dcd48f7756cc47e6f9d860"
Unverified
Commit
dba5cf31
authored
May 21, 2021
by
Aditya Oke
Committed by
GitHub
May 21, 2021
Browse files
Add copy button and automatic cross-refs to external projects in docs (#3868)
parent
91d9797e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
docs/requirements.txt
docs/requirements.txt
+1
-0
docs/source/conf.py
docs/source/conf.py
+5
-4
No files found.
docs/requirements.txt
View file @
dba5cf31
sphinx==2.4.4
sphinx-gallery>=0.9.0
sphinx-copybutton>=0.3.1
matplotlib
numpy
-e git+git://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
docs/source/conf.py
View file @
dba5cf31
...
...
@@ -21,10 +21,6 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))
from
pathlib
import
Path
import
os
import
torch
import
torchvision
import
pytorch_sphinx_theme
...
...
@@ -48,7 +44,9 @@ extensions = [
'sphinx.ext.mathjax'
,
'sphinx.ext.napoleon'
,
'sphinx.ext.viewcode'
,
'sphinx.ext.duration'
,
'sphinx_gallery.gen_gallery'
,
"sphinx_copybutton"
]
sphinx_gallery_conf
=
{
...
...
@@ -202,7 +200,10 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping
=
{
'python'
:
(
'https://docs.python.org/'
,
None
),
'torch'
:
(
'https://pytorch.org/docs/stable/'
,
None
),
'numpy'
:
(
'http://docs.scipy.org/doc/numpy/'
,
None
),
'PIL'
:
(
'https://pillow.readthedocs.io/en/stable/'
,
None
),
'matplotlib'
:
(
'https://matplotlib.org/stable/'
,
None
),
}
# -- A patch that prevents Sphinx from cross-referencing ivar tags -------
...
...
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