Skip to content
/ hugo Public
forked from gohugoio/hugo

Commit

Permalink
commands/gen: Remove default highlight style
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Sep 13, 2023
1 parent 18ce854 commit 8792832
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions commands/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
},
}
Expand Down Expand Up @@ -136,7 +136,6 @@ 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 {
Expand Down
2 changes: 1 addition & 1 deletion testscripts/commands/gen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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'
stdout '/\* LineHighlight \*/ \.chroma \.hl \{ background-color: #3c3d38 \}'

0 comments on commit 8792832

Please sign in to comment.