How to access the project documentation pages created using Gdoc in grails
grails doc
I was able to view the HTML pages from my desktop and I found them on the following directory:
..\target\docs\index.htmlI was wondering how to access these generated HTML pages from the server. What is the URL to view them from the server?
I tried the following URL but did not work?http://localhost:8080//docs/index.html
Also, the grails documentation states that the command will output an docs/manual/index.html page. Rather I found the index.html page on the following directory: ..\target\docs\index.html
Can anyone help me in this?
Thanks
They're not built to be viewed from the running application, so they're not automatically exposed as a url. But you can move them to the web-app
folder and they'll be accessible.
You can also configure the build location to be under web-app
. Add this line to grails-app/conf/BuildConfig.groovy
:
grails.project.docs.output.dir = 'web-app/docs'
精彩评论