@@ -20,6 +20,25 @@ function clone_or_pull {
2020 fi
2121}
2222
23+ function _fix_helm_examples {
24+ local HELM_ROUTER_README=" ${script_root} /docusaurus/docs/_remotes/helm-charts/charts/ziti-router/README.md"
25+ local HELM_ROUTER_README_EXAMPLES_URL=" https://github.com/openziti/helm-charts/tree/main/charts/ziti-router/examples"
26+
27+ echo " 🔧 _fix_helm_readme: checking file: $HELM_ROUTER_README "
28+ if [ -f " $HELM_ROUTER_README " ]; then
29+ echo " ✅ found file, running sed..."
30+ set -x
31+ sed -i -E " s@\]\(\.?/examples/?\)@](${HELM_ROUTER_README_EXAMPLES_URL} )@g" " $HELM_ROUTER_README "
32+ set +x
33+ echo " ✅ sed completed successfully."
34+ else
35+ echo " ❌ file not found: $HELM_ROUTER_README "
36+ echo " 📂 available dirs under ${script_root} /docusaurus/docs/:"
37+ ls -R docs || true
38+ exit 1
39+ fi
40+ }
41+
2342fix_helm_ziti_edge_tunnel () {
2443 local _target=" ${ZITI_DOC_GIT_LOC} /helm-charts/charts/ziti-edge-tunnel/README.md"
2544 echo " fixing $_target to work with docusaurus"
@@ -95,10 +114,11 @@ if [[ "${SKIP_GIT}" == no ]]; then
95114 clone_or_pull " https://github.com/openziti/helm-charts" " helm-charts" > /dev/null
96115 clone_or_pull " https://github.com/openziti-test-kitchen/kubeztl" " kubeztl" > /dev/null
97116 clone_or_pull " https://github.com/openziti/desktop-edge-win" " desktop-edge-win" > /dev/null
98-
99- fix_helm_ziti_edge_tunnel
100117fi
101118
119+ fix_helm_ziti_edge_tunnel
120+ _fix_helm_examples
121+
102122if [[ " ${SKIP_CLEAN} " == no ]]; then
103123 if test -d " ${SDK_ROOT_TARGET} " ; then
104124 # specifically using ../ziti-doc just to remove any chance to rm something unintended
0 commit comments