Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
- test
- unused-media
- test-go-redirects
- dockerfile-lint
- path-warnings
steps:
-
name: Checkout
Expand Down
17 changes: 15 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# syntax=docker/dockerfile-upstream:master
# check=skip=InvalidBaseImagePlatform

# ALPINE_VERSION sets the Alpine Linux version for all Alpine stages
ARG ALPINE_VERSION=3.20
Expand All @@ -20,7 +21,7 @@ RUN npm install

# hugo downloads and extracts the Hugo binary
FROM base AS hugo
ARG HUGO_VERSION=0.127.0
ARG HUGO_VERSION=0.132.0
ARG TARGETARCH
WORKDIR /tmp/hugo
RUN wget -O "hugo.tar.gz" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
Expand All @@ -44,7 +45,7 @@ ARG DOCS_URL
RUN hugo --gc --minify -d /out -e $HUGO_ENV -b $DOCS_URL

# lint lints markdown files
FROM davidanson/markdownlint-cli2:v0.12.1 AS lint
FROM davidanson/markdownlint-cli2:v0.13.0 AS lint
USER root
RUN --mount=type=bind,target=. \
/usr/local/bin/markdownlint-cli2 \
Expand Down Expand Up @@ -108,6 +109,18 @@ set -ex
./scripts/test_unused_media.sh
EOT

# path-warnings checks for duplicate target paths
FROM build-base AS path-warnings
RUN hugo --printPathWarnings > /path-warnings.txt
RUN <<EOT
DUPLICATE_TARGETS=$(grep "Duplicate target paths" /path-warnings.txt)
if [ ! -z "$DUPLICATE_TARGETS" ]; then
echo "$DUPLICATE_TARGETS"
echo "You probably have a duplicate alias defined. Please check your aliases."
exit 1
fi
EOT

# pagefind installs the Pagefind runtime
FROM base AS pagefind
ARG PAGEFIND_VERSION=1.1.0
Expand Down
1 change: 0 additions & 1 deletion content/engine/logging/configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ aliases:
- /engine/admin/reference/logging/
- /engine/admin/logging/logentries/
- /engine/admin/logging/overview/
- /engine/admin/logging/
- /config/containers/logging/configure/
---

Expand Down
3 changes: 1 addition & 2 deletions content/security/for-admins/enforce-sign-in/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ toc_max: 2
keywords: authentication, registry.json, configure, enforce sign-in, docker desktop, security,
title: Enforce sign-in for Docker Desktop
aliases:
- /docker-hub/configure-sign-in/
- /security/for-admins/configure-sign-in/
---

Expand Down Expand Up @@ -42,4 +41,4 @@ following occurs:
> This means that your users must use SSO to sign in, instead of a username and password.
> When you enforce sign-in and enforce SSO, your users must sign in and must use SSO to do so.
> See [Enforce SSO](/security/for-admins/single-sign-on/connect#optional-enforce-sso) for details on how to enable this for your SSO connection.
{ .tip }
{ .tip }
11 changes: 10 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ target "release" {
}

group "validate" {
targets = ["lint", "test", "unused-media", "test-go-redirects"]
targets = ["lint", "test", "unused-media", "test-go-redirects", "dockerfile-lint", "path-warnings"]
}

target "test" {
Expand All @@ -59,6 +59,15 @@ target "test-go-redirects" {
provenance = false
}

target "dockerfile-lint" {
call = "check"
}

target "path-warnings" {
target = "path-warnings"
output = ["type=cacheonly"]
}

#
# releaser targets are defined in _releaser/Dockerfile
# and are used for AWS S3 deployment
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1 data-pagefind-weight="10" class="scroll-mt-36">{{ . }}</h1>
{{ partial "guides-stepper.html" . }}
{{ end }}
<div class="block lg:hidden">
{{ partial "pagemeta.html" . }}
{{ partialCached "pagemeta.html" . . }}
<hr>
</div>
{{ .Content }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/aside.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<aside class="py-4 space-y-4">
{{ partial "github-links.html" . }}
<div id="TableOfContents">
{{ partial "pagemeta.html" . }}
{{ partialCached "pagemeta.html" . . }}
</div>
</aside>
2 changes: 0 additions & 2 deletions layouts/shortcodes/build-feature-state.html

This file was deleted.

22 changes: 10 additions & 12 deletions layouts/shortcodes/introduced.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,16 @@
{{ end }}
{{ end }}
{{- if $versionAboveThreshold }}
<div class="text-gray-light dark:text-gray-dark flex items-center gap-2">
<span class="icon-svg flex items-center">{{ partial "icon.html" "chevron_right" }}</span>
<span>Introduced in {{ T $component }} version
{{- if $link }}
{{ page.RenderString (fmt.Printf `[%s](%s)` $v $link) }}
{{- else }}
{{ $v }}
{{- end }}
</span>
</div>
{{- else }}
{{ warnf "[introduced] version below threshold: %s %s %v" $component $v $pos }}
<div class="text-gray-light dark:text-gray-dark flex items-center gap-2">
<span class="icon-svg flex items-center">{{ partialCached "icon.html" "chevron_right" "chevron_right" }}</span>
<span>Introduced in {{ T $component }} version
{{- if $link }}
{{ page.RenderString (fmt.Printf `[%s](%s)` $v $link) }}
{{- else }}
{{ $v }}
{{- end }}
</span>
</div>
{{- end }}
{{- else }}
{{ errorf "[introduced] invalid component: %s %v" $component $pos }}
Expand Down
13 changes: 0 additions & 13 deletions layouts/shortcodes/siblings.html

This file was deleted.