nitdoc: remove useless class IntrosRedefsSection
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 28 May 2015 15:18:49 +0000 (11:18 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 29 May 2015 23:05:56 +0000 (19:05 -0400)
This class was used to customize the generation of this particular section and limit the diff with the original nitdoc output.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/doc_phases/doc_intros_redefs.nit
src/doc/html_templates/html_templates.nit

index 3e70773..ae341f9 100644 (file)
@@ -54,7 +54,8 @@ redef class DefinitionArticle
 
        # TODO this should move to MEntity?
        private fun build_mmodule_list(v: IntroRedefListPhase, doc: DocModel, mmodule: MModule) do
-               var section = new IntrosRedefsSection("{mentity.nitdoc_id}.intros_redefs", mentity)
+               var section = new TabbedGroup("{mentity.nitdoc_id}.intros_redefs")
+               section.toc_title = "Intros / Redefs"
                var group = new PanelGroup("list.group", "List")
                var intros = mmodule.intro_mclassdefs(v.ctx.min_visibility).to_a
                doc.mainmodule.linearize_mclassdefs(intros)
@@ -68,7 +69,8 @@ redef class DefinitionArticle
 
        # TODO this should move to MEntity?
        private fun build_mclassdef_list(v: IntroRedefListPhase, doc: DocModel, mclassdef: MClassDef) do
-               var section = new IntrosRedefsSection("{mentity.nitdoc_id}.intros_redefs", mentity)
+               var section = new TabbedGroup("{mentity.nitdoc_id}.intros_redefs")
+               section.toc_title = "Intros / Redefs"
                var group = new PanelGroup("list.group", "List")
                var intros = mclassdef.collect_intro_mpropdefs(v.ctx.min_visibility).to_a
                # FIXME avoid diff changes
@@ -81,13 +83,4 @@ redef class DefinitionArticle
                section.add_child group
                add_child(section)
        end
-
-end
-
-# Section that contains the intros and redefs lists.
-class IntrosRedefsSection
-       super TabbedGroup
-       super MEntitySection
-
-       redef var is_toc_hidden = true
 end
index 9e495fb..2415794 100644 (file)
@@ -529,12 +529,6 @@ redef class DefinitionArticle
        end
 end
 
-redef class IntrosRedefsSection
-       redef var toc_title do return "Intros / Redefs"
-       redef var html_title = null
-       redef var html_subtitle = null
-end
-
 redef class MEntitiesListArticle
        redef fun render_body do
                var lst = new UnorderedList