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
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==2.4.4
sphinx-gallery>=0.9.0
sphinx-gallery>=0.9.0
sphinx-copybutton>=0.3.1
matplotlib
matplotlib
numpy
numpy
-e git+git://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
-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 @@
...
@@ -21,10 +21,6 @@
# import sys
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# sys.path.insert(0, os.path.abspath('.'))
from
pathlib
import
Path
import
os
import
torch
import
torchvision
import
torchvision
import
pytorch_sphinx_theme
import
pytorch_sphinx_theme
...
@@ -48,7 +44,9 @@ extensions = [
...
@@ -48,7 +44,9 @@ extensions = [
'sphinx.ext.mathjax'
,
'sphinx.ext.mathjax'
,
'sphinx.ext.napoleon'
,
'sphinx.ext.napoleon'
,
'sphinx.ext.viewcode'
,
'sphinx.ext.viewcode'
,
'sphinx.ext.duration'
,
'sphinx_gallery.gen_gallery'
,
'sphinx_gallery.gen_gallery'
,
"sphinx_copybutton"
]
]
sphinx_gallery_conf
=
{
sphinx_gallery_conf
=
{
...
@@ -202,7 +200,10 @@ texinfo_documents = [
...
@@ -202,7 +200,10 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping
=
{
intersphinx_mapping
=
{
'python'
:
(
'https://docs.python.org/'
,
None
),
'python'
:
(
'https://docs.python.org/'
,
None
),
'torch'
:
(
'https://pytorch.org/docs/stable/'
,
None
),
'numpy'
:
(
'http://docs.scipy.org/doc/numpy/'
,
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 -------
# -- 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