From: Jean Privat Date: Tue, 18 Oct 2011 02:09:48 +0000 (-0400) Subject: nitdoc: improve what classes to put in main summary X-Git-Tag: v0.5~37^2 X-Git-Url: http://nitlanguage.org?hp=838e97a6ce4baeea94a9a192029c4d9eca2b625f nitdoc: improve what classes to put in main summary Signed-off-by: Jean Privat --- diff --git a/src/nitdoc.nit b/src/nitdoc.nit index f568cda..5e69d6b 100644 --- a/src/nitdoc.nit +++ b/src/nitdoc.nit @@ -641,18 +641,13 @@ redef class MMSrcModule dctx.add("\n") dctx.add("\n") for c in new_classes do - if c.global.intro == c then - var add = false - if c.cshe.greaters.is_empty then - add = true - else - for p in c.cshe.direct_greaters do - if not p.global.intro == p then - add = true - end + if c.global.intro == c or owned_modules.has(c.global.intro.mmmodule) then + var add = true + for p in c.cshe.direct_greaters do + if p.global.intro.mmmodule == self or owned_modules.has(p.global.intro.mmmodule) then + add = false end end - if add then dctx.add("\n") end
Main Summary of {self}
Introduce {c.prototype_head(dctx)}{c.html_link(dctx)}{c.prototype_body(dctx)}
{c.short_doc}