Skip to content

Documentation: make multi-code examples copy-paste ready#6688

Merged
stsrki merged 3 commits into
rel-2.2from
rel-2.2-docs-example
Jul 16, 2026
Merged

Documentation: make multi-code examples copy-paste ready#6688
stsrki merged 3 commits into
rel-2.2from
rel-2.2-docs-example

Conversation

@stsrki

@stsrki stsrki commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

This improves multi-code documentation examples by preserving their individual tabs while providing a single copy button that produces one complete, copy-paste-ready Razor component. Required models, services, validators, and supporting types are included in the component’s @code block, while documentation-specific namespaces and dependencies are omitted.

The behavior now covers DataGrid and other multi-code examples, including Autocomplete, DropdownList, ListView, FluentValidation, ModalProvider, and OffcanvasProvider examples. Existing example behavior, such as LocalStorage usage, is preserved.

The documentation compiler was also refactored so CodeSnippets only coordinates snippet generation. Example-specific transformations are isolated in focused source composers behind a shared composition pipeline.

@stsrki stsrki mentioned this pull request Jul 16, 2026
@stsrki
stsrki merged commit 96b1da9 into rel-2.2 Jul 16, 2026
2 checks passed
@stsrki
stsrki deleted the rel-2.2-docs-example branch July 16, 2026 20:16
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant