英文:
Any tricks to export Go docs to be served statically?
问题
我想使用由godoc生成的文档静态地提供(在App Engine上)我创建的项目。我看到godoc启动了一个服务器,显然包的文档都是动态生成的。但是是否有办法将文档保存到文件系统中,或者还有其他选项可供选择?
英文:
I'd like to use docs generated by godoc to be served statically (on App Engine) for a project I created. I see that godoc starts a server and apparently the package docs are all generated dynamically. But is there a workaround to save the docs to the filesystem or what other options do I have?
答案1
得分: 1
如果您正在使用GitHub,那么已经有一个非常好的项目可以实现这个功能:http://gopkgdoc.appspot.com/
文档位于页面底部。它是开源的,只需一点努力,您就可以使其生成非GitHub服务的文档。
英文:
If you're using GitHub, there's a pretty nice project for this already: http://gopkgdoc.appspot.com/
Documentation's at the bottom of the page. It's open source and with a little effort, you may be able to get it to generate documentation from non-GitHub services.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论