nitdoc: replace `group:` prefix id by `.group` suffix
[nit.git] / src / doc / doc_phases / doc_hierarchies.nit
index 4aeb52c..ed806e4 100644 (file)
@@ -42,13 +42,13 @@ redef class MModulePage
        redef fun build_inh_list(v, doc) do
                var id = mentity.nitdoc_id
                var section = new ImportationListSection("{id}.importation", mentity)
-               var group = new PanelGroup("group:list", "List")
+               var group = new PanelGroup("list.group", "List")
                var imports = self.imports.to_a
                v.name_sorter.sort(imports)
-               group.add_child new HierarchyListArticle("article:Imports_{id}.hierarchy", mentity, "Imports", imports)
+               group.add_child new HierarchyListArticle("{id}.imports", mentity, "Imports", imports)
                var clients = self.clients.to_a
                v.name_sorter.sort(clients)
-               group.add_child new HierarchyListArticle("article:Clients_{id}.hierarchy", mentity, "Clients", clients)
+               group.add_child new HierarchyListArticle("{id}.clients", mentity, "Clients", clients)
                section.add_child group
                section.parent = root.children.first
                root.children.first.children.insert(section, 1)
@@ -59,19 +59,19 @@ redef class MClassPage
        redef fun build_inh_list(v, doc) do
                var id = mentity.nitdoc_id
                var section = new InheritanceListSection("{id}.inheritance", mentity)
-               var group = new PanelGroup("group:list", "List")
+               var group = new PanelGroup("list.group", "List")
                var parents = self.parents.to_a
                v.name_sorter.sort(parents)
-               group.add_child new HierarchyListArticle("article:Parents_{id}.hierarchy", mentity, "Parents", parents)
+               group.add_child new HierarchyListArticle("{id}.parents", mentity, "Parents", parents)
                var ancestors = self.ancestors.to_a
                v.name_sorter.sort(ancestors)
-               group.add_child new HierarchyListArticle("article:Ancestors_{id}.hierarchy", mentity, "Ancestors", ancestors)
+               group.add_child new HierarchyListArticle("{id}.ancestors", mentity, "Ancestors", ancestors)
                var children = self.children.to_a
                v.name_sorter.sort(children)
-               group.add_child new HierarchyListArticle("article:Children_{id}.hierarchy", mentity, "Children", children)
+               group.add_child new HierarchyListArticle("{id}.children", mentity, "Children", children)
                var descendants = self.descendants.to_a
                v.name_sorter.sort(descendants)
-               group.add_child new HierarchyListArticle("article:Descendants_{id}.hierarchy", mentity, "Descendants", descendants)
+               group.add_child new HierarchyListArticle("{id}.descendants", mentity, "Descendants", descendants)
                section.add_child group
                section.parent = root.children.first
                root.children.first.children.insert(section, 1)