docs: source homepage and Casbin examples from runnable files - #461
Merged
Merged
Conversation
Open
22 of 45 tasks
vishr
commented
Sep 30, 2026
vishr
commented
Sep 30, 2026
- Include the enforcer setup from cookbook/casbin/server.go so the JWT and Basic Auth excerpts no longer reference an undefined `ce`; exit when the enforcer fails to load instead of continuing with a nil enforcer. - List echo-jwt and golang-jwt in Dependencies for all locales. - Strip Shiki's tabindex from the hero <pre>: the code window is aria-hidden, so a focusable child fails axe aria-hidden-focus.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The homepage code window maintained a hand-written JSON server while the runnable Hello World recipe returns plain text. Casbin middleware documentation repeated its wrapper in both an implementation excerpt and a full program across five locales.
cookbook/hello-world/server.go, imported through Vite and highlighted with Astro's Code component. Share region extraction with Markdown includes and align the terminal response with the running recipe.Validation: all 37 Node tests;
go vet ./...;go test -race ./...; complete stable/next production builds including API/translation/link/accessibility/performance checks; 767 routes and 56,576 internal links/assets; unchanged route and performance baselines;actionlint;git diff --check. Local browser checks cover desktop/mobile, light/dark, stable/next homepages, reduced motion, all five localized Casbin pages and sampled next pages. No page-wide horizontal overflow. The running Hello World recipe returns HTTP 200 with the displayed plain-text greeting. Existing Kapa requests return 404 on localhost; the external Ask AI service was not validated.Addresses the homepage Hello World and Casbin drift items in Phase 3 of #456. Other Phase 3 work remains tracked there.