Document renderInnerPage and renderFullPage API#244
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a dedicated README subsection documenting the PageData.renderInnerPage() / PageData.renderFullPage() APIs, intended to close the discoverability gap introduced by their use in the RSS feed template example.
Changes:
- Added an “Accessing rendered page content” section describing
renderInnerPage()vsrenderFullPage() - Documented where these APIs can be used and provided a suggested pre-render + cache pattern
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…Map concurrency - Availability: renderInnerPage/renderFullPage are also callable from page functions and layouts, not just templates and global.data.js - Cache key: use page.pageInfo.path consistently (the read side previously used the undefined 'post.path') - Concurrency: switch the pre-render example from Promise.all to pMap with concurrency:4 to avoid unbounded parallelism on large sites
Coverage Report for CI Build 24611709137Coverage remained the same at 91.469%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…tion Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Closes #229
renderInnerPage()is used in the RSS feed template example but has no dedicated reference explaining what it does, when it is available, or how to use it efficiently.This adds an "Accessing rendered page content" subsection after the RSS Feed Template Example covering:
renderInnerPage()andrenderFullPage()return and how they differglobal.data.js, page functions, and layouts (whenpagesis accessible)PageDatainstance to be successfully initialized — pages that failed init will throw