1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 05:04:17 +00:00

move test helpers

This commit is contained in:
deadc0de6
2023-01-28 16:14:19 +01:00
committed by deadc0de
parent 2f663e9dc4
commit b9015528bb
5 changed files with 6 additions and 4 deletions

29
scripts/check-doc.sh vendored Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/sh
# author: deadc0de6 (https://github.com/deadc0de6)
# Copyright (c) 2022, deadc0de6
set -e
## test doc external links
find . -type f -iname '*.md' | while read -r line; do
./scripts/check_links.py "${line}"
done
## test the doc internal links
## https://github.com/remarkjs/remark-validate-links
## https://github.com/tcort/markdown-link-check
## npm install -g remark-cli remark-validate-links
set +e
which remark >/dev/null 2>&1
r="$?"
set -e
if [ "$r" != "0" ]; then
echo "[WARNING] install \"remark\" to test the doc"
exit 1
fi
find . -type f -iname '*.md' | while read -r line; do
remark -f -u validate-links "${line}"
done
echo "documentation OK"