Skip to content

Show component source on the page itself - #3

Merged
zumkorn merged 1 commit into
mainfrom
inline-component-source
Jul 18, 2026
Merged

zumkorn merged 1 commit into
mainfrom
inline-component-source

Conversation

@zumkorn

@zumkorn zumkorn commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

The registry is copy-paste — the source is the component — so sending readers to GitHub to fetch it was the wrong shape for the page. Both files are now on the page, with the theme's copy button.

They are embedded at build time via VitePress snippet imports (<<<) from the registry, vendored as a submodule at vendor/hotwire-bridge-components. The page therefore cannot drift from what the registry holds — which was my reason for linking out in the first place, now handled properly.

  • actions/checkout fetches submodules; the build fails without them
  • README covers cloning with --recurse-submodules and bumping the pointer

Note this does not address the bigger gap — native/ios.md is still a stub, so there is no walkthrough for building the iOS shell these components need.

The registry is copy-paste: the source is the component, so sending
readers to GitHub to fetch it was the wrong shape for the page. Both
files are now embedded and carry the theme's copy button.

They are pulled in at build time with VitePress snippet imports from the
registry vendored as a submodule, so the page cannot drift from what the
registry actually holds. Checkout in CI now fetches submodules, without
which the build fails.
@github-actions

github-actions Bot commented Jul 18, 2026 •

Copy link
Copy Markdown
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
inertia-native-docs ✅ Ready (View Log) Visit Preview c11488a

@zumkorn
zumkorn merged commit 24b1ad3 into main Jul 18, 2026
1 check passed

This branch was successfully deployed

1 active deployment
Preview — c11488ab Deployed Jul 18, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant