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 index b1517a3a7..fafe61201 100644 --- 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 @@ -2,7 +2,9 @@ "topic": "Docs Commands", "pageNumber": "1", "type": "Docs Help Command", - "definition": "Write here a summary for this topic page.", + "definition": { + "text": "Write here a summary for this topic page." + }, "paragraphs": [ { "style": "Text", 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 index 87f6e4528..ae7165f8d 100644 --- 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 @@ -2,7 +2,9 @@ "topic": "Docs Commands", "pageNumber": "2", "type": "Docs Goto Command", - "definition": "Write here a summary for this topic page.", + "definition": { + "text": "Write here a summary for this topic page." + }, "paragraphs": [ { "style": "Text", 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 index 09fbbfb86..91f2cfbea 100644 --- 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 @@ -2,7 +2,9 @@ "topic": "Docs Commands", "pageNumber": "3", "type": "Docs Add Command", - "definition": "Write here a summary for this topic page.", + "definition": { + "text": "Write here a summary for this topic page." + }, "paragraphs": [ { "style": "Text", 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 index 8e82754eb..9350c55c6 100644 --- 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 @@ -2,7 +2,9 @@ "topic": "Docs Commands", "pageNumber": "4", "type": "Docs Delete Command", - "definition": "Write here a summary for this topic page.", + "definition": { + "text": "Write here a summary for this topic page." + }, "paragraphs": [ { "style": "Text", 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 7673d2add..897dcc0f7 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 @@ -2,7 +2,9 @@ "topic": "Docs Commands", "pageNumber": "5", "type": "Docs Save Command", - "definition": "Write here a summary for this topic page.", + "definition": { + "text": "Write here a summary for this topic page." + }, "paragraphs": [ { "style": "Text", 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 bcdb85aeb..af2bd26f9 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 @@ -2,7 +2,9 @@ "topic": "Docs Commands", "pageNumber": "6", "type": "Docs Reindex Command", - "definition": "Write here a summary for this topic page.", + "definition": { + "text": "Write here a summary for this topic page." + }, "paragraphs": [ { "style": "Text", diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 50f0f8e76..879877ba3 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -1965,6 +1965,18 @@ function newSuperalgosDocSpace() { function addDefinitionTable(docsSchemaDocument, idPrefix, category, project, type) { if (docsSchemaDocument.definition !== undefined) { + + // DELETE + if (docsSchemaDocument.definition.text === undefined) { + docsSchemaDocument.definition = { + text: docsSchemaDocument.definition + } + } + + + + + let definitionText = getTextBasedOnLanguage(docsSchemaDocument.definition) definitionText = definitionText + addWarningIfTranslationIsOutdated(docsSchemaDocument.definition)