src: mass rename project->package
[nit.git] / src / doc / console_templates / console_templates.nit
index e94a388..fbeea29 100644 (file)
@@ -35,7 +35,7 @@ redef class DocComposite
        # Title that can be decorated for console display.
        #
        # Set as `null` if you don't want to display a title.
-       var cs_title: nullable String is noinit, writable
+       var cs_title: nullable String is writable, lazy do return title
 
        # Subtitle that can be decorated for console display.
        #
@@ -73,7 +73,7 @@ redef class ConcernSection
 
        redef fun rendering do
                var mentity = self.mentity
-               if mentity isa MGroup and mentity.mproject.root == mentity then
+               if mentity isa MGroup and mentity.mpackage.root == mentity then
                        render_body
                else
                        super
@@ -87,9 +87,6 @@ redef class MEntityComposite
 end
 
 redef class IntroArticle
-       redef var cs_title = null
-       redef var cs_subtitle = null
-
        redef fun render_body do
                addn "    {mentity.cs_declaration.bold}"
                addn "    {mentity.cs_location.gray.bold}"
@@ -104,9 +101,6 @@ redef class IntroArticle
 end
 
 redef class ConcernsArticle
-       redef var cs_title = "Concerns"
-       redef var cs_subtitle = null
-
        redef fun render_body do
                var w = new StringWriter
                concerns.write_to(w)
@@ -135,3 +129,11 @@ redef class DefinitionArticle
                super
        end
 end
+
+redef class MEntitiesListArticle
+       redef fun render_body do
+               for mentity in mentities do
+                       addn mentity.cs_short_list_item
+               end
+       end
+end