ni_nitdoc: Add function to generate Overview Page
authorStefan Lage <lagestfan@gmail.com>
Thu, 27 Jun 2013 20:50:11 +0000 (16:50 -0400)
committerStefan Lage <lagestfan@gmail.com>
Wed, 3 Jul 2013 20:54:21 +0000 (16:54 -0400)
Create a function to generate the overview page during nitdoc process

Signed-off-by: Stefan Lage <lagestfan@gmail.com>

src/ni_nitdoc.nit

index c5a957a..ecaa9b4 100644 (file)
@@ -93,8 +93,15 @@ class Nitdoc
                        # Create destination dir if it's necessary
                        if not destinationdir.file_exists then destinationdir.mkdir
                        sys.system("cp -r {sharedir.to_s}/* {destinationdir.to_s}/")
+                       overview
                end
        end
+
+       fun overview do
+               var overviewpage = new NitdocOverview.with(modelbuilder.nmodules, self.opt_nodot.value, destinationdir.to_s)
+               overviewpage.save("{destinationdir.to_s}/index.html")
+       end
+
 end
 
 class NitdocOverview