]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
commands: Fix description of new theme commands
authorJoe Mooring <joe.mooring@veriphor.com>
Fri, 9 May 2025 15:45:06 +0000 (08:45 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 9 May 2025 18:03:21 +0000 (20:03 +0200)
Fixes #13701

commands/new.go
testscripts/commands/new.txt

index fdc1f65f2fcd291c80a66222f1604d95d5040dad..81e1c65a4e6f5deb30b1c13b58fdb87ec60805cf 100644 (file)
@@ -76,10 +76,8 @@ Ensure you run this within the root directory of your site.`,
                        &simpleCommand{
                                name:  "site",
                                use:   "site [path]",
-                               short: "Create a new site (skeleton)",
-                               long: `Create a new site in the provided directory.
-The new site will have the correct structure, but no content or theme yet.
-Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
+                               short: "Create a new site",
+                               long:  `Create a new site at the specified path.`,
                                run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
                                        if len(args) < 1 {
                                                return newUserError("path needs to be provided")
@@ -124,11 +122,9 @@ Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
                        &simpleCommand{
                                name:  "theme",
                                use:   "theme [name]",
-                               short: "Create a new theme (skeleton)",
-                               long: `Create a new theme (skeleton) called [name] in ./themes.
-New theme is a skeleton. Please add content to the touched files. Add your
-name to the copyright line in the license and adjust the theme.toml file
-according to your needs.`,
+                               short: "Create a new theme",
+                               long: `Create a new theme with the specified name in the ./themes directory.
+This generates a functional theme including template examples and sample content.`,
                                run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
                                        if len(args) < 1 {
                                                return newUserError("theme name needs to be provided")
index cd338203f4ebfa4e8a7ceaa51306e152c80c7b3c..f8d7c1ec1f24ee5a11fcd59e340f563937e3dbaf 100644 (file)
@@ -1,7 +1,7 @@
 # Test the new command.
 
 hugo new site -h
-stdout 'Create a new site in the provided directory'
+stdout 'Create a new site at the specified path.'
 hugo new site my-yaml-site --format yml
 checkfile my-yaml-site/hugo.yml
 hugo new site mysite -f
@@ -19,7 +19,7 @@ exists themes
 ! exists resources
 
 hugo new theme -h
-stdout 'Create a new theme \(skeleton\) called \[name\] in ./themes'
+stdout 'Create a new theme with the specified name in the ./themes directory.'
 hugo new theme mytheme --format yml
 stdout 'Creating new theme'
 ! exists resources