forked from robfletcher/spock-extensions
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sp-5: Provide a publicly available Groovydoc
Cosmetics
- Loading branch information
1 parent
0b0483d
commit cae0de2
Showing
4 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import java.text.SimpleDateFormat | ||
|
||
/** | ||
* http://gradle.org/docs/current/dsl/org.gradle.api.tasks.javadoc.Groovydoc.html | ||
*/ | ||
|
||
def d = new Date() | ||
def time = new SimpleDateFormat( "HH:mm '(GMT'Z')'" ).format( d ) | ||
def date = new SimpleDateFormat( 'MMMM dd, yyyy' ).format( d ) | ||
|
||
groovydoc { | ||
use = true | ||
groovyClasspath = configurations.compile // http://issues.gradle.org/browse/GRADLE-1391 | ||
destinationDir = new File(( System.getProperty( 'groovydocDir' ) ?: project.buildDir.path + '/groovydoc' ), | ||
( project.version.contains( '-SNAPSHOT' ) ? '' : project.version )) | ||
header = '<a href="http://evgeny-goldin.com/wiki/Spock-extensions">evgeny-goldin.com/wiki/Spock-extensions</a>' | ||
footer = '<a href="http://evgeny-goldin.com/">Evgeny Goldin</a>. GrovyDoc was generated at ' + "$time on $date." + """ | ||
<script type="text/javascript"> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-7925869-2']); | ||
_gaq.push(['_setDomainName', 'none']); | ||
_gaq.push(['_setAllowLinker', true]); | ||
_gaq.push(['_trackPageview']); | ||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
</script> | ||
""" | ||
link 'http://download.oracle.com/javase/6/docs/api/', 'java.' | ||
link 'http://evgeny-goldin.org/javadoc/spock-core/', 'spock.', 'org.spockframework' | ||
link 'http://groovy.codehaus.org/api/', 'groovy.', 'org.codehaus.groovy.' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters