From: Jean-Christophe Beaupré Date: Mon, 1 Dec 2014 19:18:23 +0000 (-0500) Subject: doc: List the inner classes in the side panel. X-Git-Tag: v0.7~89^2~6 X-Git-Url: http://nitlanguage.org?hp=9509edde685c2e6cacaf5bc99db0cac60e99185a doc: List the inner classes in the side panel. Signed-off-by: Jean-Christophe Beaupré --- diff --git a/src/doc/doc_pages.nit b/src/doc/doc_pages.nit index 139952f..4b81d86 100644 --- a/src/doc/doc_pages.nit +++ b/src/doc/doc_pages.nit @@ -1090,6 +1090,9 @@ class NitdocClass tpl_sidebar_list("Virtual types", kind_map["type"].to_a, summary) tpl_sidebar_list("Constructors", kind_map["init"].to_a, summary) tpl_sidebar_list("Methods", kind_map["fun"].to_a, summary) + if not kind_map["inner"].is_empty then + tpl_sidebar_list("Inner classes", kind_map["inner"].to_a, summary) + end tpl_sidebar.boxes.add new TplSideBox.with_content("All properties", summary) end @@ -1277,6 +1280,10 @@ class NitdocClass for article in tpl_mproperty_articles(kind_map, "fun") do section.add_child article end + # inner classes + for article in tpl_mproperty_articles(kind_map, "inner") do + section.add_child article + end parent.add_child section end end