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