css - 如何在我的 Haddock 文档中获得 "Style"菜单?

标签 css haskell haddock

一些包(例如 Haddock 文档 Data.String.Utils )有一个菜单栏,其中包含一个“样式”菜单,允许在用于显示文档的样式中进行选择:

enter image description here

如何在我自己的包的文档中获取此菜单?我应该使用什么设置来包含它,以及如何指定提供哪些样式?

我试过像

haddock
  -- ...
  css: /path/to/mystuff.css, Default, Ocean
  -- ...


haddock

  -- ...
  css: Default
  css: Ocean
  css: /path/to/mystuff.css
  -- ...

在我的 ~/.cabal/config ;但前者失败,后者只是使用最后列出的 css 格式化条目,没有“样式”菜单。

最佳答案

此功能通过 --theme 实现。黑线鳕的标志:https://haskell-haddock.readthedocs.io/en/latest/invoking.html#cmdoption-theme

关于css - 如何在我的 Haddock 文档中获得 "Style"菜单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32725800/

相关文章:

haskell - 黑线鳕 "could not find link destinations for"

haskell - 在 haskell 中创建一个返回该类型类的另一个实例的类型类

shadow - .png Logo 周围的框阴影,不是矩形

jquery - Bootstrap 的 "data-offset"在滚动后跳转 - div spacer?

html - 如何在浏览器调整大小时使 div 内的文本流畅?

Haskell:笛卡尔积

haskell - 爱生 : generics with default values

haskell - 为什么 cabal haddock --hyperlink-source 不生成源 HTML?

haskell - Haddock 找不到已安装软件包的文档

html - 在 block 'a' 标记外渲染的元素