JuliaDocs/Documenter.jl

Option to apply custom CSS class to at-example blocks

Open

#2,208 opened on Aug 14, 2023

View on GitHub
 (0 comments) (2 reactions) (0 assignees)Julia (910 stars) (513 forks)batch import
Format: HTMLType: Enhancementhelp wanted

Description

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.

Contributor guide

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