gpt4 book ai didi

haskell - 如何在 Haddock 文档中嵌入图像

转载 作者:行者123 更新时间:2023-12-03 10:27:44 24 4
gpt4 key购买 nike

如何在本地 Haddock 中嵌入图像文件?

例如,我看到 the lens package只使用图像的外部链接,但我想将图像存储在本地。

(这个问题与 an (unanswered) question on the mailing list 非常相似)。

最佳答案

如果您想在本地存储图像,您可以:

-- A longer description of the package.
description: Some haskell package description.

<<file:///home/user/your_image.png>>

结果:

Enter image description here

如果您不想或不能通过相对路径添加图像,只需输入不带完整路径的图像名称:

<<your_image.png>>

在这种情况下,您的图像必须在 project/docs 中。目录。

关于haskell - 如何在 Haddock 文档中嵌入图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14017112/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com