Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-M1
-
Fix Version/s: 2.0-RC1
-
Component/s: Documentation
-
Labels:None
-
Environment:Windows 7 x64
Description
On Windows using the documentation stated in chapter 3 of the online docs for 2.0.0.M1, I am getting "No TOC entry found for..." messages in the console when running the grails doc command.
Looks like the files in gdocFilesInToc in DocPublisher were using '\' as the path separator (windows), and the actual section references from the generated toc in DocPublisher are using '/' as the path separator. Found the root cause in grails-docs/src/main/groovy/grails/doc/internal/YamlTocStrategy.groovy using '/' constant instead of File.separator for the file system dependent separator. Made the fix and submitting pull request to grails-core/grails-doc on github.
https://github.com/grails/grails-core/pull/102