change the relative links to definition in operations.html to satisfy the new path set in the kubernetes.io
This commit is contained in:
@@ -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
|
||||
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>>
|
||||
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"
|
||||
sed -i 's|== Paths|== Operations|g' ./paths.adoc
|
||||
|
@@ -72,7 +72,7 @@ for ver in $VERSIONS; do
|
||||
-v "${SWAGGER_PATH}":/swagger-source:z \
|
||||
-v "${REGISTER_FILE}":/register.go:z \
|
||||
--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}"
|
||||
done
|
||||
|
||||
|
Reference in New Issue
Block a user