Add an 'is versioned' tag to docs when releasing

This commit is contained in:
Tim Hockin 2015-07-10 00:40:18 -07:00
parent 981f4550e8
commit 594bcf3c9d

View File

@ -102,6 +102,10 @@ for doc in "${mdfiles[@]}"; do
-e '/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d' \
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \
"${doc}"
is_versioned_tag='<!-- TAG IS_VERSIONED -->'
if ! grep -q "${is_versioned_tag}" "${doc}"; then
echo "${is_versioned_tag}" >> "${doc}"
fi
done
# Update API descriptions to match this version.