Skip to content

Commit

Permalink
GRAILS-6484 - support for aliases in documentation (as already mentio…
Browse files Browse the repository at this point in the history
…ned in the Grails docs)
  • Loading branch information
ldaley committed Jul 10, 2010
1 parent b574172 commit 0f3fd0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/_GrailsDocs.groovy
Expand Up @@ -171,6 +171,7 @@ ${m.arguments?.collect { '* @'+GrailsNameUtils.getPropertyName(it)+'@\n' }}
// if this is a plugin obtain additional metadata from the plugin
readPluginMetadataForDocs(publisher)
readDocProperties(publisher)
configureAliases()


publisher.publish()
Expand Down Expand Up @@ -206,6 +207,11 @@ def readDocProperties(DocPublisher publisher) {
readIfSet(publisher,"footer")

}

def configureAliases() {
DocEngine.ALIAS.putAll(config.grails.doc.alias)
}

private readIfSet(DocPublisher publisher,String prop) {
if(config.grails.doc."$prop") {
publisher[prop] = config.grails.doc."$prop"
Expand Down

0 comments on commit 0f3fd0a

Please sign in to comment.