Bug Fixed at search results.

This commit is contained in:
Luis Fernando Molina committed 2021-01-07 10:52:57 +01:00
1 parent 75009ec4ec
commit 7a00e2d6b7
19 files changed
+67 -17

No files matched your search

+1 -1
View File
@@ -619,7 +619,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
const owner = 'Superalgos'
const head = username + ':in-app-documentation'
const base = 'in-app-documentation'
const title = 'Contribution to Superalgos'
const title = 'Contribution: ' + commitMessage
try {
await octokit.pulls.create({
@@ -0,0 +1,16 @@
{
"topic": "Docs Basics",
"pageNumber": "5",
"type": "Docs Tutorial Name",
"definition": {
"text": "Refers to the name of the tutorial, which in turn is a collection of related pages at the Docs.",
"updated": 1609182060836
},
"paragraphs": [
{
"style": "Text",
"text": "Tutorial names are used to group a set of related pages under a certain tutorial. ",
"updated": 1609182145551
}
]
}
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "5",
"pageNumber": "6",
"type": "Docs Page Number",
"definition": {
"text": "Each topic page must have an assigned page number. The page number is used to build the topic index displayed at the top of each Docs Topic Page.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "6",
"pageNumber": "7",
"type": "Docs Node Page",
"definition": {
"text": "Each node of each Project have a corresponding Node Page at the Docs, explaining everything to be known about that node.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "7",
"pageNumber": "8",
"type": "Docs Concept Page",
"definition": {
"text": "Write here a summary for this topic page."
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "8",
"pageNumber": "9",
"type": "Docs Topic Page",
"definition": {
"text": "Write here a summary for this topic page."
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "9",
"pageNumber": "10",
"type": "Docs Page",
"definition": {
"text": "The Docs is a collection of pages classified in 3 different categories: Docs Nodes, Docs Concepts and Docs Topics. A page contains information valuable for the users of the system.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "10",
"pageNumber": "11",
"type": "Docs Paragraoh",
"definition": {
"text": "Write here a summary for this topic page."
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "11",
"pageNumber": "12",
"type": "Docs Page Block",
"definition": {
"text": "A Page Block is a set of paragraphs within a specific Docs Page. A single Docs Page may have 0 to any number of paragraphs.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "12",
"pageNumber": "13",
"type": "Docs Nodes",
"definition": {
"text": "Docs Nodes is the set of all pages in the Docs under the Docs Page Category of Node.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "13",
"pageNumber": "14",
"type": "Docs Concepts",
"definition": {
"text": "Docs Concepts is the set of all pages in the Docs under the Docs Page Category of Concept.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "14",
"pageNumber": "15",
"type": "Docs Topics",
"definition": {
"text": "Docs Topics is the set of all pages in the Docs under the Docs Page Category of Topic.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "15",
"pageNumber": "16",
"type": "Docs Books",
"definition": {
"text": "A book is page in the Docs that contains chapters. Chapters points to a Docs Topics and are rendered as the index table of the topic they point to.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "16",
"pageNumber": "17",
"type": "Docs Paragraph Styles",
"definition": {
"text": "Each paragraph at a Docs Page, need to be assigend a style. The most commonly used style is the Docs Text Style.",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "17",
"pageNumber": "18",
"type": "Docs Search Engine",
"definition": {
"text": "The Docs contains a search engine that allows users to search through the collection of pages.\n",
@@ -1,6 +1,6 @@
{
"topic": "Docs Basics",
"pageNumber": "18",
"pageNumber": "19",
"type": "Docs Search Engine Index",
"definition": {
"text": "The Docs Search Engine builds an in-memory index that contains all the phrases of all Docs Pages, plus the name, type, config and code of all nodes of the current Workspace.",
@@ -1,7 +1,7 @@
{
"topic": "Docs Commands Errors",
"pageNumber": "15",
"type": "Docs Error Toopic Mismatch",
"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.",
"updated": 1609181659359
@@ -0,0 +1,34 @@
{
"topic": "Docs Commands Errors",
"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.",
"updated": 1610012937766
},
"paragraphs": [
{
"style": "Anchor",
"text": "Anchor Topic Mismatch",
"updated": 1609181600300
},
{
"style": "Error",
"text": "Tutorial Mismatch. The Docs Tutorial Name provided does not match the Docs Tutorial Name of the page to be deleted.",
"updated": 1610012998692
},
{
"style": "Success",
"text": "Check the page you want to delete and get the right Docs Tutorial Name to use at the command.",
"updated": 1610013007982
},
{
"style": "Title",
"text": "Applies to"
},
{
"style": "List",
"text": "Docs Delete Command"
}
]
}
@@ -256,7 +256,7 @@ function newSuperalgosDocsSearchResultsPage() {
let mainLink = ''
switch (result.documentIndex.docsSchemaDocument.type) {
switch (result.documentIndex.category) {
case 'Topic': {
mainLink = result.documentIndex.docsSchemaDocument.topic + ' - Page ' + result.documentIndex.docsSchemaDocument.pageNumber + ' - ' + result.documentIndex.docsSchemaDocument.type
break