Commit Graph

437 Commits

Author SHA1 Message Date
David Karlsson
339f442ea6 dockerfile(fix): inconsistent from-as casing
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-28 12:19:47 +02:00
David Karlsson
918775acd6 dockerfile: add doc strings for subrequests
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-28 12:19:39 +02:00
David Karlsson
6b9e33044c dockerfile: make release the default target
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-28 11:33:25 +02:00
David Karlsson
4998c0d702 test: fix unused-media test (set -ex)
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-27 13:48:50 +02:00
David Karlsson
f58694d9d1 test: add check for validating go-redirects
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>
2024-06-27 13:45:30 +02:00
David Karlsson
a6b3a154f1 build(deps): upgrade hugo to v0.127.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-24 10:05:50 +02:00
David Karlsson
a5aa3c4922 build(deps): upgrade Go to v1.22
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-24 10:03:58 +02:00
David Karlsson
9fc82b4cab search: fix pagefind path in production
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-06-04 17:37:50 +02:00
David Karlsson
018b45cc5a Merge pull request #20087 from dvdksn/pagefind-v1.1
search: pagefind v1.1.0
2024-06-04 12:31:03 +02:00
David Karlsson
80dcc7f03d build: upgrade to Alpine v3.20
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-05-27 12:54:55 +02:00
David Karlsson
97307d4c66 search: pagefind v1.1.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-05-23 14:05:59 +02:00
David Karlsson
761fa899e0 test: add build targets for unused media test
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-05-20 18:59:32 +02:00
David Karlsson
8be3964c58 build: make release the default build stage
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-05-20 16:21:28 +02:00
David Karlsson
4b4698a4f3 test: remove pointless validation step
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>
2024-05-20 15:41:23 +02:00
David Karlsson
7c71031200 build: update hugo to v0.124.1
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-23 10:48:57 +02:00
David Karlsson
b9d75a3f92 fix(lint): Dockerfile FromAsCasing
Fix incorrect `AS` casing as per the FromAsCasing Dockerfile lint rule

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-04-12 09:57:30 +02:00
David Karlsson
9ea2034b6a Merge pull request #19561 from dvdksn/css-buildstats
hugo: use hugo buildStats to extract css classes and elements
2024-03-11 18:22:57 +01:00
David Karlsson
7069636c56 dockerfile: cleanup trailing backslashes in heredoc
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-03-08 10:32:57 +01:00
David Karlsson
204f5af8f5 build: pin resolved module version in replace directive
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-03-07 17:09:41 +01:00
David Karlsson
c867a95b4a ci: fix typo in module vendoring
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-03-07 11:23:37 +01:00
David Karlsson
a719c2531f hugo: use Go toolchain to update module version
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-03-06 16:22:47 +01:00
David Karlsson
1d6505255c build: create makefile for vendoring
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-03-06 14:17:27 +01:00
David Karlsson
88975c2e57 hugo: use hugo buildStats to extract css
Improves build time compared to using tailwind content globs

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-03-05 13:58:22 +01:00
David Karlsson
6aced2fc9d build(deps): remove refactor nodejs dependencies
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>
2024-02-01 09:44:56 +01:00
David Karlsson
a1102d1a35 build(deps): use prebuilt hugo binary, add gcompat
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>
2024-01-31 22:23:30 +01:00
David Karlsson
6da0b60ccc build(deps): upgrade markdownlint-cli2 to v0.12.1
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-31 22:06:55 +01:00
David Karlsson
55daaf94a6 build(deps): upgrade hugo to v0.122.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-31 22:01:23 +01:00
Sebastiaan van Stijn
6728abcd38 Dockerfile: fix duplicate WORKDIR, and source COPY for update-modules stage
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>
2023-12-11 22:46:07 +01:00
David Karlsson
1fdb2e77d4 fix: broken glob path for lint job
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>
2023-11-04 10:50:02 +01:00
David Karlsson
18cdb02ece lint: pin markdownlint-cli2 version to v0.10.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-11-04 10:50:02 +01:00
David Karlsson
ae5350af10 ci: fix validate-upstream workflow
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-16 17:25:10 +02:00
David Karlsson
b758af9775 lint: add check for missing link definitions
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-09-16 21:41:48 +02:00
David Karlsson
1b8a23cfdd Merge pull request #18008 from dvdksn/modules-vendor-bake
chore: add vendor target for bake
2023-08-23 20:25:59 +02:00
David Karlsson
9543cd0db5 chore: add vendor target for bake
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-23 16:23:00 +02:00
David Karlsson
c379bec61b contribute: update to use compose watch
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-23 15:42:54 +02:00
David Karlsson
0609289f6e release: dont use absolute path to hugo binary
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-22 21:51:03 +02:00
David Karlsson
f0eed66f76 release: force npm cache clean
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-22 21:50:37 +02:00
David Karlsson
a0d21ade2f migrate to hugo
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-22 09:41:02 +02:00
Guillaume Lours
b92ebe5fbf Replace docker-compose calls (#17881)
* use 'docker compose' instead of 'docker-compose' in Swarm documentation

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>

* replace old usages of 'docker-compose' by 'docker compose'

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>

---------

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
2023-08-08 10:05:39 +01:00
David Karlsson
2d44be0fc0 ci: replace htmlproofer with wjdp/htmltest
Signed-off-by: David Karlsson <david.karlsson@docker.com>
2023-04-12 15:38:51 +02:00
CrazyMax
27f7130024 Dockerfile: remove htmlproofer workaround for buildx_build
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-01-13 15:25:37 +01:00
Sebastiaan van Stijn
a7b9985e00 engine: update reference docs (yaml), and fix anchor links
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>
2023-01-09 10:29:43 +01:00
Sebastiaan van Stijn
e19b56d856 htmlproofer: temporarily exclude engine/commandline/cli
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>
2023-01-07 13:41:19 +01:00
Sebastiaan van Stijn
1af8b42db8 htmlproofer: temporarily exclude buildx build
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>
2023-01-07 13:41:16 +01:00
CrazyMax
df4abc6472 jekyll: enforce ruby platform to compile gems with native extensions from source
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-11-04 19:16:13 +01:00
CrazyMax
4544982b55 jekyll(last_modified_at): fix for remote resources and data files (#15998)
* Dockerfile: add option to enforce git log history for local dev

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>

* jekyll(last_modified_at): do not override if already set with frontmatter

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>

* jekyll(last_modified_at): use data files for commands reference instead of stub file

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>

* fix broken links

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-31 09:01:42 +01:00
CrazyMax
0001d960fa Merge pull request #15267 from crazy-max/fix-sitemap-lastmod
jekyll: fix sitemap lastmod
2022-10-26 19:55:23 +02:00
CrazyMax
06908b36f5 jekyll: use git to fetch remote resources
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-26 06:12:36 +02:00
Craig Osterhout
2551e2481a Update Dockerfile
Attempt to fix deploy issue
2022-10-25 15:25:44 -07:00
CrazyMax
897e77c647 add hotjar for staging environment
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-25 20:21:47 +02:00