address comments and fix
This commit is contained in:
parent
4e4c67c624
commit
bd302d9534
@ -84,7 +84,7 @@ while read file; do
|
|||||||
fi
|
fi
|
||||||
done <"${OUTPUT_TMP}/.generated_html"
|
done <"${OUTPUT_TMP}/.generated_html"
|
||||||
|
|
||||||
echo "Moving api reference docs from ${OUT_TMP} to ${OUTPUT}"
|
echo "Moving api reference docs from ${OUTPUT_TMP} to ${OUTPUT}"
|
||||||
|
|
||||||
cp -af "${OUTPUT_TMP}"/* "${OUTPUT}"
|
cp -af "${OUTPUT_TMP}"/* "${OUTPUT}"
|
||||||
rm -r ${OUTPUT_TMP}
|
rm -r ${OUTPUT_TMP}
|
||||||
|
@ -26,16 +26,16 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
|
|||||||
kube::golang::setup_env
|
kube::golang::setup_env
|
||||||
|
|
||||||
API_REFERENCE_DOCS_ROOT="${KUBE_ROOT}/docs/api-reference"
|
API_REFERENCE_DOCS_ROOT="${KUBE_ROOT}/docs/api-reference"
|
||||||
HOST_OUTPUT_DIR="${KUBE_ROOT}/_tmp/api-reference"
|
OUTPUT_DIR="${KUBE_ROOT}/_tmp/api-reference"
|
||||||
mkdir -p ${HOST_OUTPUT_DIR}
|
mkdir -p ${OUTPUT_DIR}
|
||||||
TMP_ROOT="${KUBE_ROOT}/_tmp"
|
TMP_ROOT="${KUBE_ROOT}/_tmp"
|
||||||
|
|
||||||
# Generate API reference docs in tmp.
|
# Generate API reference docs in tmp.
|
||||||
"./hack/update-api-reference-docs.sh" "${HOST_OUTPUT_DIR}"
|
"./hack/update-api-reference-docs.sh" "${OUTPUT_DIR}"
|
||||||
|
|
||||||
echo "diffing ${API_REFERENCE_DOCS_ROOT} against freshly generated docs"
|
echo "diffing ${API_REFERENCE_DOCS_ROOT} against freshly generated docs"
|
||||||
ret=0
|
ret=0
|
||||||
diff -Naupr -I 'Last update' --exclude=*.md "${API_REFERENCE_DOCS_ROOT}" "${HOST_OUTPUT_DIR}" || ret=$?
|
diff -Naupr -I 'Last update' --exclude=*.md "${API_REFERENCE_DOCS_ROOT}" "${OUTPUT_DIR}" || ret=$?
|
||||||
rm -rf "${TMP_ROOT}"
|
rm -rf "${TMP_ROOT}"
|
||||||
if [[ $ret -eq 0 ]]
|
if [[ $ret -eq 0 ]]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user