mirror of
https://github.com/docker/docs.git
synced 2026-06-19 07:35:16 +00:00
deps: upgrade to hugo v0.156.0 and fix deprecations
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ ARG ALPINE_VERSION=3.21
|
||||
ARG GO_VERSION=1.25
|
||||
ARG HTMLTEST_VERSION=0.17.0
|
||||
ARG VALE_VERSION=3.11.2
|
||||
ARG HUGO_VERSION=0.154.2
|
||||
ARG HUGO_VERSION=0.156.0
|
||||
ARG NODE_VERSION=22
|
||||
ARG PAGEFIND_VERSION=1.5.0-beta.1
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ alongside Grafana with a pre-configured dashboard to visualize the vulnerability
|
||||
3. In the Prometheus configuration file at `/prometheus/prometheus/prometheus.yml`,
|
||||
replace `ORG` in the `metrics_path` property on line 6 with the namespace of your Docker organization.
|
||||
|
||||
```yaml {title="prometheus/prometheus.yml",hl_lines="6",linenos=1}
|
||||
```yaml {title="prometheus/prometheus.yml",hl_lines="6",linenos=true}
|
||||
global:
|
||||
scrape_interval: 60s
|
||||
scrape_timeout: 40s
|
||||
|
||||
@@ -5,10 +5,10 @@ build:
|
||||
sidebar:
|
||||
reverse: true
|
||||
cascade:
|
||||
- _target:
|
||||
- target:
|
||||
path: /reference/api/engine/version/v1.24
|
||||
layout: default
|
||||
- _target:
|
||||
- target:
|
||||
path: /reference/api/engine/version/**
|
||||
description: Reference documentation and Swagger (OpenAPI) specification for the Docker Engine API.
|
||||
layout: api
|
||||
|
||||
@@ -272,7 +272,7 @@ module:
|
||||
proxy: https://proxy.golang.org,direct
|
||||
hugoVersion:
|
||||
extended: false
|
||||
min: "0.141.0"
|
||||
min: "0.156.0"
|
||||
mounts:
|
||||
# Mount the assets directory so it doesn't get overwritten
|
||||
- source: assets
|
||||
@@ -297,7 +297,7 @@ module:
|
||||
target: content/reference/api/engine/version-history.md
|
||||
- source: docs
|
||||
target: content/reference/api/engine/version
|
||||
includeFiles: "*.yaml"
|
||||
files: ["*.yaml"]
|
||||
|
||||
# BuildKit
|
||||
- path: github.com/moby/buildkit
|
||||
@@ -306,7 +306,7 @@ module:
|
||||
target: content/reference/dockerfile.md
|
||||
- source: frontend/dockerfile/docs/rules
|
||||
target: content/reference/build-checks
|
||||
includeFiles: "*.md"
|
||||
files: ["*.md"]
|
||||
- source: docs/buildkitd.toml.md
|
||||
target: content/manuals/build/buildkit/toml-configuration.md
|
||||
- source: docs/attestations/slsa-definitions.md
|
||||
@@ -327,10 +327,10 @@ module:
|
||||
mounts:
|
||||
- source: docs/extend
|
||||
target: content/manuals/engine/extend
|
||||
excludeFiles:
|
||||
- "EBS_volume.md"
|
||||
- "plugins_metrics.md"
|
||||
- "plugins_services.md"
|
||||
files:
|
||||
- "! EBS_volume.md"
|
||||
- "! plugins_metrics.md"
|
||||
- "! plugins_services.md"
|
||||
- source: docs/deprecated.md
|
||||
target: content/manuals/engine/deprecated.md
|
||||
- source: docs/reference/run.md
|
||||
@@ -343,18 +343,18 @@ module:
|
||||
mounts:
|
||||
- source: docs/reference
|
||||
target: data/compose-cli
|
||||
includeFiles: "*.yaml"
|
||||
files: ["*.yaml"]
|
||||
|
||||
# Model CLI
|
||||
- path: github.com/docker/model-runner/cmd/cli
|
||||
mounts:
|
||||
- source: docs/reference
|
||||
target: data/model-cli
|
||||
includeFiles: "*.yaml"
|
||||
files: ["*.yaml"]
|
||||
|
||||
# MCP CLI
|
||||
- path: github.com/docker/mcp-gateway
|
||||
mounts:
|
||||
- source: docs/generator/reference
|
||||
target: data/mcp-cli
|
||||
includeFiles: "*.yaml"
|
||||
files: ["*.yaml"]
|
||||
|
||||
@@ -21,15 +21,17 @@
|
||||
-}}
|
||||
|
||||
{{- $redirects := newScratch }}
|
||||
{{- range $i, $e := site.AllPages -}}
|
||||
{{- if .Params.aliases -}}
|
||||
{{- $target := .RelPermalink -}}
|
||||
{{- range .Params.aliases -}}
|
||||
{{ $redirects.SetInMap "paths" . $target }}
|
||||
{{- range hugo.Sites -}}
|
||||
{{- range .Pages -}}
|
||||
{{- if .Params.aliases -}}
|
||||
{{- $target := .RelPermalink -}}
|
||||
{{- range .Params.aliases -}}
|
||||
{{ $redirects.SetInMap "paths" . $target }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- range $target, $aliases := site.Data.redirects -}}
|
||||
{{- range $target, $aliases := hugo.Data.redirects -}}
|
||||
{{- range $aliases }}
|
||||
{{- $redirects.SetInMap "paths" . $target -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<atom:link href="{{ .Permalink }}index.xml" rel="self" type="application/rss+xml" />
|
||||
|
||||
{{- if eq .Type "desktop-release" -}}
|
||||
{{- $releases := .Site.Data.desktop_release.releases -}}
|
||||
{{- $releases := hugo.Data.desktop_release.releases -}}
|
||||
{{- range $index, $release := $releases -}}
|
||||
{{- if lt $index 20 -}}
|
||||
<item>
|
||||
@@ -31,7 +31,7 @@
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- else if eq .Type "security-announcements" -}}
|
||||
{{- $announcements := .Site.Data.security_announcements.announcements -}}
|
||||
{{- $announcements := hugo.Data.security_announcements.announcements -}}
|
||||
{{- range $index, $announcement := $announcements -}}
|
||||
{{- if lt $index 20 -}}
|
||||
<item>
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ publish = "public"
|
||||
[context.deploy-preview.environment]
|
||||
NODE_VERSION = "22"
|
||||
NODE_ENV = "production"
|
||||
HUGO_VERSION = "0.154.2"
|
||||
HUGO_VERSION = "0.156.0"
|
||||
HUGO_ENABLEGITINFO = "true"
|
||||
HUGO_ENVIRONMENT = "preview"
|
||||
SECRETS_SCAN_OMIT_PATHS = "public/contribute/file-conventions/index.html"
|
||||
|
||||
Reference in New Issue
Block a user