JuliaDocs/Documenter.jl

Option to apply custom CSS class to at-example blocks

オープン

#2,208 opened on 2023/08/14

 (0 件のコメント) (2 件のリアクション) (0 人の担当者)Julia (513 件のフォーク)batch import
Format: HTMLType: Enhancementhelp wanted

Repository metrics

Stars
 (910 個のスター)
PR merge metrics
 (平均マージ 16d 9h) (30d で 3 merged PRs)

説明

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.

コントリビューターガイド