commands/gen: Remove default highlight style

Fixes #11445
This commit is contained in:
Joe Mooring 2023-09-12 17:11:25 -07:00 committed by Bjørn Erik Pedersen
parent 18ce854626
commit 75c0f88289
2 changed files with 3 additions and 3 deletions

View file

@ -76,7 +76,7 @@ See https://xyproto.github.io/splash/docs/all.html for a preview of the availabl
}, },
withc: func(cmd *cobra.Command, r *rootCommand) { withc: func(cmd *cobra.Command, r *rootCommand) {
cmd.PersistentFlags().StringVar(&style, "style", "friendly", "highlighter style (see https://xyproto.github.io/splash/docs/)") cmd.PersistentFlags().StringVar(&style, "style", "friendly", "highlighter style (see https://xyproto.github.io/splash/docs/)")
cmd.PersistentFlags().StringVar(&highlightStyle, "highlightStyle", "bg:#ffffcc", "style used for highlighting lines (see https://github.com/alecthomas/chroma)") cmd.PersistentFlags().StringVar(&highlightStyle, "highlightStyle", "", "style used for highlighting lines (see https://github.com/alecthomas/chroma)")
cmd.PersistentFlags().StringVar(&linesStyle, "linesStyle", "", "style used for line numbers (see https://github.com/alecthomas/chroma)") cmd.PersistentFlags().StringVar(&linesStyle, "linesStyle", "", "style used for line numbers (see https://github.com/alecthomas/chroma)")
}, },
} }

View file

@ -16,4 +16,4 @@ checkfilecount $NUM_COMMANDS manpages
hugo gen chromastyles -h hugo gen chromastyles -h
stdout 'Generate CSS stylesheet for the Chroma code highlighter' stdout 'Generate CSS stylesheet for the Chroma code highlighter'
hugo gen chromastyles --style monokai hugo gen chromastyles --style monokai
stdout 'color: #f8f8f2' stdout '/\* LineHighlight \*/ \.chroma \.hl \{ background-color: #3c3d38 \}'