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
3a96fb57
Unverified
Commit
3a96fb57
authored
May 17, 2021
by
Nicolas Hug
Committed by
GitHub
May 17, 2021
Browse files
Show links to notebooks in sphinx-gallery examples (#3838)
parent
f1d73421
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
docs/source/_static/css/custom_torchvision.css
docs/source/_static/css/custom_torchvision.css
+12
-0
docs/source/conf.py
docs/source/conf.py
+5
-0
No files found.
docs/source/_static/css/custom_torchvision.css
0 → 100644
View file @
3a96fb57
/* This rule (and possibly this entire file) should be removed once
https://github.com/pytorch/pytorch_sphinx_theme/issues/125 is fixed.
We override the rule so that the links to the notebooks aren't hidden in the
gallery examples. pytorch_sphinx_theme is supposed to customize those links so
that they render nicely (look at the nice links on top of the tutorials
examples) but it doesn't work for repos that are not the tutorial repo, and in
torchvision it just hides the links. So we have to put them back here */
article
.pytorch-article
.sphx-glr-download-link-note.admonition.note
,
article
.pytorch-article
.reference.download.internal
,
article
.pytorch-article
.sphx-glr-signature
{
display
:
block
;
}
\ No newline at end of file
docs/source/conf.py
View file @
3a96fb57
...
@@ -137,6 +137,11 @@ html_logo = '_static/img/pytorch-logo-dark.svg'
...
@@ -137,6 +137,11 @@ 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'
]
# TODO: remove this once https://github.com/pytorch/pytorch_sphinx_theme/issues/125 is fixed
html_css_files
=
[
'css/custom_torchvision.css'
,
]
# -- Options for HTMLHelp output ------------------------------------------
# -- Options for HTMLHelp output ------------------------------------------
# Output file base name for HTML help builder.
# Output file base name for HTML help builder.
...
...
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