nitdoc: replace `group:` prefix id by `.group` suffix
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 26 May 2015 20:44:58 +0000 (16:44 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 29 May 2015 23:02:40 +0000 (19:02 -0400)
Because some HTML/JS tools do not like `:` in ids...

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/doc_phases/doc_hierarchies.nit
src/doc/doc_phases/doc_intros_redefs.nit

index 487f411..ed806e4 100644 (file)
@@ -42,7 +42,7 @@ 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("{id}.imports", mentity, "Imports", imports)
@@ -59,7 +59,7 @@ 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("{id}.parents", mentity, "Parents", parents)
index b1e6e20..77066f0 100644 (file)
@@ -55,7 +55,7 @@ redef class DefinitionArticle
        # TODO this should move to MEntity?
        private fun build_mmodule_list(v: IntroRedefListPhase, doc: DocModel, mmodule: MModule) do
                var section = new IntrosRedefsSection("{mentity.nitdoc_id}.intros_redefs", mentity)
-               var group = new PanelGroup("group:list", "List")
+               var group = new PanelGroup("list.group", "List")
                var intros = mmodule.intro_mclassdefs(v.ctx.min_visibility).to_a
                doc.mainmodule.linearize_mclassdefs(intros)
                group.add_child new IntrosRedefsListArticle("{mentity.nitdoc_id}.intros", mentity, "Introduces", intros)
@@ -69,7 +69,7 @@ redef class DefinitionArticle
        # TODO this should move to MEntity?
        private fun build_mclassdef_list(v: IntroRedefListPhase, doc: DocModel, mclassdef: MClassDef) do
                var section = new IntrosRedefsSection("{mentity.nitdoc_id}.intros_redefs", mentity)
-               var group = new PanelGroup("group:list", "List")
+               var group = new PanelGroup("list.group", "List")
                var intros = mclassdef.collect_intro_mpropdefs(v.ctx.min_visibility).to_a
                # FIXME avoid diff changes
                # v.ctx.mainmodule.linearize_mpropdefs(intros)