Merge: new `with` statement
[nit.git] / src / doc / doc_phases / doc_graphs.nit
index 906a657..66ef564 100644 (file)
@@ -17,6 +17,7 @@ module doc_graphs
 
 import doc_structure
 import doc_poset
+import html_templates::html_model # FIXME maybe this phase should depend on `html_render`
 
 redef class ToolContext
 
@@ -40,7 +41,8 @@ class GraphPhase
                        if article == null then continue
                        # FIXME avoid diff
                        # page.root.add article
-                       page.root.children[1].children.insert(article, 0)
+                       article.parent = page.root.children.first.children[1]
+                       page.root.children.first.children[1].children.insert(article, 0)
                end
        end
 end