mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
fix verify-gendocs to call mungedocs --verify on the originals
This commit is contained in:
parent
9ef38c124c
commit
59dca5ba7d
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user