Commit f79e28c1 authored by Chao Xu's avatar Chao Xu

change the relative links to definition in operations.html to satisfy the new…

change the relative links to definition in operations.html to satisfy the new path set in the kubernetes.io
parent 849bc29e
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -46,11 +46,11 @@ sed -i "1i $buf" ./definitions.adoc ...@@ -46,11 +46,11 @@ sed -i "1i $buf" ./definitions.adoc
# fix the links in .adoc, replace <<x.y>> with link:definitions.html#_x_y[x.y], and lowercase the _x_y part # fix the links in .adoc, replace <<x.y>> with link:definitions.html#_x_y[x.y], and lowercase the _x_y part
sed -i -e 's|<<\(.*\)\.\(.*\)>>|link:#_\L\1_\2\E[\1.\2]|g' ./definitions.adoc sed -i -e 's|<<\(.*\)\.\(.*\)>>|link:#_\L\1_\2\E[\1.\2]|g' ./definitions.adoc
sed -i -e 's|<<\(.*\)\.\(.*\)>>|link:definitions.html#_\L\1_\2\E[\1.\2]|g' ./paths.adoc sed -i -e 's|<<\(.*\)\.\(.*\)>>|link:../definitions#_\L\1_\2\E[\1.\2]|g' ./paths.adoc
# fix the link to <<any>> # fix the link to <<any>>
sed -i -e 's|<<any>>|link:#_any[any]|g' ./definitions.adoc sed -i -e 's|<<any>>|link:#_any[any]|g' ./definitions.adoc
sed -i -e 's|<<any>>|link:definitions.html#_any[any]|g' ./paths.adoc sed -i -e 's|<<any>>|link:../definitions#_any[any]|g' ./paths.adoc
# change the title of paths.adoc from "paths" to "operations" # change the title of paths.adoc from "paths" to "operations"
sed -i 's|== Paths|== Operations|g' ./paths.adoc sed -i 's|== Paths|== Operations|g' ./paths.adoc
......
...@@ -72,7 +72,7 @@ for ver in $VERSIONS; do ...@@ -72,7 +72,7 @@ for ver in $VERSIONS; do
-v "${SWAGGER_PATH}":/swagger-source:z \ -v "${SWAGGER_PATH}":/swagger-source:z \
-v "${REGISTER_FILE}":/register.go:z \ -v "${REGISTER_FILE}":/register.go:z \
--net=host -e "https_proxy=${KUBERNETES_HTTPS_PROXY:-}" \ --net=host -e "https_proxy=${KUBERNETES_HTTPS_PROXY:-}" \
gcr.io/google_containers/gen-swagger-docs:v7 \ gcr.io/google_containers/gen-swagger-docs:v8 \
"${SWAGGER_JSON_NAME}" "${SWAGGER_JSON_NAME}"
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment