Skip to content

Commit 2a19843

Browse files
committed
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.
1 parent 627d529 commit 2a19843

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/_GrailsDocs.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ target(pdf: "Produces PDF documentation") {
243243

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

246-
PdfBuilder.build(grailsSettings.docsOutputDir.canonicalPath, grailsHome)
246+
PdfBuilder.build(grailsSettings.docsOutputDir.canonicalPath, grailsHome.toString())
247247

248248
createdPdf = true
249249

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

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

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

0 commit comments

Comments
 (0)