redef class DocSection
super BSComponent
+ redef fun css_classes do return new Array[String]
+
redef fun rendering do
if is_hidden then
addn "<a id=\"{html_id}\"></a>"
redef class DocArticle
super BSComponent
+ redef fun css_classes do return new Array[String]
+
redef fun rendering do
if is_hidden then return
addn "<article{render_css_classes} id=\"{html_id}\">"
redef fun render_body do
var tabs = new DocTabs("{html_id}.tabs", "")
var comment = mentity.html_documentation
- if mentity isa MProject then
+ if mentity isa MPackage then
comment = mentity.html_synopsis
end
if comment != null then
var tabs = new DocTabs("{html_id}.tabs", "")
if not is_no_body then
var comment
- if is_short_comment or mentity isa MProject then
+ if is_short_comment or mentity isa MPackage then
comment = mentity.html_synopsis
else
comment = mentity.html_documentation
redef class ReadmeSection
redef var html_id is lazy do
- return markdown_processor.emitter.decorator.strip_id(html_title.as(not null).to_s)
+ return markdown_processor.decorator.strip_id(html_title.as(not null).to_s)
end
redef var html_title is lazy do