diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index f1e15ee8a..1d873c05b 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -803,6 +803,7 @@ function newSuperalgosDocSpace() { if (checkAddCommand() === undefined) { return } if (checkDeleteCommand() === undefined) { return } if (checkUReIndexCommand() === undefined) { return } + if (checkUSaveCommand() === undefined) { return } renderSearchResultsPage() @@ -986,6 +987,23 @@ function newSuperalgosDocSpace() { renderCommandResultsPage(["Succesfully rebuild the search engine indexes."]) } + function checkUReIndexCommand() { + if (command.toLowerCase() === 'help save') { + renderCommandResultsPage( + [ + "Save command syntax: ", + "Option 1: Save", + "Use this command after you modified the Docs content and would like save your changes at your Superalgos Client's disk. If you would like to contribute those changes to the project they belong to, you can later commit those changes and they will end up at your Superalgos repository fork. The final step then is to submit a pull request so that those changes are reviewed and merged into the next release of Superalgos." + ] + ) + return + } + if (command.indexOf('Save') !== 0 && command.indexOf('save') !== 0) { return 'Not Save Command' } + + + renderCommandResultsPage(["Succesfully saved all the latest changes."]) + } + function addNode(project, type) { let template = { type: type,