This gradle plugin supports generating of project documents from asciidoc format:
-
Generate a sane default structure for project documents (readme, license, contributing…)
-
Generate HTML5 specification from asciidoc format (plantuml supported)
-
Generate RevealJS slide dec from asciidoc format
To work with asciidoc, refer to this writer’s guide
This plugin is not available in gradle plugin portal. You can build and push to local or private repositories, for example:
./gradlew clean build
./gradle publishToMavenLocal
Simply decorate your build.gradle with following:
plugins {
id 'com.tna.gradle.docgen-plugin' version '1.0.0-SNAPSHOT'
}
docGen {
documentRoot 'src' //location where you want to store documents for project (presentation, specs...)
projectInfo {
projectName = 'CoolApiV1'
projectVersion = '1.0.0'
projectAuthors = 'Author A, Author B'
contactEmail = 'author@mail.com'
}
}
This plugin has three tasks under documentation
group:
-
docGenDirTemplate
- generate sensible opinionated document structure with template files -
docGenHtml
- generate formated html5 from .adoc file underdocs/asciidoc/specification
-
docGenSlide
- generate RevealJS presentation from .adoc file underdocs/asciidoc/presentation