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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@

/content/manuals/accounts/ @sarahsanders-docker

/hack @dvdksn
6 changes: 4 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ area/release:
- changed-files:
- any-glob-to-any-file:
- .github/**
- _releaser/**
- hack/releaser/**
- netlify.toml

area/config:
Expand All @@ -14,6 +14,7 @@ area/config:
- docker-bake.hcl
- hugo.yaml
- pagefind.yml
- hack/vendor

area/contrib:
- changed-files:
Expand All @@ -28,7 +29,7 @@ area/tests:
- .markdownlint.json
- .vale.ini
- _vale/**
- scripts/test_*
- hack/test/*

area/build:
- changed-files:
Expand Down Expand Up @@ -183,3 +184,4 @@ dependencies:
- go.sum
- package*.json
- _vendor/**
- hack/vendor
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ RUN htmltest
FROM alpine:${ALPINE_VERSION} AS unused-media
RUN apk add --no-cache fd ripgrep
WORKDIR /test
RUN --mount=type=bind,target=. <<"EOT"
set -ex
./scripts/test_unused_media.sh
EOT
RUN --mount=type=bind,target=. ./hack/test/unused_media

# path-warnings checks for duplicate target paths
FROM build-base AS path-warnings
Expand Down Expand Up @@ -145,7 +142,7 @@ RUN apk add yq
COPY --from=build /project/public ./public
RUN --mount=type=bind,target=. <<"EOT"
set -ex
./scripts/test_go_redirects.sh
./hack/test/go_redirects
EOT

# release is an empty scratch image with only compiled assets
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.PHONY: vendor
vendor: ## vendor hugo modules
./scripts/vendor.sh
./hack/vendor
Binary file removed content/guides/images/c-sharp.webp
Binary file not shown.
Binary file removed content/guides/images/cpp.webp
Binary file not shown.
Binary file removed content/guides/images/golang.webp
Binary file not shown.
Binary file removed content/guides/images/java.webp
Binary file not shown.
Binary file removed content/guides/images/nodejs.webp
Binary file not shown.
Binary file removed content/guides/images/php-logo.webp
Binary file not shown.
Binary file removed content/guides/images/python.webp
Binary file not shown.
Binary file removed content/guides/images/ruby-on-rails.webp
Binary file not shown.
Binary file removed content/guides/images/rust-logo.webp
Binary file not shown.
Binary file removed content/manuals/admin/images/remove-owner.png
Binary file not shown.
Binary file not shown.
Binary file removed content/manuals/desktop/images/troubleshoot.png
Binary file not shown.
Binary file not shown.
Binary file removed content/manuals/docker-hub/images/index-tag.webp
Binary file not shown.
10 changes: 5 additions & 5 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ target "path-warnings" {
}

#
# releaser targets are defined in _releaser/Dockerfile
# releaser targets are defined in hack/releaser/Dockerfile
# and are used for AWS S3 deployment
#

target "releaser-build" {
context = "_releaser"
context = "hack/releaser"
target = "releaser"
output = ["type=cacheonly"]
provenance = false
Expand Down Expand Up @@ -119,23 +119,23 @@ target "_common-aws" {

target "aws-s3-update-config" {
inherits = ["_common-aws"]
context = "_releaser"
context = "hack/releaser"
target = "aws-s3-update-config"
no-cache-filter = ["aws-update-config"]
output = ["type=cacheonly"]
}

target "aws-lambda-invoke" {
inherits = ["_common-aws"]
context = "_releaser"
context = "hack/releaser"
target = "aws-lambda-invoke"
no-cache-filter = ["aws-lambda-invoke"]
output = ["type=cacheonly"]
}

target "aws-cloudfront-update" {
inherits = ["_common-aws"]
context = "_releaser"
context = "hack/releaser"
target = "aws-cloudfront-update"
contexts = {
sitedir = DOCS_SITE_DIR
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion _releaser/go.mod → hack/releaser/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/docker/docs/_releaser
module github.com/docker/docs/hack/releaser

go 1.22

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 33 additions & 0 deletions hack/test/unused_media
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env sh

echo "checking for unused media files..."
FORMATS="svg png webp mp4 jpg jpeg"
DIRECTORIES="content static"

FORMAT_FLAGS=""
for format in $FORMATS; do
FORMAT_FLAGS="$FORMAT_FLAGS -e $format"
done

echo "Searching for media with formats: $FORMATS"
echo "Searching in directories: $DIRECTORIES"

MEDIA=$(fd . $FORMAT_FLAGS $DIRECTORIES)

UNUSED_COUNT=0

for file in $MEDIA; do
rg -q "$(basename $file)" .
if [ $? -ne 0 ]; then
echo "$file"
UNUSED_COUNT=$((UNUSED_COUNT + 1))
fi
done

if [ $UNUSED_COUNT -eq 0 ]; then
echo "No unused media files."
exit 0
else
echo "$UNUSED_COUNT unused media files found. Please remove them."
exit 1
fi
File renamed without changes.
23 changes: 0 additions & 23 deletions scripts/test_unused_media.sh

This file was deleted.

14 changes: 0 additions & 14 deletions static/assets/images/green-check.svg

This file was deleted.