diff --git a/Projects/Superalgos/Schemas/Docs-Books/the-docs-explained.json b/Projects/Superalgos/Schemas/Docs-Books/the-docs-explained.json
index 66a3b6505..9d91c01b7 100644
--- a/Projects/Superalgos/Schemas/Docs-Books/the-docs-explained.json
+++ b/Projects/Superalgos/Schemas/Docs-Books/the-docs-explained.json
@@ -21,7 +21,12 @@
},
{
"style": "Chapter",
- "text": "Superalgos->VI->Docs Paragraph Styles"
+ "text": "Superalgos->IV->Docs Commands Messages",
+ "updated": 1609783744261
+ },
+ {
+ "style": "Chapter",
+ "text": "Superalgos->V->Docs Paragraph Styles"
}
]
}
\ No newline at end of file
diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-017-docs-search-engine.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-017-docs-search-engine.json
new file mode 100644
index 000000000..a1febdf41
--- /dev/null
+++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-017-docs-search-engine.json
@@ -0,0 +1,16 @@
+{
+ "topic": "Docs Basics",
+ "pageNumber": "17",
+ "type": "Docs Search Engine",
+ "definition": {
+ "text": "The Docs contains a search engine that allows users to search through the collection of pages.\n",
+ "updated": 1609784533352
+ },
+ "paragraphs": [
+ {
+ "style": "Text",
+ "text": "The search engine builds a Docs Search Engine Index that is later used to find the phrases typed by users at the search box.",
+ "updated": 1609784587544
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-018-docs-search-engine-index.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-018-docs-search-engine-index.json
new file mode 100644
index 000000000..ecc83f62b
--- /dev/null
+++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-018-docs-search-engine-index.json
@@ -0,0 +1,16 @@
+{
+ "topic": "Docs Basics",
+ "pageNumber": "18",
+ "type": "Docs Search Engine Index",
+ "definition": {
+ "text": "The Docs Search Engine builds an in-memory index that contains all the phrases of all Docs Pages, plus the name, type, config and code of all nodes of the current Workspace.",
+ "updated": 1609784383995
+ },
+ "paragraphs": [
+ {
+ "style": "Text",
+ "text": "This index is built when the UI is launched, and rebuilt when users executes the docs.reindex command or they load a new workspace.",
+ "updated": 1609784471513
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-001-docs-message-saving-succed.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-001-docs-message-saving-succed.json
new file mode 100644
index 000000000..87eac2400
--- /dev/null
+++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-001-docs-message-saving-succed.json
@@ -0,0 +1,16 @@
+{
+ "topic": "Docs Commands Messages",
+ "pageNumber": "1",
+ "type": "Docs Message Saving Succed",
+ "definition": {
+ "text": "The docs.save command you executed was successful and all changes have been saved at the Superalgos Client.",
+ "updated": 1609783244197
+ },
+ "paragraphs": [
+ {
+ "style": "Success",
+ "text": "All the latest changes to Node, Concept, Topic and Book pages have benn saved to disk.",
+ "updated": 1609783335876
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-002-docs-message-reindexing-succed.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-002-docs-message-reindexing-succed.json
new file mode 100644
index 000000000..86d09442e
--- /dev/null
+++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-002-docs-message-reindexing-succed.json
@@ -0,0 +1,16 @@
+{
+ "topic": "Docs Commands Messages",
+ "pageNumber": "2",
+ "type": "Docs Message Reindexing Succed",
+ "definition": {
+ "text": "The docs.reindex command you executed succesfully rebuilt the Docs Search Engine Index.",
+ "updated": 1609783396612
+ },
+ "paragraphs": [
+ {
+ "style": "Success",
+ "text": "The index was rebuilt and now includes all the latest changes you have made since you open the UI or since the last time you executed the docs.reindex command. That means that new content created now should affect the search results. Also, changes in the Workspace have been applied to the index too.",
+ "updated": 1609783508213
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-003-docs-message-deleting-succed.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-003-docs-message-deleting-succed.json
new file mode 100644
index 000000000..b96b30656
--- /dev/null
+++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-003-docs-message-deleting-succed.json
@@ -0,0 +1,16 @@
+{
+ "topic": "Docs Commands Messages",
+ "pageNumber": "3",
+ "type": "Docs Message Deleting Succed",
+ "definition": {
+ "text": "The docs.delete command you executed successfuly delete the page you requested.",
+ "updated": 1609783558007
+ },
+ "paragraphs": [
+ {
+ "style": "Success",
+ "text": "The page was removed from the in-memory collection of pages, but it is still indexed at the Docs Search Engine Index, and it still exist on disk. To remove it from the index you need to execute docs.reindex and to remove it from disk, you need to execute docs.save. ",
+ "updated": 1609783652507
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js
index 5f635923b..09aa51b1f 100644
--- a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js
+++ b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js
@@ -242,7 +242,7 @@ function newSuperalgosDocsCommmandInterface() {
UI.projects.superalgos.spaces.docsSpace.setUpWorkspaceSchemas()
UI.projects.superalgos.spaces.docsSpace.searchEngine.setUpSearchEngine()
- renderCommandResultsPage(["Succesfully rebuild the search engine indexes."])
+ UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Reindexing Succed')
}
function checkUSaveCommand() {
@@ -286,7 +286,7 @@ function newSuperalgosDocsCommmandInterface() {
if (responseCount === requestsSent) {
if (responseCount === okResponses) {
- renderCommandResultsPage(["Succesfully saved all the latest changes."])
+ UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Saving Succed')
} else {
UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Changes Not Saved', 'Anchor Changes Not Saved')
}
@@ -414,7 +414,6 @@ function newSuperalgosDocsCommmandInterface() {
}
SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.delete(type)
- renderCommandResultsPage(["Node " + type + " deleted."])
for (let i = 0; i < SCHEMAS_BY_PROJECT.get(project).array.docsNodeSchema.length; i++) {
docsSchemaDocument = SCHEMAS_BY_PROJECT.get(project).array.docsNodeSchema[i]
@@ -423,6 +422,7 @@ function newSuperalgosDocsCommmandInterface() {
break
}
}
+ UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Deleting Succed')
}
function deleteConcept(project, type) {
@@ -437,7 +437,6 @@ function newSuperalgosDocsCommmandInterface() {
}
SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.delete(type)
- renderCommandResultsPage(["Concept " + type + " deleted."])
for (let i = 0; i < SCHEMAS_BY_PROJECT.get(project).array.docsConceptSchema.length; i++) {
docsSchemaDocument = SCHEMAS_BY_PROJECT.get(project).array.docsConceptSchema[i]
@@ -446,6 +445,7 @@ function newSuperalgosDocsCommmandInterface() {
break
}
}
+ UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Deleting Succed')
}
function deleteTopic(project, topic, type, pageNumber) {
@@ -469,7 +469,6 @@ function newSuperalgosDocsCommmandInterface() {
}
SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.delete(type)
- renderCommandResultsPage(["Topic " + type + " deleted."])
for (let i = 0; i < SCHEMAS_BY_PROJECT.get(project).array.docsTopicSchema.length; i++) {
docsSchemaDocument = SCHEMAS_BY_PROJECT.get(project).array.docsTopicSchema[i]
@@ -478,6 +477,7 @@ function newSuperalgosDocsCommmandInterface() {
break
}
}
+ UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Deleting Succed')
}
function deleteBook(project, type) {
@@ -492,7 +492,6 @@ function newSuperalgosDocsCommmandInterface() {
}
SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.delete(type)
- renderCommandResultsPage(["Book " + type + " deleted."])
for (let i = 0; i < SCHEMAS_BY_PROJECT.get(project).array.docsBookSchema.length; i++) {
docsSchemaDocument = SCHEMAS_BY_PROJECT.get(project).array.docsBookSchema[i]
@@ -501,34 +500,7 @@ function newSuperalgosDocsCommmandInterface() {
break
}
}
- }
- }
-
- function renderCommandResultsPage(resultArray) {
-
- buildHTML()
-
- function buildHTML() {
- let HTML = ''
- HTML = HTML + ''
- HTML = HTML + UI.projects.superalgos.spaces.docsSpace.mainSearchPage.addSearchHeader()
- // Results
- for (let i = 0; i < resultArray.length; i++) {
- let result = resultArray[i]
- HTML = HTML + '' + result + '
'
- }
-
- // End Content
- HTML = HTML + ''
-
- // End Section
- HTML = HTML + ''
-
- let docsContentDiv = document.getElementById('docs-content-div')
- docsContentDiv.innerHTML = HTML + UI.projects.superalgos.spaces.docsSpace.footer.addFooter()
-
- UI.projects.superalgos.spaces.docsSpace.mainSearchPage.detectEnterOnSearchBox()
- UI.projects.superalgos.spaces.docsSpace.mainSearchPage.setFocusOnSearchBox()
+ UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Deleting Succed')
}
}
}
\ No newline at end of file