diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-001-docs-help-command.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-001-docs-help-command.json new file mode 100644 index 000000000..b1517a3a7 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-001-docs-help-command.json @@ -0,0 +1,12 @@ +{ + "topic": "Docs Commands", + "pageNumber": "1", + "type": "Docs Help Command", + "definition": "Write here a summary for this topic page.", + "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." + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-002-docs-goto-command.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-002-docs-goto-command.json new file mode 100644 index 000000000..87f6e4528 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-002-docs-goto-command.json @@ -0,0 +1,12 @@ +{ + "topic": "Docs Commands", + "pageNumber": "2", + "type": "Docs Goto Command", + "definition": "Write here a summary for this topic page.", + "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." + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-003-docs-add-command.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-003-docs-add-command.json new file mode 100644 index 000000000..09fbbfb86 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-003-docs-add-command.json @@ -0,0 +1,12 @@ +{ + "topic": "Docs Commands", + "pageNumber": "3", + "type": "Docs Add Command", + "definition": "Write here a summary for this topic page.", + "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." + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-004-docs-delete-command.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-004-docs-delete-command.json new file mode 100644 index 000000000..8e82754eb --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-004-docs-delete-command.json @@ -0,0 +1,12 @@ +{ + "topic": "Docs Commands", + "pageNumber": "4", + "type": "Docs Delete Command", + "definition": "Write here a summary for this topic page.", + "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." + } + ] +} \ No newline at end of file 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 new file mode 100644 index 000000000..7673d2add --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-005-docs-save-command.json @@ -0,0 +1,12 @@ +{ + "topic": "Docs Commands", + "pageNumber": "5", + "type": "Docs Save Command", + "definition": "Write here a summary for this topic page.", + "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." + } + ] +} \ 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 new file mode 100644 index 000000000..bcdb85aeb --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-006-docs-reindex-command.json @@ -0,0 +1,12 @@ +{ + "topic": "Docs Commands", + "pageNumber": "6", + "type": "Docs Reindex Command", + "definition": "Write here a summary for this topic page.", + "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." + } + ] +} \ 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 c5eb4735b..f76382a55 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -977,7 +977,7 @@ function newSuperalgosDocSpace() { renderSearchResultsPage() function checkHelpCommand() { - if (command.toLowerCase() === 'help') { + if (command.toLowerCase() === 'docss.help') { renderCommandResultsPage( [ "Command line interface general help info: ", @@ -1287,7 +1287,7 @@ function newSuperalgosDocSpace() { function addNode(project, type) { let template = { type: type, - definition: "Write here the definition of this Node.", + definition: { text: "Write here the definition of this Node." }, paragraphs: [ { style: "Text", @@ -1313,7 +1313,7 @@ function newSuperalgosDocSpace() { function addConcept(project, type) { let template = { type: type, - definition: "Write here the summary / definition of this Concept.", + definition: { text: "Write here the summary / definition of this Concept." }, paragraphs: [ { style: "Text", @@ -1342,7 +1342,7 @@ function newSuperalgosDocSpace() { topic: topic, pageNumber: pageNumber, type: type, - definition: "Write here a summary for this topic page.", + definition: { text: "Write here a summary for this topic page." }, paragraphs: [ { style: "Text", @@ -1864,7 +1864,7 @@ function newSuperalgosDocSpace() { // Use the New Node Template let template = { type: objectBeingRendered.type, - definition: "Write here the definition of this " + objectBeingRendered.category + ".", + definition: { text: "Write here the definition of this " + objectBeingRendered.category + "." }, paragraphs: [ { style: "Text", @@ -1966,7 +1966,7 @@ function newSuperalgosDocSpace() { function addDefinitionTable(docsSchemaDocument, idPrefix, category, project, type) { if (docsSchemaDocument.definition !== undefined) { let definitionText = getTextBasedOnLanguage(docsSchemaDocument.definition) - definitionText = definitionText + addWarningIfTranslationIsOutdated(docsSchemaDocument.definition) + definitionText = definitionText + addWarningIfTranslationIsOutdated(docsSchemaDocument.definition) if (category === 'Topic' || category === 'Concept') { HTML = HTML + '