deps: use igorshubovych/markdownlint-cli image for running markdownlint

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2025-11-03 14:34:55 +01:00
parent 1cb27f2f58
commit bedb2b4b6c

View File

@@ -53,13 +53,12 @@ RUN --mount=type=cache,target=/tmp/hugo_cache \
hugo --gc --minify -e $HUGO_ENV -b $DOCS_URL
# lint lints markdown files
FROM davidanson/markdownlint-cli2:v0.14.0 AS lint
USER root
FROM ghcr.io/igorshubovych/markdownlint-cli:v0.45.0 AS lint
RUN --mount=type=bind,target=. \
/usr/local/bin/markdownlint-cli2 \
markdownlint \
"content/**/*.md" \
"#content/manuals/engine/release-notes/*.md" \
"#content/manuals/desktop/previous-versions/*.md"
--ignore "content/manuals/engine/release-notes/*.md" \
--ignore "content/manuals/desktop/previous-versions/*.md"
# test validates HTML output and checks for broken links
FROM wjdp/htmltest:v${HTMLTEST_VERSION} AS test