Skip to content

Commit 8589c24

Browse files
committed
Display pytorch version
1 parent 8dc5f6b commit 8589c24

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

_static/css/pytorch_theme.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ a.icon.icon-home {
9494
color: #D44D2C;
9595
}
9696

97+
.version{
98+
color: #D44D2C !important;
99+
}
100+
97101
/* Default footer text is quite big */
98102
footer {
99103
font-size: 80%;

conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@
9595
# built documents.
9696
#
9797
# The short X.Y version.
98-
version = ''
98+
version = torch.__version__
9999
# The full version, including alpha/beta/rc tags.
100-
release = ''
100+
release = torch.__version__
101101

102102
# The language for content autogenerated by Sphinx. Refer to documentation
103103
# for a list of supported languages.
@@ -156,7 +156,7 @@
156156
html_logo = '_static/img/pytorch-logo-dark.svg'
157157
html_theme_options = {
158158
'collapse_navigation': False,
159-
'display_version': False,
159+
'display_version': True,
160160
'logo_only': False,
161161
}
162162

0 commit comments

Comments
 (0)