Skip to content

Commit 053b213

Browse files
author
David Kline
authored
Merge pull request #7000 from keveleigh/add-2.3-docs
Add prerelease/2.3.0 to the docs version dropdown
2 parents bdd2581 + 5391a95 commit 053b213

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

web/version.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
21
function createDropdown()
32
{
43
// configurable values:
5-
var defaultTitle = "mrtk_development"; // title in the dropdown for the root version of the docs
6-
var versionArray = ["releases/2.0.0", "releases/2.1.0", "releases/2.2.0"]; // list of all versions in the version folder
4+
var defaultTitle = "mrtk_development"; // title in the dropdown for the root version of the docs
5+
var versionArray = ["releases/2.0.0", "releases/2.1.0", "releases/2.2.0", "prerelease/2.3.0_stabilization"]; // list of all versions in the version folder
76

87
//--------------------------------------
98

@@ -16,7 +15,7 @@ function createDropdown()
1615
innerDiv.className = "version-dropdown-content";
1716
versionDropDiv.appendChild(btn);
1817
versionDropDiv.appendChild(innerDiv);
19-
18+
2019
// get web root path
2120
var script = document.getElementById('dropdownScript');
2221
var scriptPath = script.src;
@@ -27,16 +26,16 @@ function createDropdown()
2726
rootDir = scriptPath.substring(0, versionIndex);
2827
}
2928
else
30-
{
29+
{
3130
rootDir = scriptPath.substring(0, scriptPath.lastIndexOf('web/'));
3231
}
33-
32+
3433
// create default
3534
createEntry(innerDiv, defaultTitle, rootDir+"README.html");
3635

3736
// create version entries
38-
for (i = 0; i<versionArray.length; i++)
39-
{
37+
for (i = 0; i<versionArray.length; i++)
38+
{
4039
createEntry(innerDiv, versionArray[i], rootDir+"version/"+versionArray[i]+"/README.html");
4140
}
4241
}

0 commit comments

Comments
 (0)