Skip to content

Commit f18cc2d

Browse files
disabled deleting old docs in update.js
1 parent 27e4cbd commit f18cc2d

6 files changed

Lines changed: 6 additions & 15 deletions

File tree

docs/docs/js/common.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ function addInternalPlugins(plugins, docsList = []) {
280280
if (uiIndexes[0] != "ui") uiItem.attr('href', uiIndexes[0]);
281281
else if (plugins.UI) uiItem.hide();
282282
else uiItem.attr('href', uiIndexes[1]);
283-
284-
if (plugins.Music) $("ul#native > li:contains(Music)").hide();
285-
else $("ul#native > li:contains(Music)").show();
286283
}
287284

288285
//Dynamically create plugins page.

docs/docs/js/update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ function ExtractLang(file) {
111111
if (!app.FolderExists(sourceDir))
112112
return app.ShowPopup("Latest not found.");
113113

114-
app.ShowProgress("Removing old " + name);
115-
app.ListFolder(sourceDir).forEach(function (d) { app.DeleteFolder(docsPath + name + "/" + d) });
114+
// app.ShowProgress("Removing old " + name);
115+
// app.ListFolder(sourceDir).forEach(function (d) { app.DeleteFolder(docsPath + name + "/" + d) });
116116

117117
app.ShowProgress("Copying new " + name);
118118
app.ListFolder(sourceDir).forEach(function (d) { app.RenameFolder(sourceDir + "/" + d, docsPath + name + "/" + d) });

docs/docs/latest/js/common.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ function addInternalPlugins(plugins, docsList = []) {
280280
if (uiIndexes[0] != "ui") uiItem.attr('href', uiIndexes[0]);
281281
else if (plugins.UI) uiItem.hide();
282282
else uiItem.attr('href', uiIndexes[1]);
283-
284-
if (plugins.Music) $("ul#native > li:contains(Music)").hide();
285-
else $("ul#native > li:contains(Music)").show();
286283
}
287284

288285
//Dynamically create plugins page.

docs/docs/latest/js/update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ function ExtractLang(file) {
111111
if (!app.FolderExists(sourceDir))
112112
return app.ShowPopup("Latest not found.");
113113

114-
app.ShowProgress("Removing old " + name);
115-
app.ListFolder(sourceDir).forEach(function (d) { app.DeleteFolder(docsPath + name + "/" + d) });
114+
// app.ShowProgress("Removing old " + name);
115+
// app.ListFolder(sourceDir).forEach(function (d) { app.DeleteFolder(docsPath + name + "/" + d) });
116116

117117
app.ShowProgress("Copying new " + name);
118118
app.ListFolder(sourceDir).forEach(function (d) { app.RenameFolder(sourceDir + "/" + d, docsPath + name + "/" + d) });

files/docs-base/js/common.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ function addInternalPlugins(plugins, docsList = []) {
280280
if (uiIndexes[0] != "ui") uiItem.attr('href', uiIndexes[0]);
281281
else if (plugins.UI) uiItem.hide();
282282
else uiItem.attr('href', uiIndexes[1]);
283-
284-
if (plugins.Music) $("ul#native > li:contains(Music)").hide();
285-
else $("ul#native > li:contains(Music)").show();
286283
}
287284

288285
//Dynamically create plugins page.

files/docs-base/js/update.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ function ExtractLang(file) {
111111
if (!app.FolderExists(sourceDir))
112112
return app.ShowPopup("Latest not found.");
113113

114-
app.ShowProgress("Removing old " + name);
115-
app.ListFolder(sourceDir).forEach(function (d) { app.DeleteFolder(docsPath + name + "/" + d) });
114+
// app.ShowProgress("Removing old " + name);
115+
// app.ListFolder(sourceDir).forEach(function (d) { app.DeleteFolder(docsPath + name + "/" + d) });
116116

117117
app.ShowProgress("Copying new " + name);
118118
app.ListFolder(sourceDir).forEach(function (d) { app.RenameFolder(sourceDir + "/" + d, docsPath + name + "/" + d) });

0 commit comments

Comments
 (0)