Errors switched to a Topic

This commit is contained in:
Luis Fernando Molina committed 2020-12-28 15:31:23 +01:00
1 parent 7a4cde94de
commit eef4dfc680
8 files changed
+189 -178

No files matched your search

@@ -1,160 +0,0 @@
{
"topic": "Docs Commands",
"pageNumber": "10",
"type": "Docs Command Errors",
"definition": {
"text": "While executing a command, you might receive different types of error messanges. These are described below. ",
"updated": 1609159174480
},
"paragraphs": [
{
"style": "Text",
"text": "The following is the complete list of errors you might find while executing Docs commands. In fact, once you get an error, you will be automatically sent to this page at the place the error is explained.",
"updated": 1609159398051
},
{
"style": "Anchor",
"text": "Anchor Too Few Paramenters"
},
{
"style": "Title",
"text": "Too few parameters"
},
{
"style": "Error",
"text": "Syntax error: Too few parameters.",
"updated": 1609160135644
},
{
"style": "Success",
"text": " Check the command syntax for a detailed list of parameters required.",
"updated": 1609160562426
},
{
"style": "Text",
"text": " "
},
{
"style": "Text",
"text": ""
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162906747
},
{
"style": "List",
"text": "Docs Goto Command"
},
{
"style": "Anchor",
"text": "Anchor Project Does Not Exist"
},
{
"style": "Title",
"text": "Project does not exist"
},
{
"style": "Error",
"text": "The Project you have specified, does not exist. ",
"updated": 1609160205674
},
{
"style": "Success",
"text": "Check that you typed the Project name correctly. Project names are key-sensitive."
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162883325
},
{
"style": "List",
"text": "Docs Goto Command"
},
{
"style": "Anchor",
"text": "Anchor Category Not Valid"
},
{
"style": "Title",
"text": "Category not valid",
"updated": 1609160881861
},
{
"style": "Error",
"text": "The category you have specidied is not a valid Docs Page Category.",
"updated": 1609160924575
},
{
"style": "Success",
"text": " Valid categories are: Node, Concept and Topic. This parameter is key-sensitive.",
"updated": 1609161108040
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162854123
},
{
"style": "List",
"text": "Docs Goto Command"
},
{
"style": "Anchor",
"text": "Anchor Page Not Found"
},
{
"style": "Title",
"text": "Page not found"
},
{
"style": "Error",
"text": "The Docs Page Name you have specified could not be found in the collection of pages of the Docs Page Category you provided."
},
{
"style": "Success",
"text": "Double check that the Docs Page Name is spelled correctly and that it belongs to the Docs Page Category provided. ",
"updated": 1609161473688
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162829457
},
{
"style": "List",
"text": "Docs Goto Command"
},
{
"style": "Anchor",
"text": "Anchor Page With No Paragraphs"
},
{
"style": "Title",
"text": "Page with no paragraphs"
},
{
"style": "Error",
"text": "The Docs Page Name you specified was found, but it does not have any paragraphs in it. "
},
{
"style": "Success",
"text": "You need to fix this in order for you or others users to be able to use this command.",
"updated": 1609161948865
},
{
"style": "Text",
"text": "4"
},
{
"style": "Text",
"text": "5"
},
{
"style": "Text",
"text": "6"
}
]
}
@@ -0,0 +1,16 @@
{
"topic": "Docs Commands Errors",
"pageNumber": "1",
"type": "Docs Error Intro",
"definition": {
"text": "While executing a command, you might receive different types of error messanges. These are described below. ",
"updated": 1609159174480
},
"paragraphs": [
{
"style": "Text",
"text": "The following is the complete list of errors you might find while executing Docs commands. In fact, once you get an error, you will be automatically sent to this page at the place the error is explained.",
"updated": 1609159398051
}
]
}
@@ -0,0 +1,34 @@
{
"topic": "Docs Commands Errors",
"pageNumber": "2",
"type": "Docs Error Too Few Parameters",
"definition": {
"text": "While executing a command, you might receive different types of error messanges. These are described below. ",
"updated": 1609159174480
},
"paragraphs": [
{
"style": "Anchor",
"text": "Anchor Too Few Paramenters"
},
{
"style": "Error",
"text": "Syntax error: Too few parameters.",
"updated": 1609160135644
},
{
"style": "Success",
"text": " Check the command syntax for a detailed list of parameters required.",
"updated": 1609160562426
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162906747
},
{
"style": "List",
"text": "Docs Goto Command"
}
]
}
@@ -0,0 +1,33 @@
{
"topic": "Docs Commands Errors",
"pageNumber": "3",
"type": "Docs Error Project Does Not Exist",
"definition": {
"text": "While executing a command, you might receive different types of error messanges. These are described below. ",
"updated": 1609159174480
},
"paragraphs": [
{
"style": "Anchor",
"text": "Anchor Project Does Not Exist"
},
{
"style": "Error",
"text": "The Project you have specified, does not exist. ",
"updated": 1609160205674
},
{
"style": "Success",
"text": "Check that you typed the Project name correctly. Project names are key-sensitive."
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162883325
},
{
"style": "List",
"text": "Docs Goto Command"
}
]
}
@@ -0,0 +1,34 @@
{
"topic": "Docs Commands Errors",
"pageNumber": "4",
"type": "Docs Error Category Not Valid",
"definition": {
"text": "While executing a command, you might receive different types of error messanges. These are described below. ",
"updated": 1609159174480
},
"paragraphs": [
{
"style": "Anchor",
"text": "Anchor Category Not Valid"
},
{
"style": "Error",
"text": "The category you have specidied is not a valid Docs Page Category.",
"updated": 1609160924575
},
{
"style": "Success",
"text": " Valid categories are: Node, Concept and Topic. This parameter is key-sensitive.",
"updated": 1609161108040
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162854123
},
{
"style": "List",
"text": "Docs Goto Command"
}
]
}
@@ -0,0 +1,33 @@
{
"topic": "Docs Commands Errors",
"pageNumber": "5",
"type": "Docs Error Page Not Found",
"definition": {
"text": "While executing a command, you might receive different types of error messanges. These are described below. ",
"updated": 1609159174480
},
"paragraphs": [
{
"style": "Anchor",
"text": "Anchor Page Not Found"
},
{
"style": "Error",
"text": "The Docs Page Name you have specified could not be found in the collection of pages of the Docs Page Category you provided."
},
{
"style": "Success",
"text": "Double check that the Docs Page Name is spelled correctly and that it belongs to the Docs Page Category provided. ",
"updated": 1609161473688
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162829457
},
{
"style": "List",
"text": "Docs Goto Command"
}
]
}
@@ -0,0 +1,33 @@
{
"topic": "Docs Commands Errors",
"pageNumber": "6",
"type": "Docs Error Page With No Paragraphs",
"definition": {
"text": "While executing a command, you might receive different types of error messanges. These are described below. ",
"updated": 1609159174480
},
"paragraphs": [
{
"style": "Anchor",
"text": "Anchor Page With No Paragraphs"
},
{
"style": "Error",
"text": "The Docs Page Name you specified was found, but it does not have any paragraphs in it. "
},
{
"style": "Success",
"text": "You need to fix this in order for you or others users to be able to use this command.",
"updated": 1609161948865
},
{
"style": "Title",
"text": "Applies to",
"updated": 1609162829457
},
{
"style": "List",
"text": "Docs Goto Command"
}
]
}
@@ -1004,7 +1004,7 @@ function newSuperalgosDocSpace() {
let splittedCommand = command.split(' ')
if (splittedCommand[1] === undefined) {
navigateTo('Superalgos', 'Topic', 'Docs Command Errors', 'Anchor Too Few Paramenters')
navigateTo('Superalgos', 'Topic', 'Docs Error Too Few Parameters', 'Anchor Too Few Paramenters')
return
}
let secondaryCommand = command.substring(command.indexOf(' ') + 1, command.length)
@@ -1015,7 +1015,7 @@ function newSuperalgosDocSpace() {
let anchor = splittedSecondaryCommand[3]
if (SCHEMAS_BY_PROJECT.get(project) === undefined) {
navigateTo('Superalgos', 'Topic', 'Docs Command Errors', 'Anchor Project Does Not Exist')
navigateTo('Superalgos', 'Topic', 'Docs Error Project Does Not Exist', 'Anchor Project Does Not Exist')
return
}
let docsSchemaDocument
@@ -1033,16 +1033,16 @@ function newSuperalgosDocSpace() {
break
}
default: {
navigateTo('Superalgos', 'Topic', 'Docs Command Errors', 'Anchor Category Not Valid')
navigateTo('Superalgos', 'Topic', 'Docs Error Category Not Valid', 'Anchor Category Not Valid')
return
}
}
if (docsSchemaDocument === undefined) {
navigateTo('Superalgos', 'Topic', 'Docs Command Errors', 'Anchor Page Not Found')
navigateTo('Superalgos', 'Topic', 'Docs Error Page Not Found', 'Anchor Page Not Found')
return
}
if (docsSchemaDocument.paragraphs === undefined) {
navigateTo('Superalgos', 'Topic', 'Docs Command Errors', 'Anchor Page With No Paragraphs')
navigateTo('Superalgos', 'Topic', 'Docs Error Page With No Paragraphs', 'Anchor Page With No Paragraphs')
return
}
navigateTo(project, category, type, anchor, undefined)
@@ -1887,7 +1887,7 @@ function newSuperalgosDocSpace() {
/* Title */
let titleLabel = ''
if (docsSchemaDocument.topic !== undefined) {
titleLabel = docsSchemaDocument.topic + ' #' + docsSchemaDocument.pageNumber + ' - ' + docsSchemaDocument.type
titleLabel = docsSchemaDocument.topic + ' - Page ' + docsSchemaDocument.pageNumber + '<br>' + docsSchemaDocument.type
} else {
titleLabel = docsSchemaDocument.type
}
@@ -1924,18 +1924,6 @@ 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)