如何访问在 grails 中使用 Gdoc 创建的项目文档页面
我按照 grails 文档 通过运行以下命令成功地创建了项目特定的文档页面
grails doc
我能够从桌面查看 HTML 页面,并在以下目录中找到它们:
..\target\docs\index.html
我想知道如何从服务器访问这些生成的 HTML 页面。从服务器查看它们的 URL 是什么?
我尝试了以下网址但没有成功?
http://localhost:8080//docs/index.html
另外,grails 文档指出该命令将输出文档/手册/index.html 页。相反,我在以下目录中找到了 index.html 页面: ..\target\docs\index.html
任何人都可以帮助我吗?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它们不是为从正在运行的应用程序中查看而构建的,因此它们不会自动公开为 URL。但您可以将它们移至
web-app
文件夹,然后就可以访问它们了。您还可以将构建位置配置为
web-app
下。将此行添加到 grails-app/conf/BuildConfig.groovy 中: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 tograils-app/conf/BuildConfig.groovy
: