JuliaDocs/Documenter.jl

Option to apply custom CSS class to at-example blocks

Open

#2,208 建立於 2023年8月14日

在 GitHub 查看
 (0 留言) (2 反應) (0 負責人)Julia (910 star) (513 fork)batch import
Format: HTMLType: Enhancementhelp wanted

描述

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.

貢獻者指南

Option to apply custom CSS class to at-example blocks · JuliaDocs/Documenter.jl#2208 | Good First Issue