diff --git a/.github/scripts/gen-docs.sh b/.github/scripts/gen-docs.sh index c268b4def56..17c285078b7 100755 --- a/.github/scripts/gen-docs.sh +++ b/.github/scripts/gen-docs.sh @@ -93,6 +93,7 @@ generate_docs() { --output-file="README.md" \ --template-files="/__w/charts/charts/templates/docs/README.md.gotmpl" \ --chart-search-root="${chart}" + sed -i "s/TRAINPLACEHOLDER/${train}/" "${chart}/README.md" } export -f generate_docs diff --git a/templates/docs/README.md.gotmpl b/templates/docs/README.md.gotmpl index 4e60af36c6e..7023c3d4727 100644 --- a/templates/docs/README.md.gotmpl +++ b/templates/docs/README.md.gotmpl @@ -14,7 +14,7 @@ https://charts.truecharts.org TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE. This readme is just an automatically generated general guide on installing our Helm Charts and Apps. -For more information, please click here: [{{ template "chart.name" . }}](https://truecharts.org/docs/charts/stable/{{ template "chart.name" . }}) +For more information, please click here: [{{ template "chart.name" . }}](https://truecharts.org/docs/charts/TRAINPLACEHOLDER/{{ template "chart.name" . }}) **This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)** {{- end -}} diff --git a/tools/build-release.sh b/tools/build-release.sh index 6670d0f8cbf..250013f7a43 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -528,6 +528,7 @@ generate_docs() { --template-files="/__w/apps/apps/templates/docs/helm-values.md.gotmpl" \ --chart-search-root="${chart}" fi + sed -i "s/TRAINPLACEHOLDER/${train}/" "${chart}/README.md" fi } export -f generate_docs