#!/bin/bash # Uncomment this to see the commands as they are run # set -x VERSION=1.4 # Processes api reference docs. function process_api_ref_docs { # Replace html preview links by relative links to let k8s.io render them. local html_preview_prefix="https:\/\/htmlpreview.github.io\/?https:\/\/github.com\/kubernetes\/kubernetes\/blob\/" find . -name '*.*' -type f -exec sed -i -e "s/${html_preview_prefix}HEAD//g" {} \; find . -name '*.*' -type f -exec sed -i -e "s/${html_preview_prefix}release-$VERSION//g" {} \; # Format html find . -name '*.html' -type f -exec sed -i -e '/