nitweb: replace default md_processor so nitweb can render README files
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 25 Aug 2016 19:46:38 +0000 (15:46 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 2 Sep 2016 14:45:27 +0000 (10:45 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/nitweb.nit

index 071a2af..419f257 100644 (file)
@@ -19,6 +19,7 @@ import popcorn::pop_config
 import popcorn::pop_auth
 import frontend
 import web
+import doc::doc_down
 
 redef class NitwebConfig
 
@@ -80,6 +81,7 @@ private class NitwebPhase
        redef fun process_mainmodule(mainmodule, mmodules)
        do
                var config = build_config(toolcontext, mainmodule)
+               config.model.nitdoc_md_processor = config.md_processor
 
                var app = new App