From 59dca5ba7d70cde8a0b50b182f817ccfece92cab Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Fri, 10 Jul 2015 10:39:40 -0700 Subject: [PATCH] fix verify-gendocs to call mungedocs --verify on the originals --- hack/verify-gendocs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/verify-gendocs.sh b/hack/verify-gendocs.sh index 331a25edf3e..17c6637bef6 100755 --- a/hack/verify-gendocs.sh +++ b/hack/verify-gendocs.sh @@ -46,7 +46,9 @@ _tmp="${KUBE_ROOT}/_tmp" mkdir -p "${_tmp}" 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=$? if [[ $ret -eq 1 ]]; then echo "${DOCROOT} is out of date. Please run hack/run-gendocs.sh"