Improve docs test to catch !!! errors
This commit is contained in:
parent
5d61c56650
commit
e45e41adb4
@ -2,7 +2,8 @@
|
|||||||
# Test Documentation boxes -
|
# Test Documentation boxes -
|
||||||
# !!! <TYPE>: is not allowed!
|
# !!! <TYPE>: is not allowed!
|
||||||
# !!! <TYPE> "title" - Title needs to be quoted!
|
# !!! <TYPE> "title" - Title needs to be quoted!
|
||||||
grep -Er '^!{3}\s\S+:|^!{3}\s\S+\s[^"]' docs/*
|
# !!! <TYPE> Spaces at the beginning are not allowed
|
||||||
|
grep -Er '^!{3}\s\S+:|^!{3}\s\S+\s[^"]|^\s+!{3}\s\S+' docs/*
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Docs test success."
|
echo "Docs test success."
|
||||||
|
Loading…
Reference in New Issue
Block a user