Skip to content

Commit 7d00668

Browse files
ibuclawdlang-bot
authored andcommitted
Bump archive version to v2.099.0
1 parent c34dbe8 commit 7d00668

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

js/listanchors.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function addAnchors()
3434
function addVersionSelector() {
3535
// Latest version offered by the archive builds
3636
// This needs to be manually updated after new versions have been archived
37-
var currentArchivedVersion = 81;
37+
var currentArchivedVersion = 99;
3838
// build URLs for dlang.org: DDoc + Dox
3939
var ddocModuleURL = document.body.id.replace(/[.]/g, "_") + ".html";
4040
var ddoxModuleURL = document.body.id.replace(/[.]/g, "/") + ".html";
@@ -52,7 +52,11 @@ function addVersionSelector() {
5252
// build list of versions available in the docarchives
5353
var archivedVersions = [];
5454
while (currentArchivedVersion >= 66) {
55-
archivedVersions.push("2.0" + currentArchivedVersion--);
55+
if (currentArchivedVersion < 100) {
56+
archivedVersions.push("2.0" + currentArchivedVersion--);
57+
} else {
58+
archivedVersions.push("2." + currentArchivedVersion--);
59+
}
5660
}
5761
archivedVersions = archivedVersions.map(function(e) {
5862
var currentRoot = root;

0 commit comments

Comments
 (0)