Merge pull request #24388 from dvdksn/hugo-build-improvements

misc dependency upgrades & build improvements
This commit is contained in:
David Karlsson
2026-03-17 15:52:11 +01:00
committed by GitHub
13 changed files with 360 additions and 423 deletions

View File

@@ -5,8 +5,8 @@ ARG ALPINE_VERSION=3.23
ARG GO_VERSION=1.26
ARG HTMLTEST_VERSION=0.17.0
ARG VALE_VERSION=3.11.2
ARG HUGO_VERSION=0.156.0
ARG NODE_VERSION=22
ARG HUGO_VERSION=0.158.0
ARG NODE_VERSION=24
ARG PAGEFIND_VERSION=1.5.0-beta.1
# base defines the generic base stage

View File

@@ -22,7 +22,7 @@ grid:
- title: Set up two-factor authentication
description: Add an extra layer of authentication to your Docker account.
link: /security/2fa/
icon: phonelink_lock
icon: mobile_lock_portrait
- title: Deactivate an account
description: Learn how to deactivate a Docker user account.
link: /accounts/deactivate-user-account/

View File

@@ -11,7 +11,7 @@ grid_developers:
- title: Set up two-factor authentication
description: Add an extra layer of authentication to your Docker account.
link: /security/2fa/
icon: phonelink_lock
icon: mobile_lock_portrait
- title: Manage access tokens
description: Create personal access tokens as an alternative to your password.
icon: password

View File

@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/docker/docker-agent/refs/heads/main/cagent-schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/docker/docker-agent/refs/heads/main/agent-schema.json
agents:
root:
model: opus

View File

@@ -2,7 +2,7 @@
<div class="flex items-start justify-between">
<h1 data-pagefind-weight="10">{{ .Title | safeHTML }}</h1>
<div class="md-dropdown ml-auto hidden lg:block">
{{ partial "md-dropdown.html" . }}
{{ partialCached "md-dropdown.html" "-" "-" }}
</div>
</div>
<div class="block lg:hidden">

View File

@@ -4,7 +4,7 @@
{{- range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink }}" />
{{ end -}}
{{ partial "utils/css.html" "-" }}
{{ partialCached "utils/css.html" "-" "-" }}
<link href="/pagefind/pagefind-component-ui.css" rel="stylesheet">
{{- if hugo.IsProduction -}}
<script

View File

@@ -7,10 +7,10 @@
class="bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 flex cursor-pointer items-center gap-2 px-3 py-2 text-sm transition-colors whitespace-nowrap text-gray-900 dark:text-white"
>
<span class="icon-svg icon-sm">
{{ partial "icon" "content_copy" }}
{{ partialCached "icon" "content_copy" "content_copy" }}
</span>
<span class="icon-svg icon-sm hidden">
{{ partial "icon" "check_circle" }}
{{ partialCached "icon" "check_circle" "check_circle" }}
</span>
<span>Copy as Markdown</span>
</button>

View File

@@ -93,7 +93,7 @@
{{/* Load the YouTube player if the page embeds a YouTube video */}}
{{ with .Store.Get "youtube" }}
{{ partial "youtube-script.html" . }}
{{ partialCached "youtube-script.html" "-" "-" }}
{{ end }}
</body>
</html>

View File

@@ -8,7 +8,7 @@
<div class="flex items-start justify-between gap-4">
<h1>{{ .Title }}</h1>
<div class="md-dropdown ml-auto mr-4 hidden lg:block">
{{ partial "md-dropdown.html" . }}
{{ partialCached "md-dropdown.html" "-" "-" }}
</div>
</div>
<div class="overflow-x-auto">

View File

@@ -2,9 +2,9 @@
publish = "public"
[context.deploy-preview.environment]
NODE_VERSION = "22"
NODE_VERSION = "24"
NODE_ENV = "production"
HUGO_VERSION = "0.156.0"
HUGO_VERSION = "0.158.0"
HUGO_ENABLEGITINFO = "true"
HUGO_ENVIRONMENT = "preview"
SECRETS_SCAN_OMIT_PATHS = "public/contribute/file-conventions/index.html"

729
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,22 +14,22 @@
},
"homepage": "https://docs.docker.com/",
"dependencies": {
"@alpinejs/collapse": "^3.14.3",
"@alpinejs/focus": "^3.14.3",
"@alpinejs/persist": "^3.14.3",
"@floating-ui/dom": "^1.6.12",
"@material-symbols/svg-400": "^0.23.0",
"@tailwindcss/cli": "^4.1.6",
"@tailwindcss/typography": "^0.5.15",
"alpinejs": "^3.14.3",
"@alpinejs/collapse": "^3.15.8",
"@alpinejs/focus": "^3.15.8",
"@alpinejs/persist": "^3.15.8",
"@floating-ui/dom": "^1.7.6",
"@material-symbols/svg-400": "^0.40.2",
"@tailwindcss/cli": "^4.2.1",
"@tailwindcss/typography": "^0.5.19",
"alpinejs": "^3.15.8",
"highlight.js": "^11.11.1",
"marked": "^17.0.0",
"tailwindcss": "^4.1.6"
"marked": "^17.0.4",
"tailwindcss": "^4.2.1"
},
"devDependencies": {
"markdownlint": "^0.38.0",
"prettier": "^3.6.2",
"markdownlint": "^0.40.0",
"prettier": "^3.8.1",
"prettier-plugin-go-template": "^0.0.15",
"prettier-plugin-tailwindcss": "^0.7.1"
"prettier-plugin-tailwindcss": "^0.7.2"
}
}

View File

@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/docker/docker-agent/refs/heads/main/cagent-schema.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/docker/docker-agent/refs/heads/main/agent-schema.json
agents:
root:
model: coordinator