1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 20:54:51 +00:00

only check links on ci/cd

This commit is contained in:
deadc0de6
2023-11-14 21:26:25 +01:00
parent 6d2c5ea59f
commit 18e326b14b

15
scripts/check-doc.sh vendored
View File

@@ -21,10 +21,15 @@ if ! which remark >/dev/null 2>&1; then
exit 1
fi
echo "------------------------"
echo "checking internal links"
find . -type f -iname '*.md' | while read -r line; do
remark -f -u validate-links "${line}"
done
in_cicd="${GH_WORKFLOW:-}"
if [ -n "${in_cicd}" ]; then
echo "------------------------"
echo "checking internal links"
find . -type f -iname '*.md' | while read -r line; do
remark -f -u validate-links "${line}"
done
else
echo "not checking internal links..."
fi
echo "documentation OK"