docs: updates for release 0.6.0#1178
Conversation
Closes #1164 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closes #1161 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update the Lit SSR example to use the new object API where
onPageRendered receives { html, frontMatter, url, path } instead of a
raw HTML string. Add onFormatRendered to the worker pool hook list.
Closes #1160
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closes #1156 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closes #1162 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closes #1154 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closes #1119 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closes #1163 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closes #1155 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Closes #1158 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Umbrella branch for all v0.6.0 documentation updates. Individual changes merge here before shipping to main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for alloyssg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…ect-api docs: update onPageRendered examples to object API
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 31 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughThe ChangesPage-rendered hook migration
SSR component directory documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…e-iteration docs: document onFormatRendered hook reference
docs: add structure.components to configuration reference
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/content/advanced/ssr.md`:
- Line 53: Update the onPageRendered hook registration in the SSR example to
pass an empty options object as the second argument before the async callback,
matching the alloy.hook API signature.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6906ae99-24df-48d0-871c-adfd14ef2fd0
📒 Files selected for processing (7)
docs/content/advanced/ssr.mddocs/content/hooks/index.mddocs/content/plugins/index.mddocs/content/plugins/quickjs.mddocs/plugins/lit-ssr.jsdocs/plugins/prettify.jsdocs/plugins/shiki.js
… sections Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
docs: document plugin dependency tracking
docs: document server lockfile behavior for dev/serve
docs: update onBuildComplete payload for v0.6.0
docs: update onPageRendered examples in Node plugins page
Replace two dense paragraphs with a routing table and shorter prose. Payload field details stay on the hooks page where they belong. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Heading to noun phrase matching page conventions - "route through" → "fire" - Drop redundant "for that format" and "Hooks that fire" column header - Inline link text instead of "See X for Y" pattern Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ormats docs: add onFormatRendered cross-reference to output formats page
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
docs: document .alloy/ directory in project structure page
- Cut 35-word opening sentence to two shorter ones - Remove "This is useful for:" throat-clearing - Fold use cases into prose instead of bolded bullet list - Remove em dash - Cut "on disk" repetition and redundant "re-evaluates all plugin files" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
docs: document onFileChanged restart behavior on Node plugins page
docs: add release notes link to upgrade page
- Remove em dash, "silently" adverb - Fix passive constructions: "is freed" → "Alloy frees", "are auto-cleaned" → "Alloy removes", "Paths are normalized" → "Alloy normalizes", "a warning prints" → "Alloy prints a warning" - Cut redundant "Previously received a raw HTML string" (breaking note already says "instead of") - Fix pagesSkipped → PagesSkipped (old field name was PascalCase) - Add missing subjects on "Previously" sentences - Tighten mixed-outputs sentence, collapse "This feature is experimental" inline Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
docs: create v0.6.0 release notes page
The alloy.hook() API requires an options object as the second argument. The SSR example was missing it after the v0.6.0 object API migration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Umbrella PR for all v0.6.0 documentation updates. Individual changes are reviewed in separate PRs targeting this branch:
Merge order for
hooks/index.md: #1166 → #1167 → #1169 → #1171 (each edits different sections but will need conflict resolution in sequence).Merge this to main after PR #1108 (v0.6.0 release) ships.
🤖 Generated with Claude Code
Summary by CodeRabbit
onPageRenderedhook guidance and examples to use apageobject (mutatepage.html, keep metadata read-only).onPageRenderedvsonFormatRenderedis applied, and updated related examples (SSR, formatting, syntax highlighting, plugin usage).components/directory and thestructure.componentsoverride for SSR component sources.onPageRenderedimplementations to transform and return the full page context consistently, including on failure.