diff --git a/content/en/functions/js/_common/options.md b/content/en/functions/js/_common/options.md index e2b6566ad..0d6138a7b 100644 --- a/content/en/functions/js/_common/options.md +++ b/content/en/functions/js/_common/options.md @@ -81,6 +81,14 @@ import * as ReactDOM from 'react-dom/client'; {{ $defines := dict "process.env.NODE_ENV" `"development"` }} ``` +##### drop + +Edit your source code before building to drop certain constructs: One of `debugger` or `console`. + +{{< new-in 0.144.0 />}} + +See https://esbuild.github.io/api/#drop + ###### sourceMap (`string`) Whether to generate `inline`, `linked` or `external` source maps from esbuild. Linked and external source maps will be written to the target with the output file name + ".map". When `linked` a `sourceMappingURL` will also be written to the output file. By default, source maps are not created. Note that the `linked` option was added in Hugo 0.140.0. diff --git a/content/en/hugo-modules/configuration.md b/content/en/hugo-modules/configuration.md index b99de0e9c..9125846d1 100644 --- a/content/en/hugo-modules/configuration.md +++ b/content/en/hugo-modules/configuration.md @@ -22,6 +22,7 @@ proxy = 'direct' replacements = '' vendorClosest = false workspace = 'off' +auth = '' {{< /code-toggle >}} noProxy @@ -36,6 +37,9 @@ private proxy : (`string`) Defines the proxy server to use to download remote modules. Default is `direct`, which means "git clone" and similar. +auth +: (`string`) {{< new-in 0.144.0 >}} Configures `GOAUTH` when running the Go command for module operations. This is a semicolon-separated list of authentication commands for go-import and HTTPS module mirror interactions. This is useful for private repositories. See `go help goauth` for more information. + vendorClosest : (`bool`) When enabled, we will pick the vendored module closest to the module using it. The default behavior is to pick the first. Note that there can still be only one dependency of a given module path, so once it is in use it cannot be redefined. Default is `false`. diff --git a/data/docs.yaml b/data/docs.yaml index dc61df0e8..6fc02c63a 100644 --- a/data/docs.yaml +++ b/data/docs.yaml @@ -958,6 +958,73 @@ chroma: - Aliases: - zig Name: Zig + styles: + - abap + - algol + - algol_nu + - arduino + - autumn + - average + - base16-snazzy + - borland + - bw + - catppuccin-frappe + - catppuccin-latte + - catppuccin-macchiato + - catppuccin-mocha + - colorful + - doom-one + - doom-one2 + - dracula + - emacs + - evergarden + - friendly + - fruity + - github + - github-dark + - gruvbox + - gruvbox-light + - hr_high_contrast + - hrdark + - igor + - lovelace + - manni + - modus-operandi + - modus-vivendi + - monokai + - monokailight + - murphy + - native + - nord + - nordic + - onedark + - onesenterprise + - paraiso-dark + - paraiso-light + - pastie + - perldoc + - pygments + - rainbow_dash + - rose-pine + - rose-pine-dawn + - rose-pine-moon + - rrt + - solarized-dark + - solarized-dark256 + - solarized-light + - swapoff + - tango + - tokyonight-day + - tokyonight-moon + - tokyonight-night + - tokyonight-storm + - trac + - vim + - vs + - vulcan + - witchhazel + - xcode + - xcode-dark config: HTTPCache: cache: @@ -1737,7 +1804,9 @@ config: headers: null redirects: - force: false - from: '**' + from: /** + fromHeaders: null + fromRe: "" status: 404 to: /404.html services: