Merge: Use links in nitlight --no-infobox
[nit.git] / src / nitdoc.nit
index 9d31058..94132ff 100644 (file)
@@ -46,8 +46,11 @@ private class Nitdoc
                var accept_attribute = true
                if toolcontext.opt_no_attributes.value then accept_attribute = false
 
-               var filters = new ModelFilter(min_visibility, accept_attribute = accept_attribute)
-               var doc = new DocModel(mainmodule.model, mainmodule, filters)
+               var filters = new ModelFilter(
+                       min_visibility,
+                       accept_attribute = accept_attribute,
+                       accept_fictive = false)
+               var doc = new DocModel(toolcontext.modelbuilder.model, mainmodule, filters)
 
                var phases = [
                        new IndexingPhase(toolcontext, doc),