X-Git-Url: http://nitlanguage.org diff --git a/src/doc/html_templates/html_templates.nit b/src/doc/html_templates/html_templates.nit index 1aa3c02..8849fb3 100644 --- a/src/doc/html_templates/html_templates.nit +++ b/src/doc/html_templates/html_templates.nit @@ -21,6 +21,7 @@ import doc_phases::doc_structure import doc_phases::doc_hierarchies import doc_phases::doc_graphs import doc_phases::doc_intros_redefs +import doc_phases::doc_lin # Renders the page as HTML. redef class DocPage @@ -41,22 +42,12 @@ redef class DocPage # Sidebar template if any. var sidebar: nullable DocSideBar = null is writable - # Content of the page in form a TplSection. - # TODO remove when other templates are migrated. - var sections = new Array[TplSection] - # Footer content if any. var footer: nullable Writable = null is writable # JS scripts to append at the end of the body var scripts = new Array[TplScript] - # Adds a section to this page. - # TODO remove when other templates are migrated. - fun add_section(section: TplSection) do - sections.add section - end - # Renders the html ``. private fun render_head do var css = (self.shareurl / "css").html_escape @@ -81,7 +72,7 @@ redef class DocPage # Renders the footer and content. private fun render_content do - for section in sections do add section + add root if footer != null then addn "