mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Add a gendocs pre-submit hook.
This commit is contained in:
@@ -80,3 +80,16 @@ if [[ "${#files_need_description[@]}" -ne 0 ]]; then
|
||||
echo
|
||||
) >> $1
|
||||
fi
|
||||
|
||||
if ! hack/verify-gendocs.sh > /dev/null; then
|
||||
(
|
||||
echo
|
||||
echo "# *** ERROR: *** docs are out of sync between cli and markdown"
|
||||
echo "# run hack/gendocs.sh > docs/kubectl.md to regenerate"
|
||||
echo
|
||||
echo "#"
|
||||
echo "# Your commit will be aborted unless you regenerate docs."
|
||||
echo " COMMIT_BLOCKED_ON_GENDOCS"
|
||||
echo
|
||||
) >> $1
|
||||
fi
|
||||
|
Reference in New Issue
Block a user