stable/tests/test_docs.sh

14 lines
334 B
Bash
Raw Normal View History

2019-11-05 14:33:48 +00:00
#!/bin/bash
# Test Documentation boxes -
# !!! <TYPE>: is not allowed!
# !!! <TYPE> "title" - Title needs to be quoted!
2020-08-13 06:05:05 +00:00
# !!! <TYPE> Spaces at the beginning are not allowed
grep -Er '^!{3}\s\S+:|^!{3}\s\S+\s[^"]|^\s+!{3}\s\S+' docs/*
2019-11-05 14:33:48 +00:00
if [ $? -ne 0 ]; then
echo "Docs test success."
exit 0
fi
echo "Docs test failed."
exit 1