mirror of
https://github.com/mii443/tokenizers.git
synced 2025-09-02 23:39:14 +00:00
Doc - Add CI for automatic deployment
This commit is contained in:
@ -114,9 +114,12 @@ function addVersionControl() {
|
||||
// If a version is specified, update it
|
||||
if (parts[versionIndex] != "" && !parts[versionIndex].endsWith(".html")) {
|
||||
version = parts[versionIndex];
|
||||
// Otherwise redirect to the latest
|
||||
} else {
|
||||
// Otherwise redirect to the latest (if not opening locally)
|
||||
} else if (!parts[parts.length - 1].endsWith(".html")) {
|
||||
return window.location.pathname = [language, version, parts.splice(versionIndex)].join("/");
|
||||
// Opening locally, just don't show the version/language selector
|
||||
} else {
|
||||
return
|
||||
}
|
||||
|
||||
// Language Menu
|
||||
|
Reference in New Issue
Block a user