Skip to content

Commit

Permalink
The 'grails doc' command now creates an 'all-docs.html' file with lin…
Browse files Browse the repository at this point in the history
…ks to the user guide and API docs, rather than overwriting the index.html for the user/ref guide. Also corrected the link to the frames version of the user guide.
  • Loading branch information
pledbrook committed Feb 14, 2011
1 parent 627d529 commit 2a19843
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/_GrailsDocs.groovy
Expand Up @@ -243,7 +243,7 @@ target(pdf: "Produces PDF documentation") {

event("DocStart", ['pdf'])

PdfBuilder.build(grailsSettings.docsOutputDir.canonicalPath, grailsHome)
PdfBuilder.build(grailsSettings.docsOutputDir.canonicalPath, grailsHome.toString())

createdPdf = true

Expand All @@ -257,7 +257,7 @@ target(createIndex: "Produces an index.html page in the root directory") {
return
}

new File("${grailsSettings.docsOutputDir}/index.html").withWriter { writer ->
new File("${grailsSettings.docsOutputDir}/all-docs.html").withWriter { writer ->
writer.write """\
<html>
Expand All @@ -271,7 +271,7 @@ target(createIndex: "Produces an index.html page in the root directory") {
"""

if (createdManual) {
writer.write '\t\t<a href="guide/index.html">Manual (Frames)</a><br />\n'
writer.write '\t\t<a href="index.html">Manual (Frames)</a><br />\n'
writer.write '\t\t<a href="guide/single.html">Manual (Single)</a><br />\n'
}

Expand Down

0 comments on commit 2a19843

Please sign in to comment.