mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: run 'marker' to find broken links
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
e9a63473a0
commit
c2959c998f
12
test
12
test
@ -233,6 +233,18 @@ function fmt_pass {
|
|||||||
exit 255
|
exit 255
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# TODO: check other markdown files when marker handles headers with '[]'
|
||||||
|
if which marker >/dev/null; then
|
||||||
|
echo "Checking marker to find broken links..."
|
||||||
|
markerResult=`marker --skip-http --root ./Documentation 2>&1 || true`
|
||||||
|
if [ -n "${markerResult}" ]; then
|
||||||
|
echo -e "marker checking failed:\n${markerResult}"
|
||||||
|
exit 255
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Skipping marker..."
|
||||||
|
fi
|
||||||
|
|
||||||
if which goword >/dev/null; then
|
if which goword >/dev/null; then
|
||||||
echo "Checking goword..."
|
echo "Checking goword..."
|
||||||
# get all go files to process
|
# get all go files to process
|
||||||
|
Loading…
x
Reference in New Issue
Block a user