mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
61ec7a20a5
It's no longer needed -- empty classes are now always omitted. See See https://github.com/alecthomas/chroma/commit/5b2a4c5a26c503c79bc86ba3c4ae5b330028bd3d
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
# Test the gen commands.
|
|
|
|
hugo gen -h
|
|
stdout 'Generate documentation for your project using Hugo''s documentation engine, including syntax highlighting for various programming languages\.'
|
|
hugo gen doc --dir clidocs
|
|
|
|
hugo gen man -h
|
|
stdout 'up-to-date man pages'
|
|
hugo gen man --dir manpages
|
|
|
|
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 'INFO deprecated: --omitEmpty was deprecated'
|
|
|
|
# Disable class comments.
|
|
hugo gen chromastyles --style monokai
|
|
stdout 'GenericSubheading'
|
|
hugo gen chromastyles --omitClassComments --style monokai
|
|
! stdout 'GenericSubheading' |