summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2023-09-12 17:11:25 -0700
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-09-14 12:08:52 +0200
commit75c0f88289585faa9801e7178673bc9ff5f25594 (patch)
tree723486c924405a428afe3688e21edc9fdeeb4fcc /commands
parent18ce854626919b12a3e0dc961cef4921e6de5b11 (diff)
commands/gen: Remove default highlight style
Fixes #11445
Diffstat (limited to 'commands')
-rw-r--r--commands/gen.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/gen.go b/commands/gen.go
index 4b96ffc5c..534eb0df5 100644
--- a/commands/gen.go
+++ b/commands/gen.go
@@ -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 {