mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
790a8aa474
Test / test (1.26.x, ubuntu-latest) (push) Has been cancelled
Test / test (1.26.x, windows-latest) (push) Has been cancelled
Closes #15017
26 lines
980 B
Plaintext
26 lines
980 B
Plaintext
hugo gen chromastyles -h
|
|
stdout 'Generate CSS stylesheet for the Chroma code highlighter'
|
|
hugo gen chromastyles --style monokai
|
|
stdout 'Generated using: hugo gen chromastyles --style monokai'
|
|
! hugo gen chromastyles --style __invalid_style__
|
|
stderr 'invalid style: __invalid_style__'
|
|
|
|
# Not empty classes.
|
|
# From Hugo 0.149.0 empty classes are always removed, so no need for the omitEmpty flag.
|
|
hugo gen chromastyles --style monokai
|
|
! stdout '{ }'
|
|
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'
|
|
|