Add "Proof" section to slug detail pages linking to proof source#118
Merged
brunoborges merged 3 commits intomainfrom Feb 28, 2026
Merged
Add "Proof" section to slug detail pages linking to proof source#118brunoborges merged 3 commits intomainfrom
brunoborges merged 3 commits intomainfrom
Conversation
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add link to proof in slug detail page
Add "Proof" section to slug detail pages linking to proof source
Feb 28, 2026
Member
|
@copilot also needs to cover translations for the section title |
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Contributor
Author
Done in f9a2dc3. Added
The generator now runs with zero missing-key warnings for |
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.
Each pattern's detail page now surfaces a link to its corresponding JBang proof script, placed between "Related Documentation" and "Related patterns".
What changed
templates/slug-template.html— Added{{proofSection}}placeholder between the docs and related sectionstranslations/strings/en.yaml— Addedsections.proofandsections.proofLinkkeystranslations/strings/{locale}.yaml— Addedsections.proofandsections.proofLinktranslations for all 11 non-English locales (de, es, fr, it, pt-BR, pl, tr, ar, ja, ko, zh-CN)html-generators/generate.java/generate.py— AddedslugToPascalCase/slug_to_pascal_casehelpers andrenderProofSection/render_proof_sectionfunctions; wired intogenerateHtml/generate_htmlBehavior
The section only renders when a proof file exists (
proof/{category}/{PascalCase}.java). Currently 105 of 112 patterns have proof files; the remaining 7 silently omit the section.Generated link example for
type-inference-with-var:The section reuses existing
.docs-section/.doc-linkstyles for visual consistency with "Related Documentation". The section title and link label are fully translated across all supported locales.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.