From 9a433f48d7c2e34adf513078092e322df9464e1c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Mar 2026 17:21:32 +0000 Subject: [PATCH] feat: add install instructions to OpenClaw homepage snippet Adds npm install and openclaw plugin enable comments above the JSON config, and switches lang from json to jsonc for proper comment highlighting. https://claude.ai/code/session_01HftF1nebzvUzQy4y4zGJk6 --- .vitepress/theme/HomeCodeSnippet.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.vitepress/theme/HomeCodeSnippet.vue b/.vitepress/theme/HomeCodeSnippet.vue index 78d1184..5fee355 100644 --- a/.vitepress/theme/HomeCodeSnippet.vue +++ b/.vitepress/theme/HomeCodeSnippet.vue @@ -95,8 +95,12 @@ const result = streamText({ }, openclaw: { - lang: 'json', - code: `{ + lang: 'jsonc', + code: `// npm install @runcycles/openclaw-budget-guard +// openclaw plugins enable cycles-openclaw-budget-guard + +// openclaw.json +{ "plugins": { "entries": { "cycles-openclaw-budget-guard": { @@ -116,7 +120,7 @@ const result = streamText({ onMounted(async () => { const highlighter = await createHighlighter({ themes: ['github-dark', 'github-light'], - langs: ['python', 'typescript', 'java', 'json'], + langs: ['python', 'typescript', 'java', 'jsonc'], }) const result = {}