nitdoc: do not generate private pages.
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 25 Sep 2014 04:14:02 +0000 (00:14 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Thu, 25 Sep 2014 04:14:02 +0000 (00:14 -0400)
Partially fixes #771

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/doc_pages.nit

index c0a1b2f..73ae262 100644 (file)
@@ -163,6 +163,7 @@ class Nitdoc
 
        private fun classes do
                for mclass in model.mclasses do
+                       if mclass.visibility <= ctx.min_visibility then continue
                        var page = new NitdocClass(ctx, model, mainmodule, mclass)
                        page.render.write_to_file("{ctx.output_dir.to_s}/{page.page_url}")
                end
@@ -170,6 +171,7 @@ class Nitdoc
 
        private fun properties do
                for mproperty in model.mproperties do
+                       if mproperty.visibility <= ctx.min_visibility then continue
                        var page = new NitdocProperty(ctx, model, mainmodule, mproperty)
                        page.render.write_to_file("{ctx.output_dir.to_s}/{page.page_url}")
                end