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
7e1d709e
Unverified
Commit
7e1d709e
authored
Dec 09, 2020
by
Sylvain Gugger
Committed by
GitHub
Dec 09, 2020
Browse files
Fix link to stable version in the doc navbar (#9007)
parent
02d0e035
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
docs/source/_static/js/custom.js
docs/source/_static/js/custom.js
+2
-2
No files found.
docs/source/_static/js/custom.js
View file @
7e1d709e
// These two things need to be updated at each release for the version selector.
// Last stable version
const
stableVersion
=
"
v4.0.0
"
// Dictionary doc folder to label
// Dictionary doc folder to label
. The last stable version should have an empty key.
const
versionMapping
=
{
"
master
"
:
"
master
"
,
"
v4.0.0
"
:
"
v4.0.0
"
,
""
:
"
v4.0.0
(stable)
"
,
"
v3.5.1
"
:
"
v3.5.0/v3.5.1
"
,
"
v3.4.0
"
:
"
v3.4.0
"
,
"
v3.3.1
"
:
"
v3.3.0/v3.3.1
"
,
...
...
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