From: Joe Mooring Date: Tue, 24 Feb 2026 05:27:05 +0000 (-0800) Subject: commands: Update link to highlighting style examples X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=68059972e8789258447e31ca23641c79598d66be;p=brevno-suite%2Fhugo commands: Update link to highlighting style examples Closes #14556 --- diff --git a/commands/gen.go b/commands/gen.go index a9d2fa7a2..6ec6a9916 100644 --- a/commands/gen.go +++ b/commands/gen.go @@ -60,7 +60,7 @@ func newGenCommand() *genCommand { short: "Generate CSS stylesheet for the Chroma code highlighter", long: `Generate CSS stylesheet for the Chroma code highlighter for a given style. This stylesheet is needed if markup.highlight.noClasses is disabled in config. -See https://xyproto.github.io/splash/docs/all.html for a preview of the available styles`, +See https://gohugo.io/quick-reference/syntax-highlighting-styles/ for a preview of the available styles.`, run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error { style = strings.ToLower(style) @@ -98,7 +98,7 @@ See https://xyproto.github.io/splash/docs/all.html for a preview of the availabl }, withc: func(cmd *cobra.Command, r *rootCommand) { cmd.ValidArgsFunction = cobra.NoFileCompletions - cmd.PersistentFlags().StringVar(&style, "style", "friendly", "highlighter style (see https://xyproto.github.io/splash/docs/)") + cmd.PersistentFlags().StringVar(&style, "style", "friendly", "highlighter style") _ = cmd.RegisterFlagCompletionFunc("style", cobra.NoFileCompletions) cmd.PersistentFlags().StringVar(&highlightStyle, "highlightStyle", "", `foreground and background colors for highlighted lines, e.g. --highlightStyle "#fff000 bg:#000fff"`) _ = cmd.RegisterFlagCompletionFunc("highlightStyle", cobra.NoFileCompletions)