nitdoc: remove useless class ProjectsSection
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 28 May 2015 15:04:35 +0000 (11:04 -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_structure.nit
src/doc/html_templates/html_templates.nit

index abba732..65d9f59 100644 (file)
@@ -53,7 +53,7 @@ redef class OverviewPage
                var mprojects = doc.model.mprojects.to_a
                var sorter = new MConcernRankSorter
                sorter.sort mprojects
-               var section = new ProjectsSection("projects.section", "Projects")
+               var section = new DocSection("projects.section", "Projects")
                for mproject in mprojects do
                        section.add_child new DefinitionArticle("{mproject.nitdoc_id}.definition", mproject)
                end
@@ -388,11 +388,6 @@ class HomeArticle
        super DocArticle
 end
 
-# The project list.
-class ProjectsSection
-       super DocArticle
-end
-
 # An article that display an index of mmodules, mclasses and mproperties.
 class IndexArticle
        super DocArticle
index 9fa52e5..e6dc436 100644 (file)
@@ -423,10 +423,6 @@ redef class IndexArticle
        end
 end
 
-redef class ProjectsSection
-       redef var html_title = "Projects"
-end
-
 redef class MEntityComposite
        redef var html_title is lazy do return mentity.nitdoc_name
 end