Because some HTML/JS tools do not like `:` in ids...
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
redef class MModulePage
redef fun build_inh_list(v, doc) do
var id = mentity.nitdoc_id
- var section = new ImportationListSection("section:{id}.importation", mentity)
+ var section = new ImportationListSection("{id}.importation", mentity)
var group = new PanelGroup("group:list", "List")
var imports = self.imports.to_a
v.name_sorter.sort(imports)
redef class MClassPage
redef fun build_inh_list(v, doc) do
var id = mentity.nitdoc_id
- var section = new InheritanceListSection("section:{id}.inheritance", mentity)
+ var section = new InheritanceListSection("{id}.inheritance", mentity)
var group = new PanelGroup("group:list", "List")
var parents = self.parents.to_a
v.name_sorter.sort(parents)
# TODO this should move to MEntity?
private fun build_mmodule_list(v: IntroRedefListPhase, doc: DocModel, mmodule: MModule) do
- var section = new IntrosRedefsSection("article:{mentity.nitdoc_id}.intros_redefs", mentity)
+ var section = new IntrosRedefsSection("{mentity.nitdoc_id}.intros_redefs", mentity)
var group = new PanelGroup("group:list", "List")
var intros = mmodule.intro_mclassdefs(v.ctx.min_visibility).to_a
doc.mainmodule.linearize_mclassdefs(intros)
# TODO this should move to MEntity?
private fun build_mclassdef_list(v: IntroRedefListPhase, doc: DocModel, mclassdef: MClassDef) do
- var section = new IntrosRedefsSection("article:{mentity.nitdoc_id}.intros_redefs", mentity)
+ var section = new IntrosRedefsSection("{mentity.nitdoc_id}.intros_redefs", mentity)
var group = new PanelGroup("group:list", "List")
var intros = mclassdef.collect_intro_mpropdefs(v.ctx.min_visibility).to_a
# FIXME avoid diff changes
var mprojects = doc.model.mprojects.to_a
var sorter = new MConcernRankSorter
sorter.sort mprojects
- var section = new ProjectsSection("section:projects")
+ var section = new ProjectsSection("projects.section")
for mproject in mprojects do
section.add_child new DefinitionArticle("article:{mproject.nitdoc_id}.definition", mproject)
end
redef class MGroupPage
redef fun apply_structure(v, doc) do
- var section = new MEntitySection("section:{mentity.nitdoc_name}", mentity)
+ var section = new MEntitySection("{mentity.nitdoc_name}.section", mentity)
root.add_child section
if mentity.is_root then
section.add_child new IntroArticle("article:{mentity.mproject.nitdoc_id}.intro", mentity.mproject)
redef class MModulePage
redef fun apply_structure(v, doc) do
- var section = new MEntitySection("section:{mentity.nitdoc_name}", mentity)
+ var section = new MEntitySection("{mentity.nitdoc_name}.section", mentity)
root.add_child section
section.add_child new IntroArticle("article:{mentity.nitdoc_id}.intro", mentity)
var concerns = self.concerns
redef class MClassPage
redef fun apply_structure(v, doc) do
- var section = new MEntitySection("section:{mentity.nitdoc_name}", mentity)
+ var section = new MEntitySection("{mentity.nitdoc_name}.section", mentity)
root.add_child section
section.add_child new IntroArticle("article:{mentity.nitdoc_id}.intro", mentity)
var concerns = self.concerns
redef class MPropertyPage
redef fun apply_structure(v, doc) do
- var section = new MEntitySection("section:{mentity.nitdoc_name}", mentity)
+ var section = new MEntitySection("{mentity.nitdoc_name}.section", mentity)
root.add_child section
section.add_child new IntroArticle("article:{mentity.nitdoc_id}.intro", mentity)
var concerns = self.concerns