Skip to content

Commit c104d58

Browse files
committed
Merge remote-tracking branch 'upstream/stable' into merge_stable
2 parents 5a5b7ef + d9c26cb commit c104d58

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.106.1
1+
2.107.0
File renamed without changes.

download.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ Macros:
226226

227227
DMDV2=$(LATEST)
228228

229-
_=BETA=$(COMMENT $0)
230-
BETA=$0
229+
BETA=$(COMMENT $0)
230+
_=BETA=$0
231231
B_DMDV2=2.107.0
232232
B_SUFFIX=rc.1
233233

js/listanchors.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,45 +66,43 @@ function addVersionSelector() {
6666
return {
6767
name: e,
6868
url: "https://docarchives.dlang.io/v" + e + ".0/" + currentRoot + ddocModuleURL,
69-
selected: false,
7069
};
7170
});
7271

73-
var rootURL = location.href.split(/\/(phobos|library|spec)(-prerelease)?/)[0]
7472
var onlineVersions;
7573
if (isSpec) {
7674
onlineVersions = [{
7775
name: "master",
78-
url: rootURL + "/spec/" + ddocModuleURL,
76+
url: "https://dlang.org/spec/" + ddocModuleURL,
7977
}];
8078
} else {
8179
onlineVersions = [{
8280
name: "master",
83-
url: rootURL + "/phobos-prerelease/" + ddocModuleURL,
81+
url: "https://dlang.org/phobos-prerelease/" + ddocModuleURL,
8482
},{
8583
name: "master (ddox)",
86-
url: rootURL + "/library-prerelease/" + ddoxModuleURL,
84+
url: "https://dlang.org/library-prerelease/" + ddoxModuleURL,
8785
},{
8886
name: "stable",
89-
url: rootURL + "/phobos/" + ddocModuleURL,
87+
url: "https://dlang.org/phobos/" + ddocModuleURL,
9088
},{
9189
name: "stable (ddox)",
92-
url: rootURL + "/library/" + ddoxModuleURL,
90+
url: "https://dlang.org/library/" + ddoxModuleURL,
9391
}];
9492
}
9593

9694
// set the current URL as selected
9795
var currentURL = location.href.split(/[#?]/)[0];
98-
onlineVersions.forEach(function(v, i) {
99-
onlineVersions[i].selected = v.url === currentURL;
96+
var versions = onlineVersions.concat(archivedVersions);
97+
versions.forEach(function(v, i) {
98+
versions[i].selected = v.url === currentURL;
10099
});
101100
// Don't show the option chooser if the page hasn't been recognized
102101
// For example, Ddox symbol pages are currently not supported
103-
if (onlineVersions.filter(function(v){return v.selected}).length === 0)
102+
if (versions.filter(function(v){return v.selected}).length === 0)
104103
return;
105104

106105
// build select box of all versions and append to current DOM
107-
var versions = onlineVersions.concat(archivedVersions);
108106
var options = versions.map(function(e, i){
109107
return "<option value='" + i + "'" + (e.selected ? "selected" : "") + ">" + e.name + "</option>";
110108
});

0 commit comments

Comments
 (0)