X-Git-Url: http://nitlanguage.org diff --git a/src/nitcatalog.nit b/src/nitcatalog.nit index 9066e0f..629222a 100644 --- a/src/nitcatalog.nit +++ b/src/nitcatalog.nit @@ -187,7 +187,7 @@ redef class Catalog do # Register `self` to the global NitdocDecorator # FIXME this is ugly. But no better idea at the moment. - modelbuilder.model.nitdoc_md_processor.emitter.decorator.as(NitdocDecorator).catalog = self + modelbuilder.model.nitdoc_md_processor.decorator.as(NitdocDecorator).catalog = self end # The output directory where to generate pages @@ -232,12 +232,19 @@ redef class Catalog var name = mpackage.name.html_escape res.more_head.add """{{{name}}}""" - res.add """ -
-

{{{name}}}

-""" + res.add """
""" + var mdoc = mpackage.mdoc_or_fallback - if mdoc != null then res.add mdoc.html_documentation + if mdoc == null then + res.add """

{{{name}}}

""" + else + res.add """ +
+

{{{name}}} - 

+
+""" + res.add mdoc.html_documentation + end res.add "

Content

" var ot = new OrderedTree[MConcern] @@ -260,12 +267,12 @@ redef class Catalog