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>
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
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
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