From 98bf923082b19ce9d8db93421c47259a57cdb600 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 28 Dec 2020 13:22:05 +0100 Subject: [PATCH] save and reindex help --- .../docs-commands-005-docs-save-command.json | 9 +++++++-- .../docs-commands-006-docs-reindex-command.json | 14 ++++++++++++-- .../UI/Spaces/Docs-Space/DocsSpace.js | 17 ++--------------- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-005-docs-save-command.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-005-docs-save-command.json index f493e5273..556f65d1a 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-005-docs-save-command.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-005-docs-save-command.json @@ -8,8 +8,13 @@ }, "paragraphs": [ { - "style": "Text", - "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode." + "style": "Title", + "text": "Syntax", + "updated": 1609157736088 + }, + { + "style": "Javascript", + "text": "docs.save" } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-006-docs-reindex-command.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-006-docs-reindex-command.json index 225e961ec..5d9f37531 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-006-docs-reindex-command.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-006-docs-reindex-command.json @@ -8,8 +8,18 @@ }, "paragraphs": [ { - "style": "Text", - "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode." + "style": "Title", + "text": "Syntax", + "updated": 1609157772210 + }, + { + "style": "Json", + "text": "docs.reindex", + "updated": 1609157842226 + }, + { + "style": "Note", + "text": "The reindexing of all the pages and workspace node might take a minute or two. If you workspace is very big, expect it to take even more time than that." } ] } \ No newline at end of file diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index b70645148..7dcb1be86 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -1178,14 +1178,7 @@ function newSuperalgosDocSpace() { function checkUReIndexCommand() { if (command.toLowerCase() === 'docs.help docs.reindex') { - renderCommandResultsPage( - [ - "docs.reindex command syntax: ", - "Option 1: docs.reindex", - "Use this command after you modified the Docs content and would like re-index the information so that changes are reflected during search. You can also use this command after you have modified the current workspace and you would like it's nodes to be re-indexed to reflect the changes at the search results. Naturally, the system will re-index all the available information every time you switch workspaces or you refresh the UI page.", - "Expect this command execution to last for a minute or so, depending on the size of the workspace." - ] - ) + navigateTo('Superalgos', 'Topic', 'Docs Reindex Command') return } if (command.indexOf('Docs.Reindex') !== 0 && command.indexOf('docs.reindex') !== 0) { return 'Not Reindex Command' } @@ -1199,13 +1192,7 @@ function newSuperalgosDocSpace() { function checkUSaveCommand() { if (command.toLowerCase() === 'docs.help docs.save') { - renderCommandResultsPage( - [ - "docs.save command syntax: ", - "Option 1: docs.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." - ] - ) + navigateTo('Superalgos', 'Topic', 'Docs Save Command') return } if (command.indexOf('Docs.Save') !== 0 && command.indexOf('docs.save') !== 0) { return 'Not Save Command' }