Update DocsSpace.js

This commit is contained in:
Luis Fernando Molina committed 2020-12-08 18:04:16 +01:00
1 parent 12c457975f
commit 957aac38dd
1 file changed
+28 -1
@@ -86,7 +86,7 @@ function newSuperalgosDocSpace() {
HTML = HTML + '</table>'
}
/* Here we add the contend defined for this node */
/* Content Section */
if (nodeDocsDefinition.content !== undefined) {
for (let i = 0; i < nodeDocsDefinition.content.length; i++) {
let paragraph = nodeDocsDefinition.content[i]
@@ -94,6 +94,33 @@ function newSuperalgosDocSpace() {
}
}
/* Adding Section */
if (nodeDocsDefinition.adding !== undefined) {
HTML = HTML + '<h2>Adding a ' + node.type + '</h2>'
for (let i = 0; i < nodeDocsDefinition.adding.length; i++) {
let paragraph = nodeDocsDefinition.adding[i]
HTML = HTML + '<p>' + paragraph + '</p>'
}
}
/* Configuring Section */
if (nodeDocsDefinition.configuring !== undefined) {
HTML = HTML + '<h2>Configuring a ' + node.type + '</h2>'
for (let i = 0; i < nodeDocsDefinition.configuring.length; i++) {
let paragraph = nodeDocsDefinition.configuring[i]
HTML = HTML + '<p>' + paragraph + '</p>'
}
}
/* Starting Section */
if (nodeDocsDefinition.starting !== undefined) {
HTML = HTML + '<h2>Configuring a ' + node.type + '</h2>'
for (let i = 0; i < nodeDocsDefinition.starting.length; i++) {
let paragraph = nodeDocsDefinition.starting[i]
HTML = HTML + '<p>' + paragraph + '</p>'
}
}
let docsAppDiv = document.getElementById('docsDiv')
docsAppDiv.innerHTML = HTML