From 215c7122bad1ecfb698a821802db192c7b5e995f Mon Sep 17 00:00:00 2001 From: avdoseferovic Date: Fri, 10 Jul 2026 15:48:51 +0200 Subject: [PATCH] fix(ci): keep embedded example .go files in pages deploy The assemble step deleted every .go file from the site, but docsify embeds docs/assets/examples/*/main.go via ':include', so all code snippets on the docs site 404'd. Only strip test files instead. Co-Authored-By: Claude Fable 5 --- .github/workflows/pages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index d9120a14..0f554755 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -46,7 +46,8 @@ jobs: cp -r docs _site rm -f _site/go.mod _site/go.sum rm -rf _site/plans - find _site -name '*.go' -delete + # Keep assets/examples/*/main.go — docsify embeds them via ':include'. + find _site -name '*_test.go' -delete mkdir -p _site/playground cp examples/cmd/wasm/web/index.html _site/playground/ cp examples/cmd/wasm/web/paper.wasm _site/playground/