nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: mass rename project->package
[nit.git]
/
src
/
doc
/
console_templates
/
console_templates.nit
diff --git
a/src/doc/console_templates/console_templates.nit
b/src/doc/console_templates/console_templates.nit
index
45bc33e
..
fbeea29
100644
(file)
--- a/
src/doc/console_templates/console_templates.nit
+++ b/
src/doc/console_templates/console_templates.nit
@@
-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.
# 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.
#
# Subtitle that can be decorated for console display.
#
@@
-73,7
+73,7
@@
redef class ConcernSection
redef fun rendering do
var mentity = self.mentity
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
render_body
else
super
@@
-81,20
+81,12
@@
redef class ConcernSection
end
end
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
end
redef class IntroArticle
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
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}"
redef fun render_body do
addn " {mentity.cs_declaration.bold}"
addn " {mentity.cs_location.gray.bold}"
@@
-109,9
+101,6
@@
redef class IntroArticle
end
redef class ConcernsArticle
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)
redef fun render_body do
var w = new StringWriter
concerns.write_to(w)
@@
-140,3
+129,11
@@
redef class DefinitionArticle
super
end
end
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