Skip to content

Conversation

dscho
Copy link

@dscho dscho commented Sep 5, 2025

image

:-)

Do be precise with white-space when rendering the `diagram-list` page:
The main purpose of that file is to serve as input for the
`script/graphviz-ssr.js` script, which wants the lines between the open
and close tag to contain the precise paths, without any indentation or
empty lines.

Signed-off-by: Johannes Schindelin <[email protected]>
The generated SVGs now gain the `graphviz` class, which makes it easier
to customize their look via CSS. This is especially important when
adding support for dark mode, as there are other SVGs on the front page
that should not receive the same treatment.

Sadly, `node-html-parser` is not smart enough to handle
`element.classList.add(...)` followed by `element.toString()` correctly:
The output would _not_ have the added class. But there's always crude
string processing to save the day.

Signed-off-by: Johannes Schindelin <[email protected]>
CSS to the rescue!

Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho closed this Sep 6, 2025
@dscho dscho deleted the cheat-sheet-dark-mode-diagrams branch September 6, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant