From 2a1984304d9889d1433ef0ab782555d8fdfe0a9b Mon Sep 17 00:00:00 2001 From: Peter Ledbrook Date: Mon, 14 Feb 2011 14:24:13 +0000 Subject: [PATCH] The 'grails doc' command now creates an 'all-docs.html' file with links 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. --- scripts/_GrailsDocs.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_GrailsDocs.groovy b/scripts/_GrailsDocs.groovy index a725c7e5fb7..d4991d350f7 100644 --- a/scripts/_GrailsDocs.groovy +++ b/scripts/_GrailsDocs.groovy @@ -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 @@ -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 """\ @@ -271,7 +271,7 @@ target(createIndex: "Produces an index.html page in the root directory") { """ if (createdManual) { - writer.write '\t\tManual (Frames)
\n' + writer.write '\t\tManual (Frames)
\n' writer.write '\t\tManual (Single)
\n' }