-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (23 loc) · 871 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# =================================
MARKDOWNLINT_CONFIG = ./.config/.markdownlint.yaml
YAMLLINT_CONFIG = ./.config/.yamllint.yaml
# =================================
check-all: check-md check-yaml
# =================================
check-md:
# Using two slashes at the beginning of the paths for Windows bash shell
docker run --rm --tty --network=none --volume="${CURDIR}:/markdown:ro" \
--workdir=//markdown/ \
06kellyjac/markdownlint-cli:0.27.1-alpine \
--config=${MARKDOWNLINT_CONFIG} \
--ignore=./gtest/README.md \
-- ./
check-yaml:
# Using two slashes at the beginning of the paths for Windows bash shell
docker run --rm --tty --network=none --volume="$(CURDIR):/data:ro" \
--workdir=//data/ \
cytopia/yamllint:1.26-0.9 \
-c=${YAMLLINT_CONFIG} \
--strict \
-- ./
# =================================