feat(site): generate widget pages and the sitemap from the registry - #60
Merged
Merged
Conversation
The landing site had one indexable page. scripts/build-widget-pages.py now writes /widgets/ with every registry entry and a page per widget that has a real preview render plus a README or a substantial description (12 today), each with its own title, description, OG image, facts from the manifest, and install steps. Widgets below that bar stay on the index under an anchor rather than as thin pages, and gain a page as soon as they get a preview and a README. The Pages workflow runs the generator after staging site/, and it now also writes sitemap.xml, so the static one is gone. CI builds the pages to catch a registry change that breaks them. The home page links to /widgets/ from the nav, the widget gallery, and the footer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ir intro Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks
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.
Summary
scripts/build-widget-pages.py(stdlib only) writes/widgets/(all 26 registry entries, grouped by category) and/widgets/<slug>/for widgets that have a preview render and a README (≥80 words) or a description (≥30 words): 12 today.<title>, meta description, canonical, OG/Twitter image (the widget preview), BreadcrumbList JSON-LD, manifest facts (type, requires, permissions, menu bar, refresh, source), README body, install steps (Gallery for bundled widgets,barshelf://installdeep link +barshelf installfor external ones).sitemap.xmlis now generated (14 URLs); the static file is removed.pages.ymlruns the generator and also triggers onregistry/,widgets/,assets/widget-previews/;ci.ymlbuilds the pages./widgets/from the nav, the widget gallery, and the footer.Test plan
barshelf://install?url=<encoded /tree/ URL>, a formWidgetInstallSourceaccepts🤖 Generated with Claude Code