diff --git a/Client/WebServer/css/docs.css b/Client/WebServer/css/docs.css index 97721d83d..3e415e7b8 100644 --- a/Client/WebServer/css/docs.css +++ b/Client/WebServer/css/docs.css @@ -325,16 +325,16 @@ box-sizing: border-box; } .docs-topic-index h2 { - font-size: 170%; + font-size: 130%; font-weight: 300; - margin: 20px -5px; + margin: 10px 0 35 -5; padding: 0px; } .docs-topic-index h3 { font-size: 150%; font-weight: 300; - margin: 20px 0; + margin: 25px 0; padding: 0px; } @@ -428,7 +428,7 @@ width: 100%; display: table; width: 100%; vertical-align: middle; - margin: 60px 0 0 0; + margin: 80px 0 0 0; /* border-top: 1px solid rgba(54, 85, 88, .3); margin: 60px 0 0 0; diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js index f815fc56e..f8ca1a236 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocumentPage.js @@ -181,9 +181,9 @@ function newSuperalgosDocsDocumentPage() { HTML = HTML = HTML + '
' // Container for Topic Navigation including buttons, title and index - HTML = HTML + '

' + thisObject.docsSchemaDocument.topic + ' Table of Contents

' + HTML = HTML + '

' + thisObject.docsSchemaDocument.topic + ' — TOC

' - HTML = HTML + '

You just read page ' + thisObject.docsSchemaDocument.pageNumber + ' in the series.

' + HTML = HTML + '

You just read page ' + thisObject.docsSchemaDocument.pageNumber + ' in the topic.

' generateTopicMultiPageIndex() @@ -194,17 +194,18 @@ function newSuperalgosDocsDocumentPage() { buildOrderedTutorialPageIndex(thisObject.docsSchemaDocument.tutorial) - HTML = HTML = HTML + '
' // Container for Topic Navigation including buttons, title and index - - /* Tutorial Title */ + /* Tutorial Title titleLabel = thisObject.docsSchemaDocument.tutorial + ' Tutorial Navigation' HTML = HTML + '

' + titleLabel + '

' - + */ + generateTutorialPreviousAndNextPageNavigation() - /* TOC*/ + HTML = HTML = HTML + '
' // Container for Tutorial Navigation including buttons, title and index - HTML = HTML + '

Table of Contents

' + HTML = HTML + '

' + thisObject.docsSchemaDocument.tutorial + ' — TOC

' + + HTML = HTML + '

You just did step ' + thisObject.docsSchemaDocument.pageNumber + ' in the tutorial.

' generateTutorialMultiPageIndex() @@ -388,13 +389,13 @@ function newSuperalgosDocsDocumentPage() { previousPage = orderedTutorialPageIndexArray[i - 1] nextPage = orderedTutorialPageIndexArray[i + 1] - HTML = HTML + '
' + HTML = HTML + '
' if (previousPage !== undefined) { - HTML = HTML + '' + HTML = HTML + '
'+ previousPage.type } - HTML = HTML + '
<< Current Page: ' + thisObject.docsSchemaDocument.pageNumber + ' >>
' + HTML = HTML + '
' if (nextPage !== undefined) { - HTML = HTML + '' + HTML = HTML + '
' + nextPage.type } HTML = HTML + '
' return @@ -419,7 +420,7 @@ function newSuperalgosDocsDocumentPage() { text: "" + arrayItem.type + "" } autoGeneratedParagraphIndex++ - HTML = HTML + '

' + arrayItem.pageNumber + '. ' + '' + paragraph.text + '

' + HTML = HTML + '

' + arrayItem.pageNumber + '. ' + '' + paragraph.text + '

' } } @@ -570,6 +571,8 @@ function newSuperalgosDocsDocumentPage() { let chapterName = splittedChapterText[3] let introText = splittedChapterText[4] + + if (project === undefined || category === undefined || chapterNumber === undefined || chapterName === undefined) { return 'Chapter paragraph style Syntax Error. Some of the required parameters are undefined. Check the Docs Chapter Style Syntax. This error message will dissapear as soon as you fix the problem.' } @@ -577,7 +580,7 @@ function newSuperalgosDocsDocumentPage() { if (SCHEMAS_BY_PROJECT.get(project) === undefined) { return 'Chapter paragraph style Syntax Error. The Project ' + project + ' could not be found. Check the Docs Chapter Style Syntax. This error message will dissapear as soon as you fix the problem.' } - + if (category !== 'Topic' && category !== 'Tutorial') { return 'Category must be either Topic or Tutorial. Found: ' + category + '' } @@ -601,13 +604,18 @@ function newSuperalgosDocsDocumentPage() { } } + HTML = HTML = HTML + '
' // Container for Topic Index + let key = 'auto-generated-paragraph-' + autoGeneratedParagraphIndex paragraph = { style: "Title", text: 'Chapter ' + chapterNumber + ' - ' + chapterName } + + HTML = HTML + '

' renderParagraph(paragraph, key) autoGeneratedParagraphIndex++ + HTML = HTML + '

' if (introText !== undefined) { let key = 'auto-generated-paragraph-' + autoGeneratedParagraphIndex @@ -615,11 +623,13 @@ function newSuperalgosDocsDocumentPage() { style: "Text", text: introText } + HTML = HTML + '

' renderParagraph(paragraph, key) autoGeneratedParagraphIndex++ + HTML = HTML + '

' } - HTML = HTML = HTML + '
' // Container for Topic Index + HTML = HTML + '

Table of Contents

' switch (category) { case 'Topic': { @@ -632,7 +642,7 @@ function newSuperalgosDocsDocumentPage() { } } - HTML = HTML = HTML + '
' // Container for whole Topic Index + HTML = HTML = HTML + '
' // Container for Topic Index } }