JuliaDocs/Documenter.jl

Option to apply custom CSS class to at-example blocks

开放

#2,208 创建于 2023年8月14日

 (0 条评论) (2 个反应) (0 位负责人)Julia (513 个派生)batch import
Format: HTMLType: Enhancementhelp wanted

仓库指标

星标
 (910 个星标)
PR 合并指标
 (平均合并 16天 9小时) (30 天内合并 3 个 PR)

描述

This is so that you could apply custom CSS styling if you want (e.g. https://github.com/SpeedyWeather/SpeedyWeather.jl/pull/345). I think it could look something like this:

```@example foo; html_class = "my-css-override"

And then HTMLWriter just adds the class to the DOM. The user can then add custom CSS to their docs build to style it.

Implementation is very much up for grabs though.

贡献者指南