mirror of
https://github.com/docker/docs.git
synced 2026-06-19 07:35:16 +00:00
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:
+4
-5
@@ -53,13 +53,12 @@ RUN --mount=type=cache,target=/tmp/hugo_cache \
|
|||||||
hugo --gc --minify -e $HUGO_ENV -b $DOCS_URL
|
hugo --gc --minify -e $HUGO_ENV -b $DOCS_URL
|
||||||
|
|
||||||
# lint lints markdown files
|
# lint lints markdown files
|
||||||
FROM davidanson/markdownlint-cli2:v0.14.0 AS lint
|
FROM ghcr.io/igorshubovych/markdownlint-cli:v0.45.0 AS lint
|
||||||
USER root
|
|
||||||
RUN --mount=type=bind,target=. \
|
RUN --mount=type=bind,target=. \
|
||||||
/usr/local/bin/markdownlint-cli2 \
|
markdownlint \
|
||||||
"content/**/*.md" \
|
"content/**/*.md" \
|
||||||
"#content/manuals/engine/release-notes/*.md" \
|
--ignore "content/manuals/engine/release-notes/*.md" \
|
||||||
"#content/manuals/desktop/previous-versions/*.md"
|
--ignore "content/manuals/desktop/previous-versions/*.md"
|
||||||
|
|
||||||
# test validates HTML output and checks for broken links
|
# test validates HTML output and checks for broken links
|
||||||
FROM wjdp/htmltest:v${HTMLTEST_VERSION} AS test
|
FROM wjdp/htmltest:v${HTMLTEST_VERSION} AS test
|
||||||
|
|||||||
Reference in New Issue
Block a user