mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-18 08:35:10 +00:00
d4fa433d92
`SitePPRLayout` resolved a full site context, which fetches the published site (site-scoped token) and the space with its revision. Only the site part is needed to render the shell, and the shell is re-rendered on every request. Split `GitBookSiteContext` into a `GitBookSiteScopeContext` holding everything derived from the published site, and the space context it is merged with. The PPR layout now resolves only the site scope, under the header scope so it shares its site fetch, and delegates the announcement, header, table of contents, footer, admin toolbar and the page/tag icons to cached components that resolve the revision under their own scope. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>