Closes #497 Implemented: feat(docs): add code-sample language selector#566
Open
Promise278 wants to merge 1 commit into
Open
Closes #497 Implemented: feat(docs): add code-sample language selector#566Promise278 wants to merge 1 commit into
Promise278 wants to merge 1 commit into
Conversation
Add a per-endpoint language selector (cURL / JavaScript) to the docs page. Each endpoint now shows a code sample with a radio-group toggle, a copy-to-clipboard button, and session-persisted language preference. - New CodeSample client component with accessible radiogroup and copy - New docLanguage helper for sessionStorage read/write with SSR guards - Endpoint metadata extended with multi-language code samples - Session-persisted via stableroute.docs.lang sessionStorage key - Copy-to-clipboard works per active language - Edge cases: single-language endpoints, corrupt stored values Coverage: 100% statements, branches, functions, lines on new modules. All 863 tests pass, lint clean, build succeeds.
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.
Closes #497
Add a per-endpoint language selector (cURL / JavaScript) to the docs page. Each endpoint now shows a code sample with a radio-group toggle, a copy-to-clipboard button, and session-persisted language preference.
Coverage: 100% statements, branches, functions, lines on new modules. All 863 tests pass, lint clean, build succeeds.
Summary
Add a per-endpoint language selector (cURL / JavaScript) to the docs page with session-persisted preference and copy-to-clipboard.
What changed:
Key behaviors:
Edge cases covered:
Test results:
Type Of Change