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
chenpangpang
transformers
Commits
80349831
Unverified
Commit
80349831
authored
Feb 13, 2021
by
Sylvain Gugger
Committed by
GitHub
Feb 13, 2021
Browse files
[Doc] Fix version control in internal pages (#10124)
parent
698c9e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/_static/js/custom.js
docs/source/_static/js/custom.js
+1
-1
No files found.
docs/source/_static/js/custom.js
View file @
80349831
...
@@ -132,7 +132,7 @@ function addVersionControl() {
...
@@ -132,7 +132,7 @@ function addVersionControl() {
versionIndex
=
parts
.
length
-
1
;
versionIndex
=
parts
.
length
-
1
;
}
}
// Main classes and models are nested so we need to go deeper
// Main classes and models are nested so we need to go deeper
else
if
(
parts
[
versionIndex
]
==
"
main_classes
"
||
parts
[
versionIndex
]
==
"
model_doc
"
)
{
else
if
(
parts
[
versionIndex
]
==
"
main_classes
"
||
parts
[
versionIndex
]
==
"
model_doc
"
||
parts
[
versionIndex
]
==
"
internal
"
)
{
versionIndex
=
versionIndex
-
1
;
versionIndex
=
versionIndex
-
1
;
}
}
const
version
=
parts
[
versionIndex
];
const
version
=
parts
[
versionIndex
];
...
...
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