Doc - Add CI for automatic deployment

This commit is contained in:
Anthony MOI
2020-10-05 12:54:01 -04:00
committed by Anthony MOI
parent 16e1348038
commit 59d66c6db8
5 changed files with 110 additions and 24 deletions

View File

@ -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