mirror of
https://github.com/mii443/tokenizers.git
synced 2025-08-31 04:29:21 +00:00
Doc - Fix default version
This commit is contained in:
@ -104,12 +104,12 @@ function addGithubButton() {
|
||||
function addVersionControl() {
|
||||
// Default language and version
|
||||
let language = defaultLanguage;
|
||||
let version = stableVersion[language];
|
||||
|
||||
// To grab the version currently in view, we parse the url
|
||||
let parts = location.pathname.split('/');
|
||||
const languageIndex = parts.findIndex((part) => languages.includes(part));
|
||||
language = parts[languageIndex];
|
||||
let version = stableVersion[language];
|
||||
|
||||
const versionIndex = languageIndex + 1;
|
||||
// If a version is specified, update it
|
||||
|
Reference in New Issue
Block a user