nitdoc: use model filters
[nit.git] / src / doc / doc_base.nit
index c77c332..ce36170 100644 (file)
@@ -28,6 +28,8 @@ import model::model_views
 class DocModel
        super ModelView
 
+       autoinit model, mainmodule, filter
+
        # `DocPage` composing the documentation associated to their ids.
        #
        # This is where `DocPhase` store and access pages to produce documentation.
@@ -35,9 +37,6 @@ class DocModel
        # See `add_page`.
        var pages: Map[String, DocPage] = new HashMap[String, DocPage]
 
-       # The entry point of the `model`.
-       var mainmodule: MModule is writable
-
        # Add a `page` to this documentation.
        fun add_page(page: DocPage) do
                if pages.has_key(page.id) then