Skip to content

feat: Avalonia components in the browser for the docs previews - #22

Merged
Shewart merged 2 commits into
mainfrom
feat/avalonia-web-preview
Oct 14, 2026
Merged

Shewart merged 2 commits into
mainfrom
feat/avalonia-web-preview

Conversation

@Shewart

@Shewart Shewart commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

What

  • New examples/Avalonia.Preview: the Avalonia components compiled to WebAssembly, showing one preview per address (?c=button, &theme=dark|light). It compiles the demo's own component files, so it can't drift from them.
  • The docs site supplies its own previews with -p:PreviewsDir=<folder>; the four in Previews/ are samples.
  • The theme follows the hosting page (shelldocs-theme messages), and the app reports its content height.
  • Not in the solution, so CI and the solution build don't need the WebAssembly workload.

Merge with a merge commit: the docs site's Dockerfile pins b3d98d4 from this branch until it moves to main.

Checked

  • dotnet build -c Release: 0 warnings, with and without PreviewsDir.
  • Published size: 16.4 MB uncompressed, about 4.5 MB with Brotli. Starts in about 2 s from an empty cache on localhost.
  • 81 docs previews render in both themes in headless Chrome; menus, pickers, dialogs and toasts open.

@github-actions github-actions Bot added documentation Improvements or additions to documentation examples labels Oct 14, 2026
@Shewart
Shewart merged commit 83bfdfb into main Oct 14, 2026
7 checks passed
@Shewart
Shewart deleted the feat/avalonia-web-preview branch October 14, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant