mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 06:34:16 +00:00
move to markdown-link-check for external links
This commit is contained in:
@@ -10,7 +10,7 @@ install:
|
|||||||
- "pip install -r tests-requirements.txt"
|
- "pip install -r tests-requirements.txt"
|
||||||
- "pip install -r requirements.txt"
|
- "pip install -r requirements.txt"
|
||||||
- "npm install -g remark-cli remark-validate-links"
|
- "npm install -g remark-cli remark-validate-links"
|
||||||
- "env GO111MODULE=on go get -u github.com/raviqqe/liche"
|
- "npm install -g markdown-link-check"
|
||||||
script:
|
script:
|
||||||
./tests.sh
|
./tests.sh
|
||||||
after_success:
|
after_success:
|
||||||
|
|||||||
12
tests.sh
12
tests.sh
@@ -82,17 +82,17 @@ else
|
|||||||
remark -f -u validate-links *.md
|
remark -f -u validate-links *.md
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## test the doc with liche
|
## test the doc with markdown-link-check
|
||||||
## https://github.com/raviqqe/liche/
|
## https://github.com/tcort/markdown-link-check
|
||||||
set +e
|
set +e
|
||||||
which liche >/dev/null 2>&1
|
which markdown-link-check >/dev/null 2>&1
|
||||||
r="$?"
|
r="$?"
|
||||||
set -e
|
set -e
|
||||||
if [ "$r" != "0" ]; then
|
if [ "$r" != "0" ]; then
|
||||||
echo "[WARNING] install \"liche\" to test the doc"
|
echo "[WARNING] install \"markdown-link-check\" to test the doc"
|
||||||
else
|
else
|
||||||
liche -r -v docs
|
for i in `find docs -iname '*.md'`; do markdown-link-check $i; done
|
||||||
liche -v README.md
|
markdown-link-check README.md
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## done
|
## done
|
||||||
|
|||||||
Reference in New Issue
Block a user