src/doc: make GraphArticle a MEntity article since the graph is about a specific...
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 17 Feb 2015 17:49:42 +0000 (18:49 +0100)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 18 Feb 2015 02:11:53 +0000 (03:11 +0100)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/doc_phases/doc_graphs.nit

index 6013088..906a657 100644 (file)
@@ -15,6 +15,7 @@
 # Adds importation and class hierarchy graphs.
 module doc_graphs
 
+import doc_structure
 import doc_poset
 
 redef class ToolContext
@@ -70,7 +71,7 @@ redef class MModulePage
                        end
                end
                op.append("\}\n")
-               return new GraphArticle(name, op)
+               return new GraphArticle(mentity, name, op)
        end
 end
 
@@ -104,7 +105,7 @@ redef class MClassPage
                        end
                end
                op.append("\}\n")
-               return new GraphArticle(name, op)
+               return new GraphArticle(mentity, name, op)
        end
 end
 
@@ -113,7 +114,7 @@ end
 # The graph is stored in dot format.
 # The final output is delayed untill rendering.
 class GraphArticle
-       super DocComposite
+       super MEntityComposite
 
        # Graph ID (used for outputing file with names).
        var id: String