From 269bee9e2f56c8cb3fb8277e673d9c7d7fbef02e Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Thu, 28 May 2015 11:06:56 -0400 Subject: [PATCH 1/1] nitdoc: remove useless class ConstructorsSection 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 --- src/doc/console_templates/console_templates.nit | 5 ----- src/doc/doc_phases/doc_structure.nit | 8 +------- src/doc/html_templates/html_templates.nit | 5 ----- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/doc/console_templates/console_templates.nit b/src/doc/console_templates/console_templates.nit index 45bc33e..e94a388 100644 --- a/src/doc/console_templates/console_templates.nit +++ b/src/doc/console_templates/console_templates.nit @@ -81,11 +81,6 @@ redef class ConcernSection end end -redef class ConstructorsSection - redef var cs_title = "Constructors" - redef var cs_subtitle = null -end - redef class MEntityComposite redef var cs_title is lazy do return mentity.cs_name redef var cs_subtitle is lazy do return mentity.cs_namespace diff --git a/src/doc/doc_phases/doc_structure.nit b/src/doc/doc_phases/doc_structure.nit index 65d9f59..20a5eef 100644 --- a/src/doc/doc_phases/doc_structure.nit +++ b/src/doc/doc_phases/doc_structure.nit @@ -181,8 +181,7 @@ redef class MClassPage mentity.intro_mmodule.mgroup.mproject.booster_rank = 0 mentity.intro_mmodule.mgroup.booster_rank = 0 mentity.intro_mmodule.booster_rank = 0 - var constructors = new ConstructorsSection( - "{mentity.nitdoc_id}.constructors", mentity) + var constructors = new DocSection("{mentity.nitdoc_id}.constructors", "Constructors") var minit = mentity.root_init if minit != null then constructors.add_child new DefinitionArticle("{minit.nitdoc_id}.definition", minit) @@ -307,11 +306,6 @@ class MEntityComposite var mentity: MEntity end -# A list of constructors. -class ConstructorsSection - super MEntitySection -end - # A Section about a Concern. # # Those sections are used to build the page summary. diff --git a/src/doc/html_templates/html_templates.nit b/src/doc/html_templates/html_templates.nit index e6dc436..9e495fb 100644 --- a/src/doc/html_templates/html_templates.nit +++ b/src/doc/html_templates/html_templates.nit @@ -432,11 +432,6 @@ redef class MEntitySection redef var html_subtitle is lazy do return mentity.html_declaration end -redef class ConstructorsSection - redef var html_title = "Constructors" - redef var html_subtitle = null -end - redef class ConcernSection redef var html_title is lazy do return "in {mentity.nitdoc_name}" end -- 1.7.9.5