         classPrefix: ""
 
 pkg = require "../../package.json"
+index = require "../index.json"
 
 oMarkdownCompilationOptions =
     gfm: yes


        # 2. generate navigation menu
        ( $menu = $ "#wrapper header nav > ul" ).empty()
        for sChapterName in aChapters
            iChapters++
            ( $chapterNav = $ "<li><strong></strong><ul></ul></li>" )
                .find( "strong" )
                    .text( sChapterName.toLowerCase() )
            $chapterTopicsNav = $chapterNav.find "ul"
            for sTopicName, sContent of oDocChapters[ sChapterName ]
                iTopics++
                ( $topicNavLink = $ "<li><a></a></li>" )
                    .find( "a" )


    grunt.registerTask "generate", "Generate Kouto Swiss documentation page.", ->
        sDocFilePath = "docs/docs.html"
        oDocChapters = {}
        iChapters = index.chapters.length
        iTopics = 0
        # 1. get all the markdown doc files
        grunt.file.recurse "./_docs", ( sAbsolutePath, sRootDir, sSubDir, sFilename ) ->
