Skip to content

fix(ci): keep embedded example .go files in pages deploy#7

Merged
avdoseferovic merged 1 commit into
mainfrom
fix/pages-keep-example-go-files
Jul 10, 2026
Merged

fix(ci): keep embedded example .go files in pages deploy#7
avdoseferovic merged 1 commit into
mainfrom
fix/pages-keep-example-go-files

Conversation

@avdoseferovic

Copy link
Copy Markdown
Owner

Summary

  • The "Assemble site" step in pages.yml ran find _site -name '*.go' -delete, stripping every .go file from the deployed site.
  • docsify embeds docs/assets/examples/*/main.go directly via ':include :type=code', so every code snippet on the docs site returned 404 (e.g. GET /paper/assets/examples/simplest/main.go).
  • Changed the delete to target only *_test.go, so the embedded main.go examples ship with the site while test files stay out of the deploy.

Where should the reviewer start

  • .github/workflows/pages.yml — the one-line change in the "Assemble site" step.
  • docs/examples/simplest.md — example of a docsify ':include' that depends on these files being deployed.

Notes

Verified locally by simulating the assemble step: all assets/examples/*/main.go files survive and zero *_test.go files remain. The only non-test .go files under docs/ are the embedded examples, so nothing unwanted is added to the deploy.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avdoseferovic avdoseferovic merged commit 14804e9 into main Jul 10, 2026
8 checks passed
@avdoseferovic avdoseferovic deleted the fix/pages-keep-example-go-files branch July 10, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant