private void renderWiki()

in generator/src/main/groovy/generator/SiteGenerator.groovy [207:236]


    private void renderWiki() {
        def asciidoctor = AsciidoctorFactory.instance
        println "Rendering wiki"

        def wikiDir = new File(sourcesDir, "wiki")
        def gepList = [:]
        wikiDir.eachFileRecurse { f ->
            if (f.name.endsWith('.adoc')) {
                def header = asciidoctor.readDocumentHeader(f)
                def bn = f.name.substring(0, f.name.lastIndexOf('.adoc'))
                def author = header.author?.fullName
                if (!author) {
                    author = header.authors*.fullName.join(', ')
                }
                println "Rendering $header.documentTitle.combined${author ? ' by ' + author : ''}"
                def relativePath = []
                def p = f.parentFile
                while (p != wikiDir) {
                    relativePath << p.name
                    p = p.parentFile
                }
                String baseDir = relativePath ? "wiki${File.separator}${relativePath.join(File.separator)}" : 'wiki'
                render 'wiki', bn, [notes: f.getText('utf-8'), header: header], baseDir
                if (f.name.startsWith('GEP-')) {
                    gepList[bn] = header.documentTitle.subtitle
                }
            }
        }
        render 'geps', "geps", [list: gepList], 'wiki'
    }