From e71c1c54538cc117119fd02c1c70c78d14e2df1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 30 Oct 2020 12:01:04 +0100 Subject: [PATCH] Update configuration.md --- content/en/hugo-modules/configuration.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/hugo-modules/configuration.md b/content/en/hugo-modules/configuration.md index 175809a37..3a9cb2a31 100644 --- a/content/en/hugo-modules/configuration.md +++ b/content/en/hugo-modules/configuration.md @@ -22,6 +22,7 @@ noVendor = "" proxy = "direct" noProxy = "none" private = "*.*" +replacements = "" {{< /code-toggle >}} @@ -37,6 +38,9 @@ noProxy private : Comma separated glob list matching paths that should be treated as private. +private {{< new-in "0.77.0" >}} +: A comma separated (or a slice) list of module path to directory replacement mapping, e.g. `"github.com/bep/myprettytheme -> ../..,github.com/bep/shortcodes -> /some/path`. This is mostly useful for temporary locally development of a module, and then it makes sense to set it as an OS environment variable, e.g: `env HUGO_MODULE_REPLACEMENTS="github.com/bep/myprettytheme -> ../.."`. Any relative path is relate to [themesDir](https://gohugo.io/getting-started/configuration/#all-configuration-settings), and absolute paths are allowed. + Note that the above terms maps directly to their counterparts in Go Modules. Some of these setting may be natural to set as OS environment variables. To set the proxy server to use, as an example: ```