Skip to content

Commit 1772be7

Browse files
committed
Preserve backticks in Helm ref docs
The Cloudflare builds were failing, and I noticed this error in them: ``` 2025-12-05T16:56:27.380Z Error occurred prerendering page "/docs/kagent/resources/helm". Read more: https://nextjs.org/docs/messages/prerender-error 2025-12-05T16:56:27.381Z ReferenceError: KMCP_VERSION is not defined 2025-12-05T16:56:27.381Z at g (.next/server/app/docs/kagent/resources/helm/page.js:1:3812) 2025-12-05T16:56:27.381Z at h (.next/server/app/docs/kagent/resources/helm/page.js:1:37261) 2025-12-05T16:56:27.381Z at stringify (<anonymous>) { 2025-12-05T16:56:27.382Z digest: '3541987100' 2025-12-05T16:56:27.382Z } ``` the update-ref-docs was removing backticks from the Helm ref docs, I'm not sure why. But I think adding it will prevent the build from thinking this `${KMCP_VERSION}` variable is jsx that it needs to interpret. Signed-off-by: Art Berger <art.berger@solo.io>
1 parent 7d04ec9 commit 1772be7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/update-ref-docs.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,6 @@ jobs:
224224
# (might be replaced by helm docs template in the future)
225225
sed -i '/!\[Version:/,/^$/d' "src/app/docs/kagent/resources/helm/temp.mdx"
226226

227-
# Remove backticks from the Default column in the table
228-
sed -i 's/| `\([^`]*\)` |/| \1 |/g' "src/app/docs/kagent/resources/helm/temp.mdx"
229-
230227
# Add frontmatter
231228
echo '---' > "src/app/docs/kagent/resources/helm/page.mdx"
232229
echo 'title: "Helm Chart Configuration"' >> "src/app/docs/kagent/resources/helm/page.mdx"

src/app/docs/kagent/resources/helm/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A Helm chart for kagent, built with Google ADK
3030
| file://../agents/promql | promql-agent | |
3131
| file://../tools/grafana-mcp | grafana-mcp | |
3232
| file://../tools/querydoc | querydoc | |
33-
| oci://ghcr.io/kagent-dev/kmcp/helm | kmcp | ${KMCP_VERSION} |
33+
| oci://ghcr.io/kagent-dev/kmcp/helm | kmcp | `${KMCP_VERSION}` |
3434
| oci://ghcr.io/kagent-dev/tools/helm | kagent-tools | 0.0.12 |
3535

3636
## Values

0 commit comments

Comments
 (0)