nitdoc: introduce TabbedGroup and PanelGroup composite
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 24 Apr 2015 16:00:43 +0000 (12:00 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 11 May 2015 20:43:53 +0000 (16:43 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/doc_phases/doc_structure.nit

index fc2dc17..d392961 100644 (file)
@@ -266,6 +266,21 @@ redef class MPropertyPage
        end
 end
 
+# A group of sections that can be displayed together in a tab.
+#
+# Display the first child and hide less relevant data in other panels.
+class TabbedGroup
+       super DocSection
+end
+
+# A group of sections that can be displayed together in a tab panel.
+class PanelGroup
+       super DocSection
+
+       # The title of this group.
+       var group_title: String
+end
+
 # A DocComposite element about a MEntity.
 class MEntityComposite
        super DocComposite
@@ -316,6 +331,7 @@ end
 
 # An article that displaus a list of definition belonging to a MEntity.
 class DefinitionListArticle
+       super TabbedGroup
        super MEntityArticle
 end