fixed this

This commit is contained in:
Luis Fernando Molina committed 2020-12-28 08:30:33 +01:00
1 parent 7147fd6430
commit ce5dbdb57d
7 files changed
+30 -6

No files matched your search

@@ -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",
@@ -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",
@@ -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",
@@ -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",
@@ -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",
@@ -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",
@@ -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)