mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 10:44:41 -04:00
Update configuration.md
This commit is contained in:
parent
5fd0439ff5
commit
e71c1c5453
@ -22,6 +22,7 @@ noVendor = ""
|
|||||||
proxy = "direct"
|
proxy = "direct"
|
||||||
noProxy = "none"
|
noProxy = "none"
|
||||||
private = "*.*"
|
private = "*.*"
|
||||||
|
replacements = ""
|
||||||
{{< /code-toggle >}}
|
{{< /code-toggle >}}
|
||||||
|
|
||||||
|
|
||||||
@ -37,6 +38,9 @@ noProxy
|
|||||||
private
|
private
|
||||||
: Comma separated glob list matching paths that should be treated as 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:
|
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:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user