From cf6d80fcc2681cfa93dfbf902e345e892009779a Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 15:34:08 +0100 Subject: [PATCH 1/9] Bug fixed. Finding tool tips up to 10 words, and taking the longest first --- Projects/Superalgos/UI/Utilities/Docs.js | 302 +++-------------------- 1 file changed, 38 insertions(+), 264 deletions(-) diff --git a/Projects/Superalgos/UI/Utilities/Docs.js b/Projects/Superalgos/UI/Utilities/Docs.js index 839222a9c..6b9ba3714 100644 --- a/Projects/Superalgos/UI/Utilities/Docs.js +++ b/Projects/Superalgos/UI/Utilities/Docs.js @@ -534,294 +534,69 @@ function newSuperalgosUtilitiesDocs() { /* Private Functions follow */ function tagDefinedTypes(text, excludedType) { + const MAX_NUMBER_OF_WORDS = 10 let cleanText = text.replace(/'/g, ' AMPERSAND ') // scaping ampersands, separating them from other words .replaceAll('<', ' < ') .replaceAll('>', ' > ') .replaceAll(':', ' : ') + .replaceAll(',', ' , ') + .replaceAll('.', ' . ') let words = cleanText.split(' ') let taggedText = '' for (let i = 0; i < words.length; i++) { - let phrase1 = words[i] - let phrase2 = words[i] + ' ' + words[i + 1] - let phrase3 = words[i] + ' ' + words[i + 1] + ' ' + words[i + 2] - let phrase4 = words[i] + ' ' + words[i + 1] + ' ' + words[i + 2] + ' ' + words[i + 3] - let phrase5 = words[i] + ' ' + words[i + 1] + ' ' + words[i + 2] + ' ' + words[i + 3] + ' ' + words[i + 4] - let cleanPhrase1 = cleanPhrase(phrase1) - let cleanPhrase2 = cleanPhrase(phrase2) - let cleanPhrase3 = cleanPhrase(phrase3) - let cleanPhrase4 = cleanPhrase(phrase4) - let cleanPhrase5 = cleanPhrase(phrase5) + let phrases = [] + let cleanPhrases = [] + let phrase = '' + + for (let j = 0; j < MAX_NUMBER_OF_WORDS; j++) { + phrase = phrase + ' ' + words[i + j] + phrase = phrase.trim() + phrases.push(phrase) + cleanPhrases.push(cleanPhrase(phrase)) + } let found = false - for (let j = 0; j < PROJECTS_ARRAY.length; j++) { - let project = PROJECTS_ARRAY[j] + for (let j = MAX_NUMBER_OF_WORDS - 1; j >= 0; j--) { + for (let p = 0; p < PROJECTS_ARRAY.length; p++) { + let project = PROJECTS_ARRAY[p] - /* Search in docsNodeSchema */ - if (SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.get(cleanPhrase5) !== undefined) { - if (cleanPhrase5 !== excludedType) { - taggedText = taggedText + phrase5.replace(cleanPhrase5, TAGGING_STRING_SEPARATOR + 'Node' + '|' + cleanPhrase5 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase5 + ' ' - } - i = i + 4 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.get(cleanPhrase4) !== undefined) { - if (cleanPhrase4 !== excludedType) { - taggedText = taggedText + phrase4.replace(cleanPhrase4, TAGGING_STRING_SEPARATOR + 'Node' + '|' + cleanPhrase4 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase4 + ' ' - } - i = i + 3 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.get(cleanPhrase3) !== undefined) { - if (cleanPhrase3 !== excludedType) { - taggedText = taggedText + phrase3.replace(cleanPhrase3, TAGGING_STRING_SEPARATOR + 'Node' + '|' + cleanPhrase3 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase3 + ' ' - } - i = i + 2 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.get(cleanPhrase2) !== undefined) { - if (cleanPhrase2 !== excludedType) { - taggedText = taggedText + phrase2.replace(cleanPhrase2, TAGGING_STRING_SEPARATOR + 'Node' + '|' + cleanPhrase2 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase2 + ' ' - } - i = i + 1 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema.get(cleanPhrase1) !== undefined) { - if (cleanPhrase1 !== excludedType) { - taggedText = taggedText + phrase1.replace(cleanPhrase1, TAGGING_STRING_SEPARATOR + 'Node' + '|' + cleanPhrase1 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase1 + ' ' - } - found = true - break - } + searchInSchema(SCHEMAS_BY_PROJECT.get(project).map.docsNodeSchema) + searchInSchema(SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema) + searchInSchema(SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema) + searchInSchema(SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema) + searchInSchema(SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema) - /* Search in docsConceptSchema */ - if (SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.get(cleanPhrase5) !== undefined) { - if (cleanPhrase5 !== excludedType) { - taggedText = taggedText + phrase5.replace(cleanPhrase5, TAGGING_STRING_SEPARATOR + 'Concept' + '|' + cleanPhrase5 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase5 + ' ' - } - i = i + 4 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.get(cleanPhrase4) !== undefined) { - if (cleanPhrase4 !== excludedType) { - taggedText = taggedText + phrase4.replace(cleanPhrase4, TAGGING_STRING_SEPARATOR + 'Concept' + '|' + cleanPhrase4 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase4 + ' ' - } - i = i + 3 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.get(cleanPhrase3) !== undefined) { - if (cleanPhrase3 !== excludedType) { - taggedText = taggedText + phrase3.replace(cleanPhrase3, TAGGING_STRING_SEPARATOR + 'Concept' + '|' + cleanPhrase3 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase3 + ' ' - } - i = i + 2 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.get(cleanPhrase2) !== undefined) { - if (cleanPhrase2 !== excludedType) { - taggedText = taggedText + phrase2.replace(cleanPhrase2, TAGGING_STRING_SEPARATOR + 'Concept' + '|' + cleanPhrase2 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase2 + ' ' - } - i = i + 1 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsConceptSchema.get(cleanPhrase1) !== undefined) { - if (cleanPhrase1 !== excludedType) { - taggedText = taggedText + phrase1.replace(cleanPhrase1, TAGGING_STRING_SEPARATOR + 'Concept' + '|' + cleanPhrase1 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase1 + ' ' - } - found = true - break - } + function searchInSchema(docSchema) { + if (found === true) { return } - /* Search in docsTopicSchema */ - if (SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.get(cleanPhrase5) !== undefined) { - if (cleanPhrase5 !== excludedType) { - taggedText = taggedText + phrase5.replace(cleanPhrase5, TAGGING_STRING_SEPARATOR + 'Topic' + '|' + cleanPhrase5 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase5 + ' ' + if (docSchema.get(cleanPhrases[j]) !== undefined) { + if (cleanPhrases[j] !== excludedType) { + taggedText = taggedText + phrases[j].replace( + cleanPhrases[j], + TAGGING_STRING_SEPARATOR + 'Node' + '|' + cleanPhrases[j] + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' + } else { + taggedText = taggedText + phrases[j] + ' ' + } + i = i + j + found = true + return + } } - i = i + 4 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.get(cleanPhrase4) !== undefined) { - if (cleanPhrase4 !== excludedType) { - taggedText = taggedText + phrase4.replace(cleanPhrase4, TAGGING_STRING_SEPARATOR + 'Topic' + '|' + cleanPhrase4 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase4 + ' ' - } - i = i + 3 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.get(cleanPhrase3) !== undefined) { - if (cleanPhrase3 !== excludedType) { - taggedText = taggedText + phrase3.replace(cleanPhrase3, TAGGING_STRING_SEPARATOR + 'Topic' + '|' + cleanPhrase3 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase3 + ' ' - } - i = i + 2 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.get(cleanPhrase2) !== undefined) { - if (cleanPhrase2 !== excludedType) { - taggedText = taggedText + phrase2.replace(cleanPhrase2, TAGGING_STRING_SEPARATOR + 'Topic' + '|' + cleanPhrase2 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase2 + ' ' - } - i = i + 1 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsTopicSchema.get(cleanPhrase1) !== undefined) { - if (cleanPhrase1 !== excludedType) { - taggedText = taggedText + phrase1.replace(cleanPhrase1, TAGGING_STRING_SEPARATOR + 'Topic' + '|' + cleanPhrase1 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase1 + ' ' - } - found = true - break - } - - /* Search in docsTutorialSchema */ - if (SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema.get(cleanPhrase5) !== undefined) { - if (cleanPhrase5 !== excludedType) { - taggedText = taggedText + phrase5.replace(cleanPhrase5, TAGGING_STRING_SEPARATOR + 'Tutorial' + '|' + cleanPhrase5 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase5 + ' ' - } - i = i + 4 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema.get(cleanPhrase4) !== undefined) { - if (cleanPhrase4 !== excludedType) { - taggedText = taggedText + phrase4.replace(cleanPhrase4, TAGGING_STRING_SEPARATOR + 'Tutorial' + '|' + cleanPhrase4 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase4 + ' ' - } - i = i + 3 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema.get(cleanPhrase3) !== undefined) { - if (cleanPhrase3 !== excludedType) { - taggedText = taggedText + phrase3.replace(cleanPhrase3, TAGGING_STRING_SEPARATOR + 'Tutorial' + '|' + cleanPhrase3 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase3 + ' ' - } - i = i + 2 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema.get(cleanPhrase2) !== undefined) { - if (cleanPhrase2 !== excludedType) { - taggedText = taggedText + phrase2.replace(cleanPhrase2, TAGGING_STRING_SEPARATOR + 'Tutorial' + '|' + cleanPhrase2 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase2 + ' ' - } - i = i + 1 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsTutorialSchema.get(cleanPhrase1) !== undefined) { - if (cleanPhrase1 !== excludedType) { - taggedText = taggedText + phrase1.replace(cleanPhrase1, TAGGING_STRING_SEPARATOR + 'Tutorial' + '|' + cleanPhrase1 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase1 + ' ' - } - found = true - break - } - - /* Search in docsBookSchema */ - if (SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.get(cleanPhrase5) !== undefined) { - if (cleanPhrase5 !== excludedType) { - taggedText = taggedText + phrase5.replace(cleanPhrase5, TAGGING_STRING_SEPARATOR + 'Book' + '|' + cleanPhrase5 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase5 + ' ' - } - i = i + 4 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.get(cleanPhrase4) !== undefined) { - if (cleanPhrase4 !== excludedType) { - taggedText = taggedText + phrase4.replace(cleanPhrase4, TAGGING_STRING_SEPARATOR + 'Book' + '|' + cleanPhrase4 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase4 + ' ' - } - i = i + 3 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.get(cleanPhrase3) !== undefined) { - if (cleanPhrase3 !== excludedType) { - taggedText = taggedText + phrase3.replace(cleanPhrase3, TAGGING_STRING_SEPARATOR + 'Book' + '|' + cleanPhrase3 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase3 + ' ' - } - i = i + 2 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.get(cleanPhrase2) !== undefined) { - if (cleanPhrase2 !== excludedType) { - taggedText = taggedText + phrase2.replace(cleanPhrase2, TAGGING_STRING_SEPARATOR + 'Book' + '|' + cleanPhrase2 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase2 + ' ' - } - i = i + 1 - found = true - break - } - if (SCHEMAS_BY_PROJECT.get(project).map.docsBookSchema.get(cleanPhrase1) !== undefined) { - if (cleanPhrase1 !== excludedType) { - taggedText = taggedText + phrase1.replace(cleanPhrase1, TAGGING_STRING_SEPARATOR + 'Book' + '|' + cleanPhrase1 + '|' + project + TAGGING_STRING_SEPARATOR) + ' ' - } else { - taggedText = taggedText + phrase1 + ' ' - } - found = true - break } } if (found === false) { - taggedText = taggedText + phrase1 + ' ' + taggedText = taggedText + phrases[0] + ' ' } } taggedText = taggedText.replaceAll(' AMPERSAND ', '\'') .replaceAll(' < ', '<') .replaceAll(' > ', '>') .replaceAll(' : ', ':') + .replaceAll(' . ', '.') + .replaceAll(' , ', ',') return taggedText } @@ -830,7 +605,6 @@ function newSuperalgosUtilitiesDocs() { .replace(';', '') .replace('(', '') .replace(')', '') - .replace('-', '') .replace('_', '') .replace('.', '') .replace('[', '') From e63e02f29baa91868e9b12c1872d5a7ff3a9ed7d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 15:37:28 +0100 Subject: [PATCH 2/9] Update Footer.js --- Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js b/Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js index da679058e..25f28817b 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js @@ -63,7 +63,7 @@ function newSuperalgosDocsFooter() { HTML = HTML + '1. Switch to your language.
' HTML = HTML + '2. Edit any English content (title, paragraph, etc.) with your translation.
' HTML = HTML + '3. Save changes typing docs.save in the search/command box.
' - HTML = HTML + '4. Update your fork and submit a PR.
' + HTML = HTML + '4. Type app.contribute to update your fork and submit a PR.
' HTML = HTML + '' HTML = HTML + '' HTML = HTML + '' From 030db26ae2815473d770f22b031b329ebba338a6 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 17:15:47 +0100 Subject: [PATCH 3/9] bug fixed: numbering the topic and tutorial files --- Client/httpInterface.js | 26 ++++++++++++++----- .../Docs-Topics/vaina-001-vaina 1.json | 15 +++++++++++ .../Docs-Topics/vaina-002-vaina 2.json | 15 +++++++++++ .../Docs-Topics/vaina-003-vaina 3.json | 15 +++++++++++ .../Docs-Topics/vaina-004-vaina 4.json | 15 +++++++++++ .../Docs-Topics/vaina-005-vaina 5.json | 15 +++++++++++ .../Docs-Topics/vaina-2.5-vaina 2.5.json | 15 +++++++++++ 7 files changed, 109 insertions(+), 7 deletions(-) create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-2.5-vaina 2.5.json diff --git a/Client/httpInterface.js b/Client/httpInterface.js index fa091ad38..409cb13a4 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -313,7 +313,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE let project = requestParameters[3] let filePath = global.env.PATH_TO_PROJECTS + '/' + project + '/Schemas/Docs-Nodes' - checkAllSchmemaDocuments(docsSchema, filePath) + checkAllSchmemaDocuments('Node', docsSchema, filePath) respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) } catch (err) { @@ -340,7 +340,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE let project = requestParameters[3] let filePath = global.env.PATH_TO_PROJECTS + '/' + project + '/Schemas/Docs-Concepts' - checkAllSchmemaDocuments(docsSchema, filePath) + checkAllSchmemaDocuments('Concept', docsSchema, filePath) respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) } catch (err) { @@ -367,7 +367,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE let project = requestParameters[3] let filePath = global.env.PATH_TO_PROJECTS + '/' + project + '/Schemas/Docs-Topics' - checkAllSchmemaDocuments(docsSchema, filePath) + checkAllSchmemaDocuments('Topic', docsSchema, filePath) respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) } catch (err) { @@ -394,7 +394,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE let project = requestParameters[3] let filePath = global.env.PATH_TO_PROJECTS + '/' + project + '/Schemas/Docs-Tutorials' - checkAllSchmemaDocuments(docsSchema, filePath) + checkAllSchmemaDocuments('Tutorial', docsSchema, filePath) respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) } catch (err) { @@ -421,7 +421,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE let project = requestParameters[3] let filePath = global.env.PATH_TO_PROJECTS + '/' + project + '/Schemas/Docs-Books' - checkAllSchmemaDocuments(docsSchema, filePath) + checkAllSchmemaDocuments('Book', docsSchema, filePath) respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) } catch (err) { @@ -441,7 +441,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE } } - function checkAllSchmemaDocuments(docsSchema, filePath) { + function checkAllSchmemaDocuments(category, docsSchema, filePath) { const fs = require('fs') for (let i = 0; i < docsSchema.length; i++) { @@ -450,6 +450,18 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE for (let j = 0; j < 10; j++) { fileName = cleanFileName(fileName) } + let pageNumber = '00' + schemaDocument.pageNumber + + switch (category) { + case 'Topic': { + fileName = schemaDocument.topic.toLowerCase() + '-' + pageNumber.substring(pageNumber.length - 3, pageNumber.length) + '-' + schemaDocument.type.toLowerCase() + break + } + case 'Tutorial': { + fileName = schemaDocument.tutorial.toLowerCase() + '-' + pageNumber.substring(pageNumber.length - 3, pageNumber.length) + '-' + schemaDocument.type.toLowerCase() + break + } + } fileName = fileName + '.json' if (schemaDocument.deleted === true) { @@ -465,7 +477,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE if (schemaDocument.updated === true || schemaDocument.created === true) { try { let created = schemaDocument.created - let updated = schemaDocument.updated + let updated = schemaDocument.updated schemaDocument.updated = undefined schemaDocument.created = undefined let fileContent = JSON.stringify(schemaDocument, undefined, 4) diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json new file mode 100644 index 000000000..7831e604c --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json @@ -0,0 +1,15 @@ +{ + "topic": "Vaina", + "pageNumber": "1", + "type": "Vaina 1", + "definition": { + "text": "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. 1", + "updated": 1610381133258 + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json new file mode 100644 index 000000000..c0c7f5f7e --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json @@ -0,0 +1,15 @@ +{ + "topic": "Vaina", + "pageNumber": "2", + "type": "Vaina 2", + "definition": { + "text": "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. 2", + "updated": 1610381139634 + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json new file mode 100644 index 000000000..6c899a0d0 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json @@ -0,0 +1,15 @@ +{ + "topic": "Vaina", + "pageNumber": "3", + "type": "Vaina 3", + "definition": { + "text": "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. 3", + "updated": 1610381169574 + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json new file mode 100644 index 000000000..917f6e816 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json @@ -0,0 +1,15 @@ +{ + "topic": "Vaina", + "pageNumber": "4", + "type": "Vaina 4", + "definition": { + "text": "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. 4", + "updated": 1610381177981 + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json new file mode 100644 index 000000000..a2ce337c0 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json @@ -0,0 +1,15 @@ +{ + "topic": "Vaina", + "pageNumber": "5", + "type": "Vaina 5", + "definition": { + "text": "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. 5", + "updated": 1610381184235 + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-2.5-vaina 2.5.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-2.5-vaina 2.5.json new file mode 100644 index 000000000..9769c6eef --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-2.5-vaina 2.5.json @@ -0,0 +1,15 @@ +{ + "topic": "Vaina", + "pageNumber": "2.5", + "type": "Vaina 2.5", + "definition": { + "text": "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. 2.5", + "updated": 1610381151723 + } + ] +} \ No newline at end of file From 9289b6eb10aabfe203d45bef2e28f2abdc107d9b Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 20:07:50 +0100 Subject: [PATCH 4/9] Function to order an array of pages generalized and moved to utilities --- ...ors-004-docs error category not valid.json | 44 +++++++ .../docs-message-deleting-succeed - Copy.json | 16 +++ .../Docs-Topics/vaina-001-vaina 1.json | 2 +- .../Docs-Topics/vaina-002-vaina 2.json | 2 +- .../Docs-Topics/vaina-003-vaina 3.json | 2 +- .../Docs-Topics/vaina-004-vaina 4.json | 2 +- .../Docs-Topics/vaina-005-vaina 5.json | 2 +- ...aina 2.5.json => vaina-006-vaina 2.5.json} | 2 +- .../UI/Spaces/Docs-Space/CommandInterface.js | 110 +++++++++++++++++- .../UI/Spaces/Docs-Space/DocumentPage.js | 82 ++++--------- Projects/Superalgos/UI/Utilities/Docs.js | 52 +++++++++ 11 files changed, 246 insertions(+), 70 deletions(-) create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs commands errors-004-docs error category not valid.json create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed - Copy.json rename Projects/Superalgos/Schemas/Docs-Topics/{vaina-2.5-vaina 2.5.json => vaina-006-vaina 2.5.json} (93%) diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs commands errors-004-docs error category not valid.json b/Projects/Superalgos/Schemas/Docs-Topics/docs commands errors-004-docs error category not valid.json new file mode 100644 index 000000000..ae4a51ba3 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs commands errors-004-docs error category not valid.json @@ -0,0 +1,44 @@ +{ + "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": "Check which are the valid categories at the command's page.", + "updated": 1610382670261 + }, + { + "style": "Title", + "text": "Applies to", + "updated": 1609162854123 + }, + { + "style": "List", + "text": "Docs Goto Command", + "updated": 1609177229589 + }, + { + "style": "List", + "text": "Docs Add Command", + "updated": 1609180006853 + }, + { + "style": "List", + "text": "Docs Delete Command" + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed - Copy.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed - Copy.json new file mode 100644 index 000000000..9887ee9c9 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed - Copy.json @@ -0,0 +1,16 @@ +{ + "topic": "Docs Commands Messages", + "pageNumber": "3.1", + "type": "Docs Message Repagination Succeed", + "definition": { + "text": "The docs.repaginate command you executed successfuly.", + "updated": 1610292270590 + }, + "paragraphs": [ + { + "style": "Important", + "text": "To complete this procedure, you need to manually delete from disk all the files of the Topic / Tutorial you just repaginated, and execute the Docs Save Command to save the in-memory updated pages.", + "updated": 1610292163004 + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json index 7831e604c..faefa0791 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json @@ -1,6 +1,6 @@ { "topic": "Vaina", - "pageNumber": "1", + "pageNumber": 1, "type": "Vaina 1", "definition": { "text": "Write here a summary for this topic page." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json index c0c7f5f7e..fb2c461f4 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json @@ -1,6 +1,6 @@ { "topic": "Vaina", - "pageNumber": "2", + "pageNumber": 2, "type": "Vaina 2", "definition": { "text": "Write here a summary for this topic page." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json index 6c899a0d0..4e8e85a64 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json @@ -1,6 +1,6 @@ { "topic": "Vaina", - "pageNumber": "3", + "pageNumber": 3, "type": "Vaina 3", "definition": { "text": "Write here a summary for this topic page." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json index 917f6e816..b49dd0a5e 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json @@ -1,6 +1,6 @@ { "topic": "Vaina", - "pageNumber": "4", + "pageNumber": 4, "type": "Vaina 4", "definition": { "text": "Write here a summary for this topic page." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json index a2ce337c0..2167e21b0 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json @@ -1,6 +1,6 @@ { "topic": "Vaina", - "pageNumber": "5", + "pageNumber": 5, "type": "Vaina 5", "definition": { "text": "Write here a summary for this topic page." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-2.5-vaina 2.5.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-006-vaina 2.5.json similarity index 93% rename from Projects/Superalgos/Schemas/Docs-Topics/vaina-2.5-vaina 2.5.json rename to Projects/Superalgos/Schemas/Docs-Topics/vaina-006-vaina 2.5.json index 9769c6eef..ccbf6d0d6 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-2.5-vaina 2.5.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/vaina-006-vaina 2.5.json @@ -1,6 +1,6 @@ { "topic": "Vaina", - "pageNumber": "2.5", + "pageNumber": 6, "type": "Vaina 2.5", "definition": { "text": "Write here a summary for this topic page." diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js index 78da5d0ad..913406141 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js @@ -85,6 +85,7 @@ function newSuperalgosDocsCommmandInterface() { if (checkGotoCommand() === undefined) { return } if (checkAddCommand() === undefined) { return } if (checkDeleteCommand() === undefined) { return } + if (checkRepaginateCommand() === undefined) { return } if (checkUReIndexCommand() === undefined) { return } if (checkUSaveCommand() === undefined) { return } @@ -317,6 +318,68 @@ function newSuperalgosDocsCommmandInterface() { } } + function checkRepaginateCommand() { + if (UI.projects.superalgos.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help docs.repaginate') { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Repaginate Command') + return + } + if (UI.projects.superalgos.spaces.docsSpace.commandInterface.command.indexOf('Docs.Repaginate') !== 0 && UI.projects.superalgos.spaces.docsSpace.commandInterface.command.indexOf('docs.repaginate') !== 0) { return 'Not Repaginate Command' } + + let splittedCommand = UI.projects.superalgos.spaces.docsSpace.commandInterface.command.split(': ') + if (splittedCommand[1] === undefined) { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Missing Colon', 'Anchor Missing Colon') + return + } + let primaryCommand = splittedCommand[0] + let secondaryCommand = splittedCommand[1] + + let splittedPrimaryCommand = primaryCommand.split(' ') + + if (splittedPrimaryCommand[0].toLowerCase() === 'docs.repaginate') { + if (splittedPrimaryCommand[2] !== 'from') { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Missing From', 'Anchor Missing From') + return + } + + if (splittedPrimaryCommand.length < 4) { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Too Few Parameters', 'Anchor Too Few Paramenters') + return + } + + if (secondaryCommand === '') { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Category Not Valid', 'Anchor Category Not Valid') + return + } + + switch (splittedPrimaryCommand[1].toLowerCase()) { + case 'node': { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Category Not Valid', 'Anchor Category Not Valid') + return + } + case 'concept': { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Category Not Valid', 'Anchor Category Not Valid') + return + } + case 'topic': { + repaginate(splittedPrimaryCommand[3], 'Topic', secondaryCommand) + return + } + case 'tutorial': { + repaginate(splittedPrimaryCommand[3], 'Tutorial', secondaryCommand) + return + } + case 'book': { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Category Not Valid', 'Anchor Category Not Valid') + return + } + default: { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Category Not Valid', 'Anchor Category Not Valid') + return + } + } + } + } + function checkUReIndexCommand() { if (UI.projects.superalgos.spaces.docsSpace.commandInterface.command.toLowerCase() === 'docs.help docs.reindex') { UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Reindex Command') @@ -327,10 +390,10 @@ function newSuperalgosDocsCommmandInterface() { UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Reindexing Started') setTimeout(startReindexingProcess, 100) - function startReindexingProcess(){ + function startReindexingProcess() { UI.projects.superalgos.spaces.docsSpace.setUpWorkspaceSchemas() UI.projects.superalgos.spaces.docsSpace.searchEngine.setUpSearchEngine() - + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Reindexing Succeed') } } @@ -475,6 +538,49 @@ function newSuperalgosDocsCommmandInterface() { } } + function repaginate(project, category, query) { + if (SCHEMAS_BY_PROJECT.get(project) === undefined) { + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Error Project Does Not Exist', 'Anchor Project Does Not Exist') + return + } + + let docsSchema + switch (category) { + case 'Topic': { + docsSchema = SCHEMAS_BY_PROJECT.get(project).array.docsTopicSchema + break + } + case 'Tutorial': { + docsSchema = SCHEMAS_BY_PROJECT.get(project).array.docsTutorialSchema + break + } + } + + let pageNumber = 1 + for (let i = 0; i < docsSchema.length; i++) { + schemaDocument = docsSchema[i] + switch (category) { + case 'Topic': { + if (schemaDocument.topic === query) { + schemaDocument.pageNumber = pageNumber + pageNumber++ + schemaDocument.updated = true + } + break + } + case 'Tutorial': { + if (schemaDocument.tutorial === query) { + schemaDocument.pageNumber = pageNumber + pageNumber++ + schemaDocument.updated = true + } + break + } + } + } + UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs Message Repagination Succeed') + } + function addNode(project, type) { let template = { created: true, diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js index 98466efcd..c87ffc495 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js @@ -167,9 +167,11 @@ function newSuperalgosDocsDocumentPage() { if (UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.category === 'Topic') { - buildOrderedTopicPageIndex(thisObject.docsSchemaDocument.topic) - - + orderedTopicPageIndexArray = UI.projects.superalgos.utilities.docs.buildOrderedPageIndex( + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, + 'Topic', + thisObject.docsSchemaDocument.topic + ) /* Topic Title @@ -192,7 +194,11 @@ function newSuperalgosDocsDocumentPage() { if (UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.category === 'Tutorial') { - buildOrderedTutorialPageIndex(thisObject.docsSchemaDocument.tutorial) + orderedTutorialPageIndexArray = UI.projects.superalgos.utilities.docs.buildOrderedPageIndex( + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, + 'Tutorial', + thisObject.docsSchemaDocument.tutorial + ) /* Tutorial Title titleLabel = thisObject.docsSchemaDocument.tutorial + ' Tutorial Navigation' @@ -273,34 +279,6 @@ function newSuperalgosDocsDocumentPage() { } - function buildOrderedTopicPageIndex(topic) { - orderedTopicPageIndexArray = [] - let schemaArray = SCHEMAS_BY_PROJECT.get(UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project).array.docsTopicSchema - for (let i = 0; i < schemaArray.length; i++) { - let arrayItem = schemaArray[i] - - if (arrayItem.topic === topic) { - let itemAdded = false - if (orderedTopicPageIndexArray.length === 0) { - orderedTopicPageIndexArray.push(arrayItem) - itemAdded = true - } else { - for (let j = 0; j < orderedTopicPageIndexArray.length; j++) { - let orderedArrayItem = orderedTopicPageIndexArray[j] - if (Number(arrayItem.pageNumber) < Number(orderedArrayItem.pageNumber)) { - orderedTopicPageIndexArray.splice(j, 0, arrayItem) - itemAdded = true - break - } - } - } - if (itemAdded === false) { - orderedTopicPageIndexArray.push(arrayItem) - } - } - } - } - function generateTopicPreviousAndNextPageNavigation() { let previousPage let nextPage @@ -350,34 +328,6 @@ function newSuperalgosDocsDocumentPage() { } - function buildOrderedTutorialPageIndex(tutorial) { - orderedTutorialPageIndexArray = [] - let schemaArray = SCHEMAS_BY_PROJECT.get(UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project).array.docsTutorialSchema - for (let i = 0; i < schemaArray.length; i++) { - let arrayItem = schemaArray[i] - - if (arrayItem.tutorial === tutorial) { - let itemAdded = false - if (orderedTutorialPageIndexArray.length === 0) { - orderedTutorialPageIndexArray.push(arrayItem) - itemAdded = true - } else { - for (let j = 0; j < orderedTutorialPageIndexArray.length; j++) { - let orderedArrayItem = orderedTutorialPageIndexArray[j] - if (Number(arrayItem.pageNumber) < Number(orderedArrayItem.pageNumber)) { - orderedTutorialPageIndexArray.splice(j, 0, arrayItem) - itemAdded = true - break - } - } - } - if (itemAdded === false) { - orderedTutorialPageIndexArray.push(arrayItem) - } - } - } - } - function generateTutorialPreviousAndNextPageNavigation() { let previousPage let nextPage @@ -587,7 +537,11 @@ function newSuperalgosDocsDocumentPage() { switch (category) { case 'Topic': { - buildOrderedTopicPageIndex(chapterName) + orderedTopicPageIndexArray = UI.projects.superalgos.utilities.docs.buildOrderedPageIndex( + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, + 'Topic', + chapterName + ) if (orderedTopicPageIndexArray.length === 0) { return 'Chapter paragraph style Syntax Error. The Topic ' + chapterName + ' could not be found. Check the Docs Chapter Style Syntax. This error message will dissapear as soon as you fix the problem.' @@ -595,7 +549,11 @@ function newSuperalgosDocsDocumentPage() { break } case 'Tutorial': { - buildOrderedTutorialPageIndex(chapterName) + orderedTutorialPageIndexArray = UI.projects.superalgos.utilities.docs.buildOrderedPageIndex( + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project, + 'Tutorial', + chapterName + ) if (orderedTutorialPageIndexArray.length === 0) { return 'Chapter paragraph style Syntax Error. The Tutorial ' + chapterName + ' could not be found. Check the Docs Chapter Style Syntax. This error message will dissapear as soon as you fix the problem.' diff --git a/Projects/Superalgos/UI/Utilities/Docs.js b/Projects/Superalgos/UI/Utilities/Docs.js index 6b9ba3714..7e3dc6f81 100644 --- a/Projects/Superalgos/UI/Utilities/Docs.js +++ b/Projects/Superalgos/UI/Utilities/Docs.js @@ -1,5 +1,6 @@ function newSuperalgosUtilitiesDocs() { thisObject = { + buildOrderedPageIndex: buildOrderedPageIndex, addWarningIfTranslationIsOutdated: addWarningIfTranslationIsOutdated, getTextBasedOnLanguage: getTextBasedOnLanguage, setTextBasedOnLanguage: setTextBasedOnLanguage, @@ -26,6 +27,57 @@ function newSuperalgosUtilitiesDocs() { return thisObject + function buildOrderedPageIndex(project, category, query) { + let array = [] + let schemaArray + + switch (category) { + case 'Topic': { + schemaArray = SCHEMAS_BY_PROJECT.get(project).array.docsTopicSchema + break + } + case 'Tutorial': { + schemaArray = SCHEMAS_BY_PROJECT.get(project).array.docsTutorialSchema + break + } + } + + for (let i = 0; i < schemaArray.length; i++) { + let arrayItem = schemaArray[i] + + switch (category) { + case 'Topic': { + if (arrayItem.topic !== query) { continue } + break + } + case 'Tutorial': { + if (arrayItem.tutorial !== query) { continue } + break + } + } + + let itemAdded = false + if (array.length === 0) { + array.push(arrayItem) + itemAdded = true + } else { + for (let j = 0; j < array.length; j++) { + let orderedArrayItem = array[j] + if (Number(arrayItem.pageNumber) < Number(orderedArrayItem.pageNumber)) { + array.splice(j, 0, arrayItem) + itemAdded = true + break + } + } + } + if (itemAdded === false) { + array.push(arrayItem) + } + + } + return array + } + function addWarningIfTranslationIsOutdated(paragraph) { if (paragraph === undefined) { return '' } if (paragraph.updated === undefined) { return '' } From b0de0dcfd30d567464ee573cbd5c7e263784ee87 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 20:28:39 +0100 Subject: [PATCH 5/9] Repaginate working --- ... commands-007-docs repaginate command.json | 44 +++++++++++++++++++ .../Docs-Topics/vaina-001-vaina 1.json | 15 ------- .../Docs-Topics/vaina-002-vaina 2.json | 15 ------- .../Docs-Topics/vaina-003-vaina 3.json | 15 ------- .../Docs-Topics/vaina-004-vaina 4.json | 15 ------- .../Docs-Topics/vaina-005-vaina 5.json | 15 ------- .../Docs-Topics/vaina-006-vaina 2.5.json | 15 ------- .../UI/Spaces/Docs-Space/CommandInterface.js | 24 ++++------ 8 files changed, 53 insertions(+), 105 deletions(-) create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs commands-007-docs repaginate command.json delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/vaina-006-vaina 2.5.json diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs commands-007-docs repaginate command.json b/Projects/Superalgos/Schemas/Docs-Topics/docs commands-007-docs repaginate command.json new file mode 100644 index 000000000..0058cce8f --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs commands-007-docs repaginate command.json @@ -0,0 +1,44 @@ +{ + "topic": "Docs Commands", + "pageNumber": "7", + "type": "Docs Repaginate Command", + "definition": { + "text": "When you add a Docs Topic Page or a Docs Tutorial Page, you define the page number for it, that is will ultimately defines the position of the page within that topic or tutorial table of contents. The technique to add a page in-between other pages is to use decimal values. After that you can use the Repaginate command in order to recalculate all page numbers and leave the whole set with integer numbers.", + "updated": 1610392867410 + }, + "paragraphs": [ + { + "style": "Title", + "text": "Syntax", + "updated": 1610393031768 + }, + { + "style": "Javascript", + "text": "docs.repaginate Category from Project: Topic or Tutorial name." + }, + { + "style": "Title", + "text": "Properties" + }, + { + "style": "List", + "text": "Category: It must be either Topic or Tutorial." + }, + { + "style": "List", + "text": "Project: Any existing already integrated project." + }, + { + "style": "List", + "text": "Topic or Tutorial name: The name given tu the Topic or Tutorial that you want to repaginate." + }, + { + "style": "Title", + "text": "Example" + }, + { + "style": "Javascript", + "text": "docs.repaginate Topic from Superalgos: Docs Commands" + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json deleted file mode 100644 index faefa0791..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-001-vaina 1.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "topic": "Vaina", - "pageNumber": 1, - "type": "Vaina 1", - "definition": { - "text": "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. 1", - "updated": 1610381133258 - } - ] -} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json deleted file mode 100644 index fb2c461f4..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-002-vaina 2.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "topic": "Vaina", - "pageNumber": 2, - "type": "Vaina 2", - "definition": { - "text": "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. 2", - "updated": 1610381139634 - } - ] -} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json deleted file mode 100644 index 4e8e85a64..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-003-vaina 3.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "topic": "Vaina", - "pageNumber": 3, - "type": "Vaina 3", - "definition": { - "text": "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. 3", - "updated": 1610381169574 - } - ] -} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json deleted file mode 100644 index b49dd0a5e..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-004-vaina 4.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "topic": "Vaina", - "pageNumber": 4, - "type": "Vaina 4", - "definition": { - "text": "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. 4", - "updated": 1610381177981 - } - ] -} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json deleted file mode 100644 index 2167e21b0..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-005-vaina 5.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "topic": "Vaina", - "pageNumber": 5, - "type": "Vaina 5", - "definition": { - "text": "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. 5", - "updated": 1610381184235 - } - ] -} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/vaina-006-vaina 2.5.json b/Projects/Superalgos/Schemas/Docs-Topics/vaina-006-vaina 2.5.json deleted file mode 100644 index ccbf6d0d6..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/vaina-006-vaina 2.5.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "topic": "Vaina", - "pageNumber": 6, - "type": "Vaina 2.5", - "definition": { - "text": "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. 2.5", - "updated": 1610381151723 - } - ] -} \ 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 913406141..99a19161b 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/CommandInterface.js @@ -544,28 +544,22 @@ function newSuperalgosDocsCommmandInterface() { return } - let docsSchema - switch (category) { - case 'Topic': { - docsSchema = SCHEMAS_BY_PROJECT.get(project).array.docsTopicSchema - break - } - case 'Tutorial': { - docsSchema = SCHEMAS_BY_PROJECT.get(project).array.docsTutorialSchema - break - } - } + let orderedArray = UI.projects.superalgos.utilities.docs.buildOrderedPageIndex( + project, + category, + query + ) let pageNumber = 1 - for (let i = 0; i < docsSchema.length; i++) { - schemaDocument = docsSchema[i] + for (let i = 0; i < orderedArray.length; i++) { + schemaDocument = orderedArray[i] switch (category) { case 'Topic': { if (schemaDocument.topic === query) { schemaDocument.pageNumber = pageNumber pageNumber++ schemaDocument.updated = true - } + } break } case 'Tutorial': { @@ -573,7 +567,7 @@ function newSuperalgosDocsCommmandInterface() { schemaDocument.pageNumber = pageNumber pageNumber++ schemaDocument.updated = true - } + } break } } From d793e63e528af87edc7af0c49eeb7128e4519af4 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 20:56:34 +0100 Subject: [PATCH 6/9] Bug Fixed - rapaginate working --- Client/httpInterface.js | 2 + ...ors-004-docs error category not valid.json | 44 ------------------- ...commands-007-docs repaginate command.json} | 0 ...-commands-errors-001-docs-error-intro.json | 2 +- ...ors-002-docs-error-too-few-parameters.json | 10 ++++- ...003-docs-error-project-does-not-exist.json | 6 ++- ...ors-004-docs-error-category-not-valid.json | 10 ++++- ...-errors-005-docs-error-page-not-found.json | 2 +- ...06-docs-error-page-with-no-paragraphs.json | 2 +- ...errors-007-docs-error-only-in-english.json | 2 +- ...s-errors-008-docs-error-missing-colon.json | 10 ++++- ...ands-errors-009-docs-error-missing-to.json | 2 +- ...ds-errors-010-docs-error-missing-from.json | 10 ++++- ...rors-011-docs-error-changes-not-saved.json | 2 +- ...rs-012-docs-error-page-already-exists.json | 2 +- ...rs-013-docs-error-page-does-not-exist.json | 2 +- ...s-014-docs-error-page-number-mismatch.json | 2 +- ...-errors-015-docs-error-topic-mismatch.json | 2 +- ...rors-016-docs-error-tutorial-mismatch.json | 2 +- 19 files changed, 54 insertions(+), 60 deletions(-) delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs commands errors-004-docs error category not valid.json rename Projects/Superalgos/Schemas/Docs-Topics/{docs commands-007-docs repaginate command.json => docs-commands-007-docs repaginate command.json} (100%) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 409cb13a4..d974b3a78 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -455,10 +455,12 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE switch (category) { case 'Topic': { fileName = schemaDocument.topic.toLowerCase() + '-' + pageNumber.substring(pageNumber.length - 3, pageNumber.length) + '-' + schemaDocument.type.toLowerCase() + fileName = cleanFileName(fileName) break } case 'Tutorial': { fileName = schemaDocument.tutorial.toLowerCase() + '-' + pageNumber.substring(pageNumber.length - 3, pageNumber.length) + '-' + schemaDocument.type.toLowerCase() + fileName = cleanFileName(fileName) break } } diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs commands errors-004-docs error category not valid.json b/Projects/Superalgos/Schemas/Docs-Topics/docs commands errors-004-docs error category not valid.json deleted file mode 100644 index ae4a51ba3..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs commands errors-004-docs error category not valid.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "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": "Check which are the valid categories at the command's page.", - "updated": 1610382670261 - }, - { - "style": "Title", - "text": "Applies to", - "updated": 1609162854123 - }, - { - "style": "List", - "text": "Docs Goto Command", - "updated": 1609177229589 - }, - { - "style": "List", - "text": "Docs Add Command", - "updated": 1609180006853 - }, - { - "style": "List", - "text": "Docs Delete Command" - } - ] -} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs commands-007-docs repaginate command.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-007-docs repaginate command.json similarity index 100% rename from Projects/Superalgos/Schemas/Docs-Topics/docs commands-007-docs repaginate command.json rename to Projects/Superalgos/Schemas/Docs-Topics/docs-commands-007-docs repaginate command.json diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-001-docs-error-intro.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-001-docs-error-intro.json index 85daf66b3..b4e2ee033 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-001-docs-error-intro.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-001-docs-error-intro.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "1", + "pageNumber": 1, "type": "Docs Error Intro", "definition": { "text": "While executing a command, you might receive different types of error messanges. These are described below. ", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-002-docs-error-too-few-parameters.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-002-docs-error-too-few-parameters.json index f5931ab87..d4cc1bf07 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-002-docs-error-too-few-parameters.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-002-docs-error-too-few-parameters.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "2", + "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. ", @@ -39,6 +39,14 @@ { "style": "List", "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Repaginate Command" } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-003-docs-error-project-does-not-exist.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-003-docs-error-project-does-not-exist.json index 21b9c8343..a38b13e6b 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-003-docs-error-project-does-not-exist.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-003-docs-error-project-does-not-exist.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "3", + "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. ", @@ -37,6 +37,10 @@ { "style": "List", "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Repaginate Command" } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-004-docs-error-category-not-valid.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-004-docs-error-category-not-valid.json index e28e9ac54..9e63020d3 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-004-docs-error-category-not-valid.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-004-docs-error-category-not-valid.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "4", + "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. ", @@ -39,6 +39,14 @@ { "style": "List", "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Repaginate Command" } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-005-docs-error-page-not-found.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-005-docs-error-page-not-found.json index a6b5ede89..1cd0160fd 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-005-docs-error-page-not-found.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-005-docs-error-page-not-found.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "5", + "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. ", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-006-docs-error-page-with-no-paragraphs.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-006-docs-error-page-with-no-paragraphs.json index 3bacb53f4..f0b05c184 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-006-docs-error-page-with-no-paragraphs.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-006-docs-error-page-with-no-paragraphs.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "6", + "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. ", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-007-docs-error-only-in-english.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-007-docs-error-only-in-english.json index 6d6c8c2c3..0bf23f34a 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-007-docs-error-only-in-english.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-007-docs-error-only-in-english.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "7", + "pageNumber": 7, "type": "Docs Error Only In English", "definition": { "text": "Command not available because you are not set in English language.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-008-docs-error-missing-colon.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-008-docs-error-missing-colon.json index 32c3df14a..b15717e2e 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-008-docs-error-missing-colon.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-008-docs-error-missing-colon.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "8", + "pageNumber": 8, "type": "Docs Error Missing Colon", "definition": { "text": "You forgot the colon character \":\" that is part of the syntax of the command. ", @@ -34,6 +34,14 @@ { "style": "List", "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Repaginate Command" } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-009-docs-error-missing-to.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-009-docs-error-missing-to.json index 28d651b28..5697d154b 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-009-docs-error-missing-to.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-009-docs-error-missing-to.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "9", + "pageNumber": 9, "type": "Docs Error Missing To", "definition": { "text": "The word \"to\" is part of the syntax of the command and you did not include it.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-010-docs-error-missing-from.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-010-docs-error-missing-from.json index 91e48f450..c0e30e9fa 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-010-docs-error-missing-from.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-010-docs-error-missing-from.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "10", + "pageNumber": 10, "type": "Docs Error Missing From", "definition": { "text": "The word \"from\" is part of the syntax of the command and it is missing.", @@ -28,6 +28,14 @@ { "style": "List", "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Delete Command" + }, + { + "style": "List", + "text": "Docs Repaginate Command" } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-011-docs-error-changes-not-saved.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-011-docs-error-changes-not-saved.json index 32299aa0a..ae81aa0b8 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-011-docs-error-changes-not-saved.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-011-docs-error-changes-not-saved.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "11", + "pageNumber": 11, "type": "Docs Error Changes Not Saved", "definition": { "text": "It was not possible to save your changes.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-012-docs-error-page-already-exists.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-012-docs-error-page-already-exists.json index 9f4692529..92fe03069 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-012-docs-error-page-already-exists.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-012-docs-error-page-already-exists.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "12", + "pageNumber": 12, "type": "Docs Error Page Already Exists", "definition": { "text": "The page you are trying to add already exists at Docs.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-013-docs-error-page-does-not-exist.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-013-docs-error-page-does-not-exist.json index 83a4f743c..58fe07f1a 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-013-docs-error-page-does-not-exist.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-013-docs-error-page-does-not-exist.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "13", + "pageNumber": 13, "type": "Docs Error Page Does Not Exist", "definition": { "text": "The page you are trying to delete does not exist.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-014-docs-error-page-number-mismatch.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-014-docs-error-page-number-mismatch.json index 7a79119e2..78d779bfd 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-014-docs-error-page-number-mismatch.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-014-docs-error-page-number-mismatch.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "14", + "pageNumber": 14, "type": "Docs Error Page Number Mismatch", "definition": { "text": "The Docs Page Number provided does not match with the Docs Page Number found at the page you want to delete. ", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-015-docs-error-topic-mismatch.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-015-docs-error-topic-mismatch.json index 641cfae46..8d39a21b9 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-015-docs-error-topic-mismatch.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-015-docs-error-topic-mismatch.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "15", + "pageNumber": 15, "type": "Docs Error Topic Mismatch", "definition": { "text": "The Docs Topic Name provided does not match with the Docs Topic Name found at the page you want to delete.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-016-docs-error-tutorial-mismatch.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-016-docs-error-tutorial-mismatch.json index 2155f85e9..48d5587f9 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-016-docs-error-tutorial-mismatch.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-errors-016-docs-error-tutorial-mismatch.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Errors", - "pageNumber": "16", + "pageNumber": 16, "type": "Docs Error Tutorial Mismatch", "definition": { "text": "The Docs Tutorial Name provided does not match with the Docs Tutorial Name found at the page you want to delete.", From 9ee8d9ec891a4977c71ea4ea05f54ceccd854d7e Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 21:08:55 +0100 Subject: [PATCH 7/9] File name fixed with repagination --- ...messages-001-docs-message-saving-succeed.json | 2 +- ...ages-002-docs-message-reindexing-started.json | 6 +++--- ...ages-003-docs-message-reindexing-succeed.json | 2 +- ...ssages-004-docs-message-deleting-succeed.json | 12 ++++++------ ...s-005-docs-message-repagination-succeed.json} | 2 +- .../docs-message-deleting-succeed.json | 16 ---------------- .../docs-message-reindexing-started.json | 16 ---------------- 7 files changed, 12 insertions(+), 44 deletions(-) rename Projects/Superalgos/Schemas/Docs-Topics/{docs-message-deleting-succeed - Copy.json => docs-commands-messages-005-docs-message-repagination-succeed.json} (95%) delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed.json delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs-message-reindexing-started.json diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-001-docs-message-saving-succeed.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-001-docs-message-saving-succeed.json index f049e5a3b..2664679c4 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-001-docs-message-saving-succeed.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-001-docs-message-saving-succeed.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Messages", - "pageNumber": "1", + "pageNumber": 1, "type": "Docs Message Saving Succeed", "definition": { "text": "The docs.save command you executed was successful and all changes have been saved at the Superalgos Client.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-002-docs-message-reindexing-started.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-002-docs-message-reindexing-started.json index ad260dc06..8ede17ff9 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-002-docs-message-reindexing-started.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-002-docs-message-reindexing-started.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Messages", - "pageNumber": "2", + "pageNumber": 2, "type": "Docs Message Reindexing Started", "definition": { "text": "The docs.reindex command you executed succesfully started the rebuing of the Docs Search Engine Index.", @@ -9,8 +9,8 @@ "paragraphs": [ { "style": "Success", - "text": "This is a very resourse intensive process. While this happens you will not be able to move arround since all the CPU resources are being used to recreate the index as fast as possible. The size of your workspace impacts the time to reindex the content since every node in it is scanned and all its config and code are indexed. So hold on for a few minutes until the process finishes. Once it does, we will take you to a page that informs you of the result of the process.", - "updated": 1609783508213 + "text": "This is a very resourse intensive process. While this happens you will not be able to move arround since all the CPU resources are being used to recreate the index as fast as possible. The size of your workspace impacts the time to reindex the content since every node in it is scanned and all it's config and code are indexed. So hold on for a few minutes until the process finishes. Once it does, we will take you to a page that informs you of the result of the process.", + "updated": 1610353170958 } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-003-docs-message-reindexing-succeed.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-003-docs-message-reindexing-succeed.json index 77651867c..a492b24db 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-003-docs-message-reindexing-succeed.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-003-docs-message-reindexing-succeed.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Messages", - "pageNumber": "3", + "pageNumber": 3, "type": "Docs Message Reindexing Succeed", "definition": { "text": "The docs.reindex command you executed succesfully rebuilt the Docs Search Engine Index.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-004-docs-message-deleting-succeed.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-004-docs-message-deleting-succeed.json index 3e7d004a0..cdf0e007a 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-004-docs-message-deleting-succeed.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-004-docs-message-deleting-succeed.json @@ -1,16 +1,16 @@ { "topic": "Docs Commands Messages", - "pageNumber": "4", + "pageNumber": 4, "type": "Docs Message Deleting Succeed", "definition": { - "text": "The docs.delete command you executed successfuly delete the page you requested.", - "updated": 1609783558007 + "text": "The docs.delete command you executed successfuly deleted the page you requested.", + "updated": 1610292270590 }, "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 + "style": "Important", + "text": "The page was flagged to be deleted. It will be removed from the in-memory collection of pages once you run the Docs Save Command. Even after that it will still be indexed at the Docs Search Engine Index. To remove it from the index you need to execute Docs Reindex Command. The Docs Save Command will instruct the Client to delete it from it's disk.", + "updated": 1610292163004 } ] } \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed - Copy.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-005-docs-message-repagination-succeed.json similarity index 95% rename from Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed - Copy.json rename to Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-005-docs-message-repagination-succeed.json index 9887ee9c9..7e3dc7625 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed - Copy.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-messages-005-docs-message-repagination-succeed.json @@ -1,6 +1,6 @@ { "topic": "Docs Commands Messages", - "pageNumber": "3.1", + "pageNumber": 5, "type": "Docs Message Repagination Succeed", "definition": { "text": "The docs.repaginate command you executed successfuly.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed.json deleted file mode 100644 index 3beb3d0cd..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-message-deleting-succeed.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "topic": "Docs Commands Messages", - "pageNumber": "3", - "type": "Docs Message Deleting Succeed", - "definition": { - "text": "The docs.delete command you executed successfuly deleted the page you requested.", - "updated": 1610292270590 - }, - "paragraphs": [ - { - "style": "Important", - "text": "The page was flagged to be deleted. It will be removed from the in-memory collection of pages once you run the Docs Save Command. Even after that it will still be indexed at the Docs Search Engine Index. To remove it from the index you need to execute Docs Reindex Command. The Docs Save Command will instruct the Client to delete it from it's disk.", - "updated": 1610292163004 - } - ] -} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-message-reindexing-started.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-message-reindexing-started.json deleted file mode 100644 index 74ea55e9d..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-message-reindexing-started.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "topic": "Docs Commands Messages", - "pageNumber": "2", - "type": "Docs Message Reindexing Started", - "definition": { - "text": "The docs.reindex command you executed succesfully started the rebuing of the Docs Search Engine Index.", - "updated": 1609783396612 - }, - "paragraphs": [ - { - "style": "Success", - "text": "This is a very resourse intensive process. While this happens you will not be able to move arround since all the CPU resources are being used to recreate the index as fast as possible. The size of your workspace impacts the time to reindex the content since every node in it is scanned and all it's config and code are indexed. So hold on for a few minutes until the process finishes. Once it does, we will take you to a page that informs you of the result of the process.", - "updated": 1610353170958 - } - ] -} \ No newline at end of file From 8f6ab2509ab390dab8f77d441adede7a3a5557a8 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 21:14:04 +0100 Subject: [PATCH 8/9] masters fixed --- ...b.json => masters-data-mine-001-bollinger-bands-bb-b.json} | 4 ++-- ...els.json => masters-data-mine-002-bollinger-channels.json} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename Projects/Superalgos/Schemas/Docs-Topics/{bollinger-bands-bb-b.json => masters-data-mine-001-bollinger-bands-bb-b.json} (99%) rename Projects/Superalgos/Schemas/Docs-Topics/{bollinger-channels.json => masters-data-mine-002-bollinger-channels.json} (98%) diff --git a/Projects/Superalgos/Schemas/Docs-Topics/bollinger-bands-bb-b.json b/Projects/Superalgos/Schemas/Docs-Topics/masters-data-mine-001-bollinger-bands-bb-b.json similarity index 99% rename from Projects/Superalgos/Schemas/Docs-Topics/bollinger-bands-bb-b.json rename to Projects/Superalgos/Schemas/Docs-Topics/masters-data-mine-001-bollinger-bands-bb-b.json index d5216924e..b8ea6dda1 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/bollinger-bands-bb-b.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/masters-data-mine-001-bollinger-bands-bb-b.json @@ -1,6 +1,6 @@ { - "topic": "Masters", - "pageNumber": "1", + "topic": "Masters Data Mine", + "pageNumber": 1, "type": "Bollinger Bands (BB - %B)", "definition": { "text": "The indicator produces the Bollinger Bands (BB) and Percentage Bandwith (%B), both in standard settings.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/bollinger-channels.json b/Projects/Superalgos/Schemas/Docs-Topics/masters-data-mine-002-bollinger-channels.json similarity index 98% rename from Projects/Superalgos/Schemas/Docs-Topics/bollinger-channels.json rename to Projects/Superalgos/Schemas/Docs-Topics/masters-data-mine-002-bollinger-channels.json index 835a330da..b0f2ddbf5 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/bollinger-channels.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/masters-data-mine-002-bollinger-channels.json @@ -1,6 +1,6 @@ { - "topic": "Masters", - "pageNumber": "2", + "topic": "Masters Data Mine", + "pageNumber": 2, "type": "Bollinger Channels", "definition": { "text": "The indicator produces the Bollinger Channels and Bollinger Subchannels products.", From bea82e77fae7cc01290689dc35909939881cc0e2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 11 Jan 2021 21:18:27 +0100 Subject: [PATCH 9/9] sykes file names fixed --- .../Docs-Topics/docs-anchor-style.json | 24 ------------------- ...-paragraph-styles-001-docs-text-style.json | 2 +- ...paragraph-styles-002-docs-title-style.json | 2 +- ...agraph-styles-003-docs-subtitle-style.json | 2 +- ...-paragraph-styles-004-docs-note-style.json | 2 +- ...ragraph-styles-005-docs-warning-style.json | 2 +- ...graph-styles-006-docs-important-style.json | 2 +- ...paragraph-styles-007-docs-error-style.json | 2 +- ...ragraph-styles-008-docs-success-style.json | 2 +- ...-paragraph-styles-009-docs-list-style.json | 2 +- ...ragraph-styles-010-docs-callout-style.json | 2 +- ...ragraph-styles-011-docs-summary-style.json | 2 +- ...ragraph-styles-012-docs-js-code-style.json | 2 +- ...graph-styles-013-docs-json-code-style.json | 2 +- ...paragraph-styles-014-docs-table-style.json | 2 +- ...graph-styles-015-docs-hierarchy-style.json | 2 +- ...h-styles-016-docs-web-page-link-style.json | 2 +- ...h-styles-017-docs-youtube-video-style.json | 2 +- ...s-paragraph-styles-018-docs-gif-style.json | 2 +- ...s-paragraph-styles-019-docs-png-style.json | 2 +- ...ragraph-styles-020-docs-section-style.json | 2 +- ...aragraph-styles-021-docs-anchor-style.json | 6 ++--- ...paragraph-styles-022-docs-block-style.json | 2 +- ...ragraph-styles-023-docs-include-style.json | 2 +- ...ragraph-styles-024-docs-chapter-style.json | 2 +- 25 files changed, 26 insertions(+), 50 deletions(-) delete mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs-anchor-style.json diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-anchor-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-anchor-style.json deleted file mode 100644 index 0afd3b76d..000000000 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-anchor-style.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "topic": "Docs Paragraph Styles", - "pageNumber": "21", - "type": "Docs Anchor Style", - "definition": { - "text": "Amchor paragraphs are used together with the Docs Goto Command. When you want to generate a Docs Link to an specific part of a Docs Page, you first need to create an Anchor paragraph in order to be able to create the link to that part of the page.", - "updated": 1609258745310 - }, - "paragraphs": [ - { - "style": "Text", - "text": "To correctly define an Anchor Paragraph, you need to follow the following syntax:", - "updated": 1610387812416 - }, - { - "style": "Javascript", - "text": "Anchor Name" - }, - { - "style": "List", - "text": "Anchor Name: This refers to any name that you would like to give to the newly created Anchor. The name must be unique within the page." - } - ] -} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-001-docs-text-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-001-docs-text-style.json index 4a07d112e..cb70ba0ef 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-001-docs-text-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-001-docs-text-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "1", + "pageNumber": 1, "type": "Docs Text Style", "definition": { "text": "The text style is the one used for content without any particular style applied." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-002-docs-title-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-002-docs-title-style.json index 86c2c6a8f..9eba2f8aa 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-002-docs-title-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-002-docs-title-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "2", + "pageNumber": 2, "type": "Docs Title Style", "definition": { "text": "Use this style to render titles on the docs page." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-003-docs-subtitle-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-003-docs-subtitle-style.json index 53325a9fb..881d4aa0a 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-003-docs-subtitle-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-003-docs-subtitle-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "3", + "pageNumber": 3, "type": "Docs Subtitle Style", "definition": { "text": "This is simply the way to show subtitles within a docs page." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-004-docs-note-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-004-docs-note-style.json index 2f3fcf468..3d17bca28 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-004-docs-note-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-004-docs-note-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "4", + "pageNumber": 4, "type": "Docs Note Style", "definition": { "text": "This style will render in a blue box with the word note as a prefix." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-005-docs-warning-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-005-docs-warning-style.json index 9cf639250..6458a2425 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-005-docs-warning-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-005-docs-warning-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "5", + "pageNumber": 5, "type": "Docs Warning Style", "definition": { "text": "Use this style for boxing text as a warning to readers." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-006-docs-important-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-006-docs-important-style.json index 4ea7a1d40..fbbd79110 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-006-docs-important-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-006-docs-important-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "6", + "pageNumber": 6, "type": "Docs Important Style", "definition": { "text": "Use this style to communicate a tip or something important to the reader." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-007-docs-error-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-007-docs-error-style.json index ff4964676..aa9ac2cc6 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-007-docs-error-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-007-docs-error-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "7", + "pageNumber": 7, "type": "Docs Error Style", "definition": { "text": "This style is used by the system itself to show you when you entered incorrect parameters for some styles. You can use this style as well to show readers errors in the context of what you are explaining to them." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-008-docs-success-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-008-docs-success-style.json index bf618d856..11c32110f 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-008-docs-success-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-008-docs-success-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "8", + "pageNumber": 8, "type": "Docs Success Style", "definition": { "text": "This style will render the text inside a success box." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-009-docs-list-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-009-docs-list-style.json index ca221e07a..1f3811f8d 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-009-docs-list-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-009-docs-list-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "9", + "pageNumber": 9, "type": "Docs List Style", "definition": { "text": "This style will render the text as an item of a bullet point list." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-010-docs-callout-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-010-docs-callout-style.json index 8fb793e80..13e630ee4 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-010-docs-callout-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-010-docs-callout-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "10", + "pageNumber": 10, "type": "Docs Callout Style", "definition": { "text": "A callout paragraph is used to call the attention of readers." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-011-docs-summary-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-011-docs-summary-style.json index 8bb10ba43..64a504fca 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-011-docs-summary-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-011-docs-summary-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "11", + "pageNumber": 11, "type": "Docs Summary Style", "definition": { "text": "Summary paragraphs are usually used at the begining of a page, like in this one." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-012-docs-js-code-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-012-docs-js-code-style.json index bf36e9277..c6c82430d 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-012-docs-js-code-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-012-docs-js-code-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "12", + "pageNumber": 12, "type": "Docs JS Code Style", "definition": { "text": "Use this style to correctly format javascript code." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-013-docs-json-code-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-013-docs-json-code-style.json index 843d3b9cb..1bc0348ff 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-013-docs-json-code-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-013-docs-json-code-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "13", + "pageNumber": 13, "type": "Docs JSON Code Style", "definition": { "text": "Use this style to format JSON code, such as the one in configs." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-014-docs-table-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-014-docs-table-style.json index 37938a5fa..ba6d01cab 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-014-docs-table-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-014-docs-table-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "14", + "pageNumber": 14, "type": "Docs Table Style", "definition": { "text": "It is possible to render table in docs pages. To do so you just need to follow some formatting rules." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-015-docs-hierarchy-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-015-docs-hierarchy-style.json index 3b37f88d4..449a75cb3 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-015-docs-hierarchy-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-015-docs-hierarchy-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "15", + "pageNumber": 15, "type": "Docs Hierarchy Style", "definition": { "text": "It is possible to inject into a docs page, a hierarchy of nodes, starting on a node specified and letting the system to figure out which are it's decendents." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-016-docs-web-page-link-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-016-docs-web-page-link-style.json index 6ad1f9db9..72c1e2eae 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-016-docs-web-page-link-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-016-docs-web-page-link-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "16", + "pageNumber": 16, "type": "Docs Web Page Link Style", "definition": { "text": "Applying this style to a paragraph is the way to create a link to an external website." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-017-docs-youtube-video-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-017-docs-youtube-video-style.json index 961449254..52497d76c 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-017-docs-youtube-video-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-017-docs-youtube-video-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "17", + "pageNumber": 17, "type": "Docs YouTube Video Style", "definition": { "text": "It is possible to embed YouTube videos at a Docs page. All you need to know is to copy and pate the YouTube video id into a paragraph with Youtube style." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-018-docs-gif-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-018-docs-gif-style.json index 39b7ebc4c..7cdf0df18 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-018-docs-gif-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-018-docs-gif-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "18", + "pageNumber": 18, "type": "Docs Gif Style", "definition": { "text": "It is possible to embed gifs at a Docs page. " diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-019-docs-png-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-019-docs-png-style.json index fa14d0e45..ad563ddbe 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-019-docs-png-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-019-docs-png-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "19", + "pageNumber": 19, "type": "Docs Png Style", "definition": { "text": "It is possible to embed PNGs images into a Docs page." diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-020-docs-section-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-020-docs-section-style.json index e95cb5265..13a64c09f 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-020-docs-section-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-020-docs-section-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "20", + "pageNumber": 20, "type": "Docs Section Style", "definition": { "text": "Use this style to divide big areas of a page into different sections.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-021-docs-anchor-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-021-docs-anchor-style.json index d9d04de14..a9cbe9e33 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-021-docs-anchor-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-021-docs-anchor-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "21", + "pageNumber": 21, "type": "Docs Anchor Style", "definition": { "text": "Amchor paragraphs are used together with the Docs Goto Command. When you want to generate a Docs Link to an specific part of a Docs Page, you first need to create an Anchor paragraph in order to be able to create the link to that part of the page.", @@ -9,8 +9,8 @@ "paragraphs": [ { "style": "Text", - "text": "To correctly ddefine an Anchor Paragraph, you need to follow the following syntax:", - "updated": 1609259277591 + "text": "To correctly define an Anchor Paragraph, you need to follow the following syntax:", + "updated": 1610387812416 }, { "style": "Javascript", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-022-docs-block-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-022-docs-block-style.json index 33b1e5eba..e47d70da9 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-022-docs-block-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-022-docs-block-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "22", + "pageNumber": 22, "type": "Docs Block Style", "definition": { "text": "Block paragraphs defines set of paragraphs that can be inclided from other pages. When you include a block by creating a Docs Include Style paragraph, you need to reference a Block paragraph created at the page that have the set of paragraphs to be inclided. A Block contains all the paragraph after itself until the next Block or the end of the page.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-023-docs-include-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-023-docs-include-style.json index 2b3aa92f2..b014257d8 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-023-docs-include-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-023-docs-include-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "23", + "pageNumber": 23, "type": "Docs Include Style", "definition": { "text": "Include paragraphs are used to include into a Docs Page paragraphs that belong to other Docs Pages. In order to do that, you need to reference a Docs Block Style paragraph located in some other Docs Page.", diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-024-docs-chapter-style.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-024-docs-chapter-style.json index 3214cca9a..9adc53a3e 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-024-docs-chapter-style.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-paragraph-styles-024-docs-chapter-style.json @@ -1,6 +1,6 @@ { "topic": "Docs Paragraph Styles", - "pageNumber": "24", + "pageNumber": 24, "type": "Docs Chapter Style", "definition": { "text": "This style is used in Docs Books to define a new chapeter for that book. The style renders in the book's page the index of the Docs Topics referenced.",