commands: Fix github-dark chromastyles

Fixes #14831
This commit is contained in:
Alexandre Vaz
2026-04-29 16:08:56 -03:00
committed by Bjørn Erik Pedersen
parent e51e761d9c
commit 88d838a971
5 changed files with 49 additions and 2 deletions
+6 -1
View File
@@ -22,8 +22,13 @@ hugo gen chromastyles --style monokai
hugo gen chromastyles --omitEmpty --style monokai --logLevel info
stderr 'deprecated: --omitEmpty was deprecated'
# Keep same-colour token classes in generated CSS. This is needed when pairing
# styles such as github and github-dark in dual-theme sites.
hugo gen chromastyles --style github-dark
stdout 'NameOther.*\.chroma \.nx \{ color:#e6edf3 \}'
# Disable class comments.
hugo gen chromastyles --style monokai
stdout 'GenericSubheading'
hugo gen chromastyles --omitClassComments --style monokai
! stdout 'GenericSubheading'
! stdout 'GenericSubheading'