Unverified Commit 3a96fb57 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Show links to notebooks in sphinx-gallery examples (#3838)

parent f1d73421
/* 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
...@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment