From 7e1d709e2af64e933cca9a126197eadfed4afa8d Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Wed, 9 Dec 2020 09:11:39 -0500 Subject: [PATCH] Fix link to stable version in the doc navbar (#9007) --- docs/source/_static/js/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/_static/js/custom.js b/docs/source/_static/js/custom.js index 02b257879d..e60e7df3c2 100644 --- a/docs/source/_static/js/custom.js +++ b/docs/source/_static/js/custom.js @@ -1,10 +1,10 @@ // 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",