mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 16:50:03 +00:00
only check links on ci/cd
This commit is contained in:
15
scripts/check-doc.sh
vendored
15
scripts/check-doc.sh
vendored
@@ -21,10 +21,15 @@ if ! which remark >/dev/null 2>&1; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "------------------------"
|
in_cicd="${GH_WORKFLOW:-}"
|
||||||
echo "checking internal links"
|
if [ -n "${in_cicd}" ]; then
|
||||||
find . -type f -iname '*.md' | while read -r line; do
|
echo "------------------------"
|
||||||
remark -f -u validate-links "${line}"
|
echo "checking internal links"
|
||||||
done
|
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"
|
echo "documentation OK"
|
||||||
|
|||||||
Reference in New Issue
Block a user