Skip to content

Commit 49d1f65

Browse files
committed
deps: upgrade to hugo v0.156.0 and fix deprecations
1 parent 90e2cb5 commit 49d1f65

7 files changed

Lines changed: 25 additions & 23 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG ALPINE_VERSION=3.21
55
ARG GO_VERSION=1.25
66
ARG HTMLTEST_VERSION=0.17.0
77
ARG VALE_VERSION=3.11.2
8-
ARG HUGO_VERSION=0.154.2
8+
ARG HUGO_VERSION=0.156.0
99
ARG NODE_VERSION=22
1010
ARG PAGEFIND_VERSION=1.5.0-beta.1
1111

content/manuals/scout/explore/metrics-exporter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ alongside Grafana with a pre-configured dashboard to visualize the vulnerability
118118
3. In the Prometheus configuration file at `/prometheus/prometheus/prometheus.yml`,
119119
replace `ORG` in the `metrics_path` property on line 6 with the namespace of your Docker organization.
120120

121-
```yaml {title="prometheus/prometheus.yml",hl_lines="6",linenos=1}
121+
```yaml {title="prometheus/prometheus.yml",hl_lines="6",linenos=true}
122122
global:
123123
scrape_interval: 60s
124124
scrape_timeout: 40s

content/reference/api/engine/version/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ build:
55
sidebar:
66
reverse: true
77
cascade:
8-
- _target:
8+
- target:
99
path: /reference/api/engine/version/v1.24
1010
layout: default
11-
- _target:
11+
- target:
1212
path: /reference/api/engine/version/**
1313
description: Reference documentation and Swagger (OpenAPI) specification for the Docker Engine API.
1414
layout: api

hugo.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ module:
272272
proxy: https://proxy.golang.org,direct
273273
hugoVersion:
274274
extended: false
275-
min: "0.141.0"
275+
min: "0.156.0"
276276
mounts:
277277
# Mount the assets directory so it doesn't get overwritten
278278
- source: assets
@@ -297,7 +297,7 @@ module:
297297
target: content/reference/api/engine/version-history.md
298298
- source: docs
299299
target: content/reference/api/engine/version
300-
includeFiles: "*.yaml"
300+
files: ["*.yaml"]
301301

302302
# BuildKit
303303
- path: github.com/moby/buildkit
@@ -306,7 +306,7 @@ module:
306306
target: content/reference/dockerfile.md
307307
- source: frontend/dockerfile/docs/rules
308308
target: content/reference/build-checks
309-
includeFiles: "*.md"
309+
files: ["*.md"]
310310
- source: docs/buildkitd.toml.md
311311
target: content/manuals/build/buildkit/toml-configuration.md
312312
- source: docs/attestations/slsa-definitions.md
@@ -327,10 +327,10 @@ module:
327327
mounts:
328328
- source: docs/extend
329329
target: content/manuals/engine/extend
330-
excludeFiles:
331-
- "EBS_volume.md"
332-
- "plugins_metrics.md"
333-
- "plugins_services.md"
330+
files:
331+
- "! EBS_volume.md"
332+
- "! plugins_metrics.md"
333+
- "! plugins_services.md"
334334
- source: docs/deprecated.md
335335
target: content/manuals/engine/deprecated.md
336336
- source: docs/reference/run.md
@@ -343,18 +343,18 @@ module:
343343
mounts:
344344
- source: docs/reference
345345
target: data/compose-cli
346-
includeFiles: "*.yaml"
346+
files: ["*.yaml"]
347347

348348
# Model CLI
349349
- path: github.com/docker/model-runner/cmd/cli
350350
mounts:
351351
- source: docs/reference
352352
target: data/model-cli
353-
includeFiles: "*.yaml"
353+
files: ["*.yaml"]
354354

355355
# MCP CLI
356356
- path: github.com/docker/mcp-gateway
357357
mounts:
358358
- source: docs/generator/reference
359359
target: data/mcp-cli
360-
includeFiles: "*.yaml"
360+
files: ["*.yaml"]

layouts/home.redirects.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,17 @@
2121
-}}
2222

2323
{{- $redirects := newScratch }}
24-
{{- range $i, $e := site.AllPages -}}
25-
{{- if .Params.aliases -}}
26-
{{- $target := .RelPermalink -}}
27-
{{- range .Params.aliases -}}
28-
{{ $redirects.SetInMap "paths" . $target }}
24+
{{- range hugo.Sites -}}
25+
{{- range .Pages -}}
26+
{{- if .Params.aliases -}}
27+
{{- $target := .RelPermalink -}}
28+
{{- range .Params.aliases -}}
29+
{{ $redirects.SetInMap "paths" . $target }}
30+
{{- end -}}
2931
{{- end -}}
3032
{{- end -}}
3133
{{- end -}}
32-
{{- range $target, $aliases := site.Data.redirects -}}
34+
{{- range $target, $aliases := hugo.Data.redirects -}}
3335
{{- range $aliases }}
3436
{{- $redirects.SetInMap "paths" . $target -}}
3537
{{- end -}}

layouts/security-announcements/rss.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<atom:link href="{{ .Permalink }}index.xml" rel="self" type="application/rss+xml" />
1919

2020
{{- if eq .Type "desktop-release" -}}
21-
{{- $releases := .Site.Data.desktop_release.releases -}}
21+
{{- $releases := hugo.Data.desktop_release.releases -}}
2222
{{- range $index, $release := $releases -}}
2323
{{- if lt $index 20 -}}
2424
<item>
@@ -31,7 +31,7 @@
3131
{{- end -}}
3232
{{- end -}}
3333
{{- else if eq .Type "security-announcements" -}}
34-
{{- $announcements := .Site.Data.security_announcements.announcements -}}
34+
{{- $announcements := hugo.Data.security_announcements.announcements -}}
3535
{{- range $index, $announcement := $announcements -}}
3636
{{- if lt $index 20 -}}
3737
<item>

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ publish = "public"
44
[context.deploy-preview.environment]
55
NODE_VERSION = "22"
66
NODE_ENV = "production"
7-
HUGO_VERSION = "0.154.2"
7+
HUGO_VERSION = "0.156.0"
88
HUGO_ENABLEGITINFO = "true"
99
HUGO_ENVIRONMENT = "preview"
1010
SECRETS_SCAN_OMIT_PATHS = "public/contribute/file-conventions/index.html"

0 commit comments

Comments
 (0)