nitdoc: adaptation for MDoc
authorJean Privat <jean@pryen.org>
Wed, 19 Mar 2014 19:51:43 +0000 (15:51 -0400)
committerJean Privat <jean@pryen.org>
Thu, 20 Mar 2014 00:15:59 +0000 (20:15 -0400)
The adaptation is minimal.

I tried to write a more complete adaptation but a in-depth rewriting
could be more useful since the new classes MEntity and MDoc should really
simplify things.

Signed-off-by: Jean Privat <jean@pryen.org>

src/nitdoc.nit

index 4eadd19..344aac6 100644 (file)
@@ -1814,7 +1814,7 @@ redef class AModule
 
        private fun full_markdown: String do
                if n_moduledecl != null and n_moduledecl.n_doc != null then
-                       return n_moduledecl.n_doc.full_markdown.write_to_string
+                       return n_moduledecl.n_doc.to_mdoc.full_markdown.write_to_string
                end
                return ""
        end
@@ -1841,7 +1841,7 @@ redef class AStdClassdef
        end
 
        private fun full_markdown: String do
-               if n_doc != null then return n_doc.full_markdown.write_to_string
+               if n_doc != null then return n_doc.to_mdoc.full_markdown.write_to_string
                return ""
        end
 
@@ -1865,7 +1865,7 @@ redef class APropdef
        end
 
        private fun full_markdown: String do
-               if n_doc != null then return n_doc.full_markdown.write_to_string
+               if n_doc != null then return n_doc.to_mdoc.full_markdown.write_to_string
                return ""
        end