开发者

How to access the project documentation pages created using Gdoc in grails

I followed the tutorial on the grails documentation was successfully able to create project开发者_运维技巧 specific documentation pages by running the following command

grails doc

I was able to view the HTML pages from my desktop and I found them on the following directory:

..\target\docs\index.html

I 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'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜