docs/htmlChecks.sh
Stone b7b7a34ff7 Storage updates
Created new storage/kubernetes/index file and modified storage/index
to point to it. This is to match changes to other docs.

Stripped Windows line ends off htmlChecks.sh

Signed-off-by: Stone <ronald.stone@windriver.com>
Change-Id: I328c4bf39cf90f86fb08f02af728d99e168709cc
2021-02-17 12:55:32 +00:00

27 lines
772 B
Bash
Executable File

#!/bin/bash
#
# Post-build checks on HTML go here.
RED='\033[0;31m'
NC='\033[0m' # No Color
cd doc/build
# 1. Check for rST formatting issues that don't cause build warnings/errors
echo "Checking for \"grey bar\" formatting errors in output ..."
GREY_FILES=( $(grep -rl --include="*.html" "blockquote" .) )
if [ ${#GREY_FILES[@]} != 0 ]; then
echo "Found ${#GREY_FILES[@]} file(s):"
for FILE in ${GREY_FILES[@]};
do
echo -e "${RED}$FILE${NC}"
done
echo "Using a browser, locate vertical grey bars in the left margin of the above file(s), then correct the issue(s) in the cooresponding rST file(s)."
# Set -W to halt tox
if [[ $1 == "-W" ]]; then
exit 1
fi
fi
# 2. do - check for emdash before option (missing backticks)