]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
commands/gen: Remove default highlight style
authorJoe Mooring <joe.mooring@veriphor.com>
Wed, 13 Sep 2023 00:11:25 +0000 (17:11 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 14 Sep 2023 10:08:52 +0000 (12:08 +0200)
Fixes #11445

commands/gen.go
testscripts/commands/gen.txt

index 4b96ffc5c584e63c9d37a8665b20100143e87e2f..534eb0df5a102c1490b5a9720342809783f6636d 100644 (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) {
                                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)")
                        },
                }
@@ -136,7 +136,7 @@ url: %s
                        long: `Generate Markdown documentation for the Hugo CLI.
                        This command is, mostly, used to create up-to-date documentation
        of Hugo's command-line interface for https://gohugo.io/.
-       
+
        It creates one Markdown file per command with front matter suitable
        for rendering in Hugo.`,
                        run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
index 891079e11bc8f361bfdfa0b019f59cf2922ffe2c..e11ba06426686338e93fb0876ff48d2dde85ab47 100644 (file)
@@ -16,4 +16,4 @@ checkfilecount $NUM_COMMANDS manpages
 hugo gen chromastyles -h
 stdout 'Generate CSS stylesheet for the Chroma code highlighter'
 hugo gen chromastyles --style monokai
-stdout 'color: #f8f8f2'
\ No newline at end of file
+stdout '/\* LineHighlight \*/ \.chroma \.hl \{ background-color: #3c3d38 \}'