This plugin is a backport of the additional functionality offered in the grails doc command in Grails 2.0.x. It allowsYAML syntax to be used with a table of contents. This also fixes the issue with duplicates in groovy doc by specificallyincluding the src/groovy, src/java and grails-app folders.
grails install-plugin new-doc
See the documentation here