为什么 Haddock 文档没有出现在 Hackage 上?
我有一个 Hackage 上的软件包,其中包含 haddock 生成的文档,但它没有显示在 Hackage 页面上。我能够成功上传所有内容,但文档未显示。
我使用 cabal haddock 或 Package > 生成文档。在 Leksah IDE 中构建文档。
当我转到 Package > 时在Leksah中打开Doc
,它找不到它,因为它正在寻找dist/doc/html/hspec/hspec/index.html
,但生成的文件位于dist/ doc/html/hspec/index.html
。我认为 Hackage 也在寻找同一个地方。
我猜测我的源文件不在预期的位置,但我不知道它们应该在哪里。
源代码和目录结构可以在 https://github.com/trystan/hspec 找到。
I've got a package on Hackage that has haddock generated documentation but it isn't showing up on the Hackage page. I'm able to upload everything successfully but the documentation doesn't show up.
I generate the documentation with cabal haddock
or with Package > Build Documentation
in the Leksah IDE.
When I go to Package > Open Doc
in Leksah, it can't find it because it's looking for dist/doc/html/hspec/hspec/index.html
but the generated file is at dist/doc/html/hspec/index.html
. I assume that Hackage is also looking in the same place.
I'm guessing that my source files aren't in the expected places, but I don't know how else they should be.
The source and directory structure can be found at https://github.com/trystan/hspec.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
软件包仅定期构建/生成文档。我不知道现在是多少次——以前是每天,但我认为频率更高一些。无论如何,你应该等待。最终,它将构建并生成文档,或者构建日志将显示发生了什么错误。
Packages are only built/documentation generated on a periodic basis. I don't know how often it is now -- used to be daily, but I think is somewhat more frequent. In any case, you should wait. Eventually, it will either build and generate documentation, or the build log will show what error took place.