fix verify-gendocs to call mungedocs --verify on the originals

This commit is contained in:
Daniel Smith 2015-07-10 10:39:40 -07:00
parent 9ef38c124c
commit 59dca5ba7d

View File

@ -46,7 +46,9 @@ _tmp="${KUBE_ROOT}/_tmp"
mkdir -p "${_tmp}" mkdir -p "${_tmp}"
cp -a "${DOCROOT}" "${TMP_DOCROOT}" cp -a "${DOCROOT}" "${TMP_DOCROOT}"
"${mungedocs}" "--verify=true" "--root-dir=${TMP_DOCROOT}" # mungedocs --verify can (and should) be run on the real docs, otherwise their
# links will be distorted. --verify means that it will not make changes.
"${mungedocs}" "--verify=true" "--root-dir=${DOCROOT}"
ret=$? ret=$?
if [[ $ret -eq 1 ]]; then if [[ $ret -eq 1 ]]; then
echo "${DOCROOT} is out of date. Please run hack/run-gendocs.sh" echo "${DOCROOT} is out of date. Please run hack/run-gendocs.sh"