Test ensures that:
- Go redirects are unique (this is actually enforced by YAML already
because it requires keys to be unique, but just in case someone
'echo >>'es into the file or whatever
- Go redirects always resolve to an index.html in the public output dir
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This validation was not caused in CI, and it can't really be in it's
current form, since the hugo_stats.json contains a lot of
false-positives, meaning that the file can easily become outdated
without it actually impacting anything.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Separate dev dependencies like prettier to prevent them from being
installed to build the site, unnecessarily.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Fetching the prebuilt hugo binary is faster than `go install`.
Also switching to the extended version.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
I noticed that building the "vendor" target was copying the source twice;
once in the "build-base" stage, and once in the "update-modules" stage:
docker buildx bake --set vendor.args.MODULE=github.com/docker/cli vendor
...
=> [build-base 1/3] COPY --from=hugo /go/bin/hugo /bin/hugo 0.2s
=> [build-base 2/3] COPY --from=node /src/node_modules /src/node_modules 1.6s
=> [build-base 3/3] COPY . . 3.1s
=> [update-modules 1/4] WORKDIR /src 0.0s
=> [update-modules 2/4] COPY . . 5.0s
=> [update-modules 3/4] RUN hugo mod get -u 14.1s
=> [update-modules 4/4] RUN hugo mod vendor 17.3s
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Linting was only running on a subset of our Markdown files in `content`.
This change fixes the glob path, and adds appropriate exclude paths.
Because the glob pattern was incorrect before, we had lots of files that
didn't comply with the linting rules. This commit also fixes those
issues.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
The updated version uses new anchors for flags, so updates are needed
elsewhere to update those anchors.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This page will be updated once the associated PR in docker/cli is merged.
Excluding it until then.
Running ["LinkCheck", "ImageCheck", "ScriptCheck"] on ["./_site"] on *.html...
Ran on 2173 files!
- ./_site/engine/reference/commandline/cli/index.html
* linking to internal hash #format-the-output that does not exist (line 314)
<a href="/engine/reference/commandline/config_ls/#format-the-output"><strong>format the output</strong> section in the documentation</a>
* linking to internal hash #format-the-output that does not exist (line 318)
<a href="/engine/reference/commandline/images/#format-the-output"><strong>format the output</strong> section in the documentation</a>
* linking to internal hash #format-the-output that does not exist (line 334)
<a href="/engine/reference/commandline/secret_ls/#format-the-output"><strong>format the output</strong> section in the documentation</a>
* linking to internal hash #formatting that does not exist (line 326)
<a href="/engine/reference/commandline/plugin_ls/#formatting"><strong>formatting</strong> section in the documentation</a>
* linking to internal hash #formatting that does not exist (line 322)
<a href="/engine/reference/commandline/node_ls/#formatting"><strong>formatting</strong> section in the documentation</a>
* linking to internal hash #formatting that does not exist (line 330)
<a href="/engine/reference/commandline/ps/#formatting"><strong>formatting</strong> section in the documentation</a>
* linking to internal hash #formatting that does not exist (line 338)
<a href="/engine/reference/commandline/service_inspect/#formatting"><strong>formatting</strong> section in the documentation</a>
* linking to internal hash #formatting that does not exist (line 342)
<a href="/engine/reference/commandline/service_ls/#formatting"><strong>formatting</strong> section in the documentation</a>
* linking to internal hash #formatting that does not exist (line 346)
<a href="/engine/reference/commandline/stats/#formatting"><strong>formatting</strong> section in the documentation</a>
HTML-Proofer found 9 failures!
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The buildx build docs refers to anchors that are being updated,
but are maintained in a separate repository; exclude that page
from the validator until the anchor changes are live and the
buildx docs updated.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>