Skip to content

Commit

Permalink
disabled deleting old docs in update.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-Symbroson committed Mar 2, 2024
1 parent 27e4cbd commit f18cc2d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
3 changes: 0 additions & 3 deletions docs/docs/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ function addInternalPlugins(plugins, docsList = []) {
if (uiIndexes[0] != "ui") uiItem.attr('href', uiIndexes[0]);
else if (plugins.UI) uiItem.hide();
else uiItem.attr('href', uiIndexes[1]);

if (plugins.Music) $("ul#native > li:contains(Music)").hide();
else $("ul#native > li:contains(Music)").show();
}

//Dynamically create plugins page.
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/js/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ function ExtractLang(file) {
if (!app.FolderExists(sourceDir))
return app.ShowPopup("Latest not found.");

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

app.ShowProgress("Copying new " + name);
app.ListFolder(sourceDir).forEach(function (d) { app.RenameFolder(sourceDir + "/" + d, docsPath + name + "/" + d) });
Expand Down
3 changes: 0 additions & 3 deletions docs/docs/latest/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ function addInternalPlugins(plugins, docsList = []) {
if (uiIndexes[0] != "ui") uiItem.attr('href', uiIndexes[0]);
else if (plugins.UI) uiItem.hide();
else uiItem.attr('href', uiIndexes[1]);

if (plugins.Music) $("ul#native > li:contains(Music)").hide();
else $("ul#native > li:contains(Music)").show();
}

//Dynamically create plugins page.
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/latest/js/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ function ExtractLang(file) {
if (!app.FolderExists(sourceDir))
return app.ShowPopup("Latest not found.");

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

app.ShowProgress("Copying new " + name);
app.ListFolder(sourceDir).forEach(function (d) { app.RenameFolder(sourceDir + "/" + d, docsPath + name + "/" + d) });
Expand Down
3 changes: 0 additions & 3 deletions files/docs-base/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,6 @@ function addInternalPlugins(plugins, docsList = []) {
if (uiIndexes[0] != "ui") uiItem.attr('href', uiIndexes[0]);
else if (plugins.UI) uiItem.hide();
else uiItem.attr('href', uiIndexes[1]);

if (plugins.Music) $("ul#native > li:contains(Music)").hide();
else $("ul#native > li:contains(Music)").show();
}

//Dynamically create plugins page.
Expand Down
4 changes: 2 additions & 2 deletions files/docs-base/js/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ function ExtractLang(file) {
if (!app.FolderExists(sourceDir))
return app.ShowPopup("Latest not found.");

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

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

0 comments on commit f18cc2d

Please sign in to comment.