run munger over examples dir

This commit is contained in:
Daniel Smith
2015-07-13 16:50:17 -07:00
parent bf77ecc3a9
commit ffcc6cadb0
3 changed files with 27 additions and 9 deletions

View File

@@ -144,13 +144,9 @@ kube::util::gen-doc() {
ls "${tmpdir}" | LC_ALL=C sort > "${tmpdir}/.files_generated"
while read file; do
# Add analytics link to generated .md files
if [[ "${file}" == *.md ]]; then
local link path
path="${relative_doc_dest}/${file}"
link=$(kube::util::analytics-link "${path}")
echo -e "\n\n${link}" >> "${tmpdir}/${file}"
fi
# Don't add analytics link to generated .md files -- that is done (and
# checked) by mungedocs.
# Remove all old generated files from the destination
if [[ -e "${tmpdir}/${file}" ]]; then
local original generated