Showing Content

This commit is contained in:
Luis Fernando Molina committed 2020-12-08 17:38:56 +01:00
1 parent 57f3c07880
commit 12c457975f
2 files changed
+25 -1

No files matched your search

@@ -68,6 +68,11 @@ function newSuperalgosDocSpace() {
function buildNodeHtmlPage() {
let HTML = ''
/* Title */
HTML = HTML + '<div><h1 class="docs-font-large" id="' + node.type.toLowerCase().replace(' ', '-') + '" > ' + node.type + '</h1></div>'
/* We start with the Definition Table */
if (nodeDocsDefinition.definition !== undefined) {
HTML = HTML + '<table class="docs-definitionTable">'
HTML = HTML + '<tr>'
@@ -81,6 +86,14 @@ function newSuperalgosDocSpace() {
HTML = HTML + '</table>'
}
/* Here we add the contend defined for this node */
if (nodeDocsDefinition.content !== undefined) {
for (let i = 0; i < nodeDocsDefinition.content.length; i++) {
let paragraph = nodeDocsDefinition.content[i]
HTML = HTML + '<p>' + paragraph + '</p>'
}
}
let docsAppDiv = document.getElementById('docsDiv')
docsAppDiv.innerHTML = HTML