]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
commands: Update link to highlighting style examples
authorJoe Mooring <joe.mooring@veriphor.com>
Tue, 24 Feb 2026 05:27:05 +0000 (21:27 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 25 Feb 2026 11:57:25 +0000 (12:57 +0100)
Closes #14556

commands/gen.go

index a9d2fa7a24219686273f2791350c97e891989b92..6ec6a9916a4a8cb526d08d31705a80c4d9286d8a 100644 (file)
@@ -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)