Fix link to stable version in the doc navbar (#9007)

This commit is contained in:
Sylvain Gugger
2020-12-09 09:11:39 -05:00
committed by GitHub
parent 02d0e0355c
commit 7e1d709e2a

View File

@@ -1,10 +1,10 @@
// These two things need to be updated at each release for the version selector. // These two things need to be updated at each release for the version selector.
// Last stable version // Last stable version
const stableVersion = "v4.0.0" 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 = { const versionMapping = {
"master": "master", "master": "master",
"v4.0.0": "v4.0.0", "": "v4.0.0 (stable)",
"v3.5.1": "v3.5.0/v3.5.1", "v3.5.1": "v3.5.0/v3.5.1",
"v3.4.0": "v3.4.0", "v3.4.0": "v3.4.0",
"v3.3.1": "v3.3.0/v3.3.1", "v3.3.1": "v3.3.0/v3.3.1",