]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Squashed 'docs/' changes from 1798dc0d5..1d5548d73
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 1 Jun 2023 08:51:24 +0000 (10:51 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 1 Jun 2023 08:51:24 +0000 (10:51 +0200)
1d5548d73 build.cachebusters
3c966904d netlify: Hugo 0.112.5
b32c3a811 Bump min Go version to 1.19 when building from source (#2095)
9dea2d2f9 netlify: Hugo 0.112.4
b3fb4a1bc docs: Regenerate CLI docs
291ecd301 docs: Regen CLI docs
c886958e2 Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'

git-subtree-dir: docs
git-subtree-split: 1d5548d7355be39364404a67eee7186d5ea71930

44 files changed:
content/en/commands/hugo.md
content/en/commands/hugo_completion.md
content/en/commands/hugo_completion_bash.md
content/en/commands/hugo_completion_fish.md
content/en/commands/hugo_completion_powershell.md
content/en/commands/hugo_completion_zsh.md
content/en/commands/hugo_config.md
content/en/commands/hugo_config_mounts.md
content/en/commands/hugo_convert.md
content/en/commands/hugo_convert_toJSON.md
content/en/commands/hugo_convert_toTOML.md
content/en/commands/hugo_convert_toYAML.md
content/en/commands/hugo_deploy.md
content/en/commands/hugo_env.md
content/en/commands/hugo_gen.md
content/en/commands/hugo_gen_chromastyles.md
content/en/commands/hugo_gen_doc.md
content/en/commands/hugo_gen_man.md
content/en/commands/hugo_import.md
content/en/commands/hugo_import_jekyll.md
content/en/commands/hugo_list.md
content/en/commands/hugo_list_all.md
content/en/commands/hugo_list_drafts.md
content/en/commands/hugo_list_expired.md
content/en/commands/hugo_list_future.md
content/en/commands/hugo_mod.md
content/en/commands/hugo_mod_clean.md
content/en/commands/hugo_mod_get.md
content/en/commands/hugo_mod_graph.md
content/en/commands/hugo_mod_init.md
content/en/commands/hugo_mod_npm.md
content/en/commands/hugo_mod_npm_pack.md
content/en/commands/hugo_mod_tidy.md
content/en/commands/hugo_mod_vendor.md
content/en/commands/hugo_mod_verify.md
content/en/commands/hugo_new.md
content/en/commands/hugo_new_content.md
content/en/commands/hugo_new_site.md
content/en/commands/hugo_new_theme.md
content/en/commands/hugo_server.md
content/en/commands/hugo_version.md
content/en/getting-started/configuration.md
content/en/installation/common/05-build-from-source.md
netlify.toml

index 8dbdd62316993bcd2a88369d7b041a01ad59dd52..73d443169e6fc58c738d1901cbeeaa01f4828770 100644 (file)
@@ -39,7 +39,6 @@ hugo [flags]
       --enableGitInfo              add Git revision, date, author, and CODEOWNERS info to the pages
   -e, --environment string         build environment
       --forceSyncStatic            copy all files when static is changed.
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --gc                         enable to run some cleanup tasks (remove unused cache files) after the build
   -h, --help                       help for hugo
       --ignoreCache                ignores the cache directory
index 7ab87f800a9b6936d7af00eb3e0875677ed88283..d7cc64cc2fbde18285a9df3dfedeba408083c350 100644 (file)
@@ -28,7 +28,6 @@ See each sub-command's help for details on how to use the generated script.
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index a4d4d6f11d929d03884f1ab69eacacdf51097782..eb6fdd8d47aeb0dbec1ae9f722411f99b7b3201f 100644 (file)
@@ -51,7 +51,6 @@ hugo completion bash
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 6fe2d7f1650acd480dd6ae19d48246794b1c9815..f81acb8afead57995fc9c4ce3ffe6ab25b21f174 100644 (file)
@@ -42,7 +42,6 @@ hugo completion fish [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 614023dbb6783b53bf104f74bf13ad863174f10a..5f900ec594ac2ccd5412e595df7781fb84c50c98 100644 (file)
@@ -39,7 +39,6 @@ hugo completion powershell [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 7e17bc96dff66fed5e219aac220192f7c31da51d..fbe5c6ad4c4e725af8daba597defab9a8803ee87 100644 (file)
@@ -53,7 +53,6 @@ hugo completion zsh [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 0c54f0e6dd54e3f1136484cd3acea847942d5eeb..1dbf4c0deb23bed34672a76f081afcb909177f15 100644 (file)
@@ -18,7 +18,12 @@ hugo config [command] [flags]
 ### Options
 
 ```
-  -h, --help   help for config
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+  -c, --contentDir string   filesystem path to content directory
+      --format string       preferred file format (toml, yaml or json) (default "toml")
+  -h, --help                help for config
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -30,7 +35,6 @@ hugo config [command] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 1019f5102aa025628e8ae625ff57aab3550c3cd6..e4c4cf8c561632b9e6d0b265ddf40dda04c3035a 100644 (file)
@@ -14,7 +14,11 @@ hugo config mounts [flags] [args]
 ### Options
 
 ```
-  -h, --help   help for mounts
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+  -c, --contentDir string   filesystem path to content directory
+  -h, --help                help for mounts
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -26,7 +30,6 @@ hugo config mounts [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 0c5384fbb8fce6199ad1e56e7ec393f4119677da..c524334874a0590a505fae23268c3d1181865de7 100644 (file)
@@ -34,7 +34,6 @@ hugo convert [command] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 73c2fc3038a9941bdac3d6871f0f82382ca55646..4b811f49e676793ca07de7fb801ac416f3e2e08d 100644 (file)
@@ -31,7 +31,6 @@ hugo convert toJSON [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 9141eb1a22256e3b4ecfe08138f5b81d83d06e7b..19d847e9019e2e6db1593b042f7b9bf68de9c2b2 100644 (file)
@@ -31,7 +31,6 @@ hugo convert toTOML [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index a932921cf4719326c55aa472271890f203b0899c..1785d3ad8ab49fd70e6b2c17a6216a9b55dc76f8 100644 (file)
@@ -31,7 +31,6 @@ hugo convert toYAML [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 0531664ddaf484edf9574366899e56b7dc718636..4bec6df50b38f4ea2ff87dffc3e3114e7b39011a 100644 (file)
@@ -41,7 +41,6 @@ hugo deploy [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index e001c6098919fc14895ab8e9d1d8a4cce30c9997..296e6e00218d58c9907a6f5d74b03bea5c1d00e5 100644 (file)
@@ -30,7 +30,6 @@ hugo env [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index b589e2e0fb5757adb26154e721d1cd08fc225fed..71c6dfe42040d04a84198c3942e59be076a0610c 100644 (file)
@@ -26,7 +26,6 @@ hugo gen [command] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 5ea23381d81c5326cf9019a3e49685f3861e1e98..9c41f7174549b088aba253a2cd9a67a0fdd8f947 100644 (file)
@@ -35,7 +35,6 @@ hugo gen chromastyles [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 16593400a3e70011ae96e0a5a0368b18d66131e1..59999fb7bede0bf54c75769150599b52597818d7 100644 (file)
@@ -36,7 +36,6 @@ hugo gen doc [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 3602dcc934749c2b220c7920037cd5088e3c341d..f2c40d71d3aac7c202e611671f85bf8efba3f5b1 100644 (file)
@@ -33,7 +33,6 @@ hugo gen man [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index ad4907d589c8fb097cbe62dc0f824282ee451854..c9774f466ed9b88b1a5e17887b47ac4f2365de5c 100644 (file)
@@ -32,7 +32,6 @@ hugo import [command] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 10d603bdff207dfe8c76a8f68e7316fdb1928e79..4e4876d90e7e0671860fb6af81bc512f6572d302 100644 (file)
@@ -33,7 +33,6 @@ hugo import jekyll [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 10a8cf6cbd4d556315428ea2ef44462d09000121..6a3ec36d83d4cb2db78d27a4a80c2159448a3ed3 100644 (file)
@@ -32,7 +32,6 @@ hugo list [command] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 8edd0a4d911e01e882523b61414d55963e9dcfc1..5ac8a7c359bc6d2cdb14306982942e9a6f4510b9 100644 (file)
@@ -30,7 +30,6 @@ hugo list all [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 5ec870a5d5de1dbc4a45ffd82dee6128f0e45ff3..601c7648fbe310282eb232818cb7b77aaa125258 100644 (file)
@@ -30,7 +30,6 @@ hugo list drafts [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 3feae5640bc575005882987dd4862c43a815038f..47a9cc369da87c1955836d1411a7ed8e19b49c85 100644 (file)
@@ -30,7 +30,6 @@ hugo list expired [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 5b331b90b775aaed18f76aa574ce41d075e37c38..5cbb86c7482e01496e24bc84f86cc2b4c1968a86 100644 (file)
@@ -30,7 +30,6 @@ hugo list future [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 8621f30ddc0f703c271c89becb35d94476ad6cdb..ac7e16f254ec56eb677d7b89f8ac9267e4bcf710 100644 (file)
@@ -37,7 +37,6 @@ See https://gohugo.io/hugo-modules/ for more information.
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 922fab2abe9da83b248efe2f1d8ab0baba9fae00..7878fe178f2f6389e9c538f92ab2df8ca0fed24a 100644 (file)
@@ -18,9 +18,13 @@ hugo mod clean [flags] [args]
 ### Options
 
 ```
-      --all              clean entire module cache
-  -h, --help             help for clean
-      --pattern string   pattern matching module paths to clean (all if not set), e.g. "**hugo*"
+      --all                 clean entire module cache
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+  -c, --contentDir string   filesystem path to content directory
+  -h, --help                help for clean
+      --pattern string      pattern matching module paths to clean (all if not set), e.g. "**hugo*"
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -32,7 +36,6 @@ hugo mod clean [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index d0d0f85d3cb0ac5d1184eae9e487e9d32eddf9f7..21fa1f967f764aa612379155e63ad6f52c3aba3a 100644 (file)
@@ -56,7 +56,6 @@ hugo mod get [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index da72a2a31292f47c1d63f44b72e9de0f31cca62e..fa1d66602b9536666dcd04edcca88013203016b0 100644 (file)
@@ -20,8 +20,12 @@ hugo mod graph [flags] [args]
 ### Options
 
 ```
-      --clean   delete module cache for dependencies that fail verification
-  -h, --help    help for graph
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+      --clean               delete module cache for dependencies that fail verification
+  -c, --contentDir string   filesystem path to content directory
+  -h, --help                help for graph
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -33,7 +37,6 @@ hugo mod graph [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 7d5f77aa7893378974a7e88e15281360327cfaba..af1575b734f6f96489916ad5adefe8c7ae833bf6 100644 (file)
@@ -25,7 +25,11 @@ hugo mod init [flags] [args]
 ### Options
 
 ```
-  -h, --help   help for init
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+  -c, --contentDir string   filesystem path to content directory
+  -h, --help                help for init
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -37,7 +41,6 @@ hugo mod init [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 12ec71b77ca4dd7b700379df2c79ca17b1c508e0..8e13a7294f73985324565252f28a8a84b10235b6 100644 (file)
@@ -30,7 +30,6 @@ hugo mod npm [command] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index b923db82c2e8e5bd68a33e07482d6f7c7ffbd913..6236499099dc1c946e8badb7478d010a50adb5cc 100644 (file)
@@ -28,7 +28,11 @@ hugo mod npm pack [flags] [args]
 ### Options
 
 ```
-  -h, --help   help for pack
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+  -c, --contentDir string   filesystem path to content directory
+  -h, --help                help for pack
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -40,7 +44,6 @@ hugo mod npm pack [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 63cb52ca6b2eb094dfe15ac2f8e926c7cea24e52..31558a55bf2f3d303fdb05a0e481f50656e4e1b1 100644 (file)
@@ -14,7 +14,11 @@ hugo mod tidy [flags] [args]
 ### Options
 
 ```
-  -h, --help   help for tidy
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+  -c, --contentDir string   filesystem path to content directory
+  -h, --help                help for tidy
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -26,7 +30,6 @@ hugo mod tidy [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 9d9943c8a52bdf202d65ff4e152d2c326f417daa..42d19b36e5192173982149da21d58ce47a409c7c 100644 (file)
@@ -20,7 +20,11 @@ hugo mod vendor [flags] [args]
 ### Options
 
 ```
-  -h, --help   help for vendor
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+  -c, --contentDir string   filesystem path to content directory
+  -h, --help                help for vendor
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -32,7 +36,6 @@ hugo mod vendor [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index dd41f29fd224acd0bb12c826ddcd387123f5afbc..861ef575265beb5e8e7c128a37338318b2bec7b0 100644 (file)
@@ -18,8 +18,12 @@ hugo mod verify [flags] [args]
 ### Options
 
 ```
-      --clean   delete module cache for dependencies that fail verification
-  -h, --help    help for verify
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+      --clean               delete module cache for dependencies that fail verification
+  -c, --contentDir string   filesystem path to content directory
+  -h, --help                help for verify
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -31,7 +35,6 @@ hugo mod verify [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index dd170eee508340f0353b19a048d8b84efd80a8d5..31d6f1f18edf58e9a3cafe4830ac97461a7f00c7 100644 (file)
@@ -37,7 +37,6 @@ hugo new [command] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index e26fa9459e8e70f1234d73ef702f5f7b983fac33..fdacc65963be31f8529e774187688069cfbcd6a9 100644 (file)
@@ -25,10 +25,15 @@ hugo new content [path] [flags]
 ### Options
 
 ```
-      --editor string   edit new content with this editor, if provided
-  -f, --force           overwrite file if it already exists
-  -h, --help            help for content
-  -k, --kind string     content type to create
+  -b, --baseURL string      hostname (and path) to the root, e.g. https://spf13.com/
+      --cacheDir string     filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
+  -c, --contentDir string   filesystem path to content directory
+      --editor string       edit new content with this editor, if provided
+  -f, --force               overwrite file if it already exists
+      --format string       preferred file format (toml, yaml or json) (default "toml")
+  -h, --help                help for content
+  -k, --kind string         content type to create
+  -t, --theme strings       themes to use (located in /themes/THEMENAME/)
 ```
 
 ### Options inherited from parent commands
@@ -40,7 +45,6 @@ hugo new content [path] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 803127de3ce633c90d4af034e0d4b0fe21bc21c4..9409f1e28ade5e3070780e10b8612b5a8996a6df 100644 (file)
@@ -20,7 +20,7 @@ hugo new site [path] [flags]
 ### Options
 
 ```
-      --force   init inside non-empty directory
+  -f, --force   init inside non-empty directory
   -h, --help    help for site
 ```
 
@@ -33,7 +33,6 @@ hugo new site [path] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index b1f1ea3eebdb377a1287be55f9cd6ac9d6420199..a4057e0f1b80fa588873248d539d30e92b46ec3c 100644 (file)
@@ -32,7 +32,6 @@ hugo new theme [path] [flags]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 657a4eee49079ffabc371928ea946259594b0606..27e12deb97d999fd021577327add3fe197abe156 100644 (file)
@@ -82,7 +82,6 @@ hugo server [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 35b7201539aac61018b069fb8dfc9ae20c48c9a9..b78237bb738c3d468b7cf321dcab502e4aed36cc 100644 (file)
@@ -30,7 +30,6 @@ hugo version [flags] [args]
       --debug                      debug output
   -d, --destination string         filesystem path to write files to
   -e, --environment string         build environment
-      --format string              preferred file format (toml, yaml or json) (default "toml")
       --ignoreVendorPaths string   ignores any _vendor for module paths matching the given Glob pattern
       --log                        enable Logging
       --logFile string             log File path (if set, logging enabled automatically)
index 53b444bb6b0da19467608ac4744cb0440fb77738..2ab9e6a33ba35f39abed993742350537c8d9f299 100644 (file)
@@ -499,6 +499,18 @@ The `build` configuration section contains global build-related configuration op
 useResourceCacheWhen="fallback"
 writeStats = false
 noJSConfigInAssets = false
+  [[build.cachebusters]]
+    source = "assets/watching/hugo_stats\\.json"
+    target = "styles\\.css"
+  [[build.cachebusters]]
+    source = "(postcss|tailwind)\\.config\\.js"
+    target = "css"
+  [[build.cachebusters]]
+    source = "assets/.*\\.(js|ts|jsx|tsx)"
+    target = "js"
+  [[build.cachebusters]]
+    source = "assets/.*\\.(.*)$"
+    target = "$1"
 {{< /code-toggle >}}
 
 
@@ -513,6 +525,40 @@ writeStats
 noJSConfigInAssets
 : Turn off writing a `jsconfig.json` into your `/assets` folder with mapping of imports from running [js.Build](https://gohugo.io/hugo-pipes/js). This file is intended to help with intellisense/navigation inside code editors such as [VS Code](https://code.visualstudio.com/). Note that if you do not use `js.Build`, no file will be written.
 
+cachebusters
+: See [Configure Cache Busters](#configure-cache-busters)
+
+## Configure Cache Busters
+
+{{< new-in "0.112.0" >}}
+
+The `build.cachebusters` configuration option was added to support development using Tailwind 3.x's JIT compiler where a `build` config may look like this:
+
+{{< code-toggle file="hugo" >}}
+[build]
+writeStats = true
+  [[build.cachebusters]]
+    source = "assets/watching/hugo_stats\\.json"
+    target = "styles\\.css"
+  [[build.cachebusters]]
+    source = "(postcss|tailwind)\\.config\\.js"
+    target = "css"
+  [[build.cachebusters]]
+    source = "assets/.*\\.(js|ts|jsx|tsx)"
+    target = "js"
+  [[build.cachebusters]]
+    source = "assets/.*\\.(.*)$"
+    target = "$1"
+{{< /code-toggle >}}
+
+Some key points in the above are `writeStats = true`, which writes a `hugo_stats.json` file on each build with HTML classes etc. that's used in the rendered output. Changes to this file will trigger a rebuild of the `styles.css` file. You also need to add `hugo_stats.json` to Hugo's server watcher. See [Hugo Starter Tailwind Basic](https://github.com/bep/hugo-starter-tailwind-basic) for a running example.
+
+source
+: A regexp matching file(s) relative to one of the virtual component directories in Hugo, typically `assets/...`.
+
+target
+: A regexp matching the keys in the resource cache that should be expired when `source` changes. You can use the matching regexp groups from `source` in the expression, e.g. `$1`.
+
 ## Configure Server
 
 This is only relevant when running `hugo server`, and it allows to set HTTP headers during development, which allows you to test out your Content Security Policy and similar. The configuration format matches [Netlify's](https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file) with slightly more powerful [Glob matching](https://github.com/gobwas/glob):
index a135de9fd5f83722dd9748326d9bc351b957a2cf..c0bd85515b56012a647e66e3ef5752646738dea8 100644 (file)
@@ -3,7 +3,7 @@
 To build Hugo from source you must:
 
 1. Install [Git]
-1. Install [Go] version 1.18 or later
+1. Install [Go] version 1.19 or later
 1. Update your PATH environment variable as described in the [Go documentation]
 
 > The install directory is controlled by the GOPATH and GOBIN environment variables. If GOBIN is set, binaries are installed to that directory. If GOPATH is set, binaries are installed to the bin subdirectory of the first directory in the GOPATH list. Otherwise, binaries are installed to the bin subdirectory of the default GOPATH ($HOME/go or %USERPROFILE%\go).
index c3c26e87f8d68532f00c83381fae50c103abf136..be3f1d9a9fcbe620a6f72d56e182dad90903ad0c 100644 (file)
@@ -3,7 +3,7 @@ publish = "public"
 command = "hugo --gc --minify"
 
 [context.production.environment]
-HUGO_VERSION = "0.112.3"
+HUGO_VERSION = "0.112.5"
 HUGO_ENV = "production"
 HUGO_ENABLEGITINFO = "true"
 
@@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true"
 command = "hugo --gc --minify --enableGitInfo"
 
 [context.split1.environment]
-HUGO_VERSION = "0.112.3"
+HUGO_VERSION = "0.112.5"
 HUGO_ENV = "production"
 
 [context.deploy-preview]
 command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
 
 [context.deploy-preview.environment]
-HUGO_VERSION = "0.112.3"
+HUGO_VERSION = "0.112.5"
 
 [context.branch-deploy]
 command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
 
 [context.branch-deploy.environment]
-HUGO_VERSION = "0.112.3"
+HUGO_VERSION = "0.112.5"
 
 [context.next.environment]
 HUGO_ENABLEGITINFO = "true"