Compare commits

..

1 Commits

Author SHA1 Message Date
github-actions[bot] 46bcd37bc3 Version Packages 2026-11-26 08:23:52 +00:00
136 changed files with 268 additions and 2010 deletions
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Keep links in generated Markdown usable outside the source page.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Handle optional emoji and icon values when rendering tags.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Point agents to the site MCP server from Markdown pages, the page HTML, llms.txt and llms-full.txt.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Serve the site AI Catalog as specification version 0.9, with identifiers in its `urn:air:{publisher}:{name}:{kind}` format.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Fade the bottom of collapsed code blocks so readers can tell there is more code, matching the editor.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Answer Assistant questions with medium reasoning instead of low, matching AI search.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Bump Next.js to 16.4.6 and OpenNext (Cloudflare 1.20.17, AWS 4.1.16), keeping the dev-mode OOM patch.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Bump `@opennextjs/aws` to 4.2.0 and `@opennextjs/cloudflare` to 1.20.18.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Bump @opennextjs/aws to 4.2.1 and @opennextjs/cloudflare to 1.20.19.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Fix horizontal page scroll caused by card carousels bleeding past the viewport.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Retry direct site search on the site's own domain after a network error or timeout.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Name a site's MCP server as docs, such as "Acme Docs MCP Server", in AI clients and in the install commands and links, so it is not confused with a product's own MCP server.
-6
View File
@@ -1,6 +0,0 @@
---
"@gitbook/embed": minor
"gitbook": patch
---
Emit an `escape` event from the Docs Embed when Escape is pressed inside it and nothing in the embed used it, so the host can close its own panel.
@@ -1,6 +0,0 @@
---
"@gitbook/embed": minor
"gitbook": patch
---
Use the site's suggested questions when the embedded Assistant receives an empty or omitted list, including from older SDKs.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Reduce the wait after typing in site search to 100 ms.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Prevent self-redirect loops and skip redirects targeting hidden adaptive content.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Fix the table of contents keeping published pages busy in older Chrome versions such as Chrome 130.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Fix `'use cache'` entries never being stored in or read from R2 and the regional cache on Cloudflare.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Remove duplicated declarations from the global stylesheet.
@@ -1,5 +0,0 @@
---
"@gitbook/icons": minor
---
Add a `@gitbook/icons/validateIconName` entry that validates icon names without loading the icon labels and search terms.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Keep inline code and highlighted text readable when a paragraph crosses the bottom edge of a background page cover.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Keep published pages available when an integration block needs its connection or settings checked.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Keep published site search results visible while visitors refine a query.
@@ -1,6 +0,0 @@
---
"gitbook": patch
"@gitbook/icons": patch
---
Add a skip link, keyboard navigation between content tabs, focusable table of contents toggles, and hide decorative icons from assistive technologies.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Apply the default language-aware search scope to legacy search links.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Reduce memory and CPU use of the OpenNext workers: minify the middleware, resolve the site context once per request, cache parsed OpenAPI descriptions across a spec, drop the redis client and the unused force-revalidate route from the server bundle.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Load the OpenAPI stylesheet only on pages with OpenAPI blocks.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Render the llms.txt directive as the first element in the page body so agents find it before the navigation.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Count only MCP tool calls in the MCP request insights event.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Answer GET requests to the MCP endpoint with an `Allow: POST` header.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Challenge MCP clients to authorize again when a visitor-auth site rejects their bearer token.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Support MCP protocol version 2025-11-25 on published site MCP servers.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Limit the MCP `searchDocumentation` tool to one language: the one the client passes in the new optional `language` argument, or else the language of the site variant the MCP endpoint is served from.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Flush insights events when the page is hidden, preload the search index at low priority and prioritize the dark page cover on dark-default sites.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Keep published revision URLs out of search results.
@@ -1,5 +0,0 @@
---
"@gitbook/react-openapi": patch
---
Copy the current spec's server in OpenAPI endpoint URLs instead of a server kept from a previously visited page.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Resolve GitBook links in OpenAPI schema descriptions to the site's published URLs instead of the editor.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Publish an OpenSearch description on every site so browsers can offer its search from the address bar.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Show H3 headings in the page outline.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Render a page's search keywords in its metadata.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": minor
---
Open a link in the same or a new tab when its author chose one, instead of the site-wide external links setting.
-5
View File
@@ -1,5 +0,0 @@
---
'gitbook': patch
---
Respect disabled change request previews on published sites.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Fix the search button accessible name, hoverable link previews, IME-safe Enter on Safari, cookie banner semantics, active outline item announcement and textarea shrinking.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Send change request and revision links to the site preview, where GitBook members can sign in, when a site turns off public change request previews.
@@ -1,6 +0,0 @@
---
"gitbook": patch
"@gitbook/embed": patch
---
Respect reduced motion for enter and exit animations, keep the header separator and input focus visible in forced colors mode, and size mobile surfaces with dynamic viewport units.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Send only the site origin as referrer to third parties, and only let the embedding page open the embed messaging channel.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Remove the ChatGPT-specific plain text response for Markdown and llms.txt routes; these now always serve `text/markdown`.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Drop description HTML supplied by OpenAPI specs and sanitize example descriptions that could render HTML.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Track the displayed position and search request ID when a visitor opens a search result.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Send site searches straight to the search API when the site hands out a search pass, and use the site's search route when it does not or when the API refuses a search.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Include navigation-hidden published spaces in direct browser search lookup and avoid latching on unknown spaces.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Send each search once on sites without a top header, and make search work between 768 and 1023 px wide.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Show loading rows shaped like search results while search waits for the server.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Show search results with one-line breadcrumbs and no icons or shortcut hints, and select the result under the mouse.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Stop caching site search results in the framework cache, so every search reaches the API.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Show one server-ordered search list and open its top result on Enter.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Load the data of the page actions menu from the menu itself, so it can be cached apart from the page body.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Follow the API's cache lifetime for site data, so a site preview shows layout changes soon after they are saved.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Show site revision previews as their site revision pins them, including OpenAPI specs.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Render small cards in a responsive four-column grid and carousel.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Ignore tag category references when displaying assigned tags and update filters.
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Update the GitBook API SDK for site revision responses.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Fix wide content in Updates blocks overflowing into the page outline.
-5
View File
@@ -1,5 +0,0 @@
---
"gitbook": patch
---
Paginate published Updates pages with more than 50 entries into 20-entry pages.
+32 -32
View File
@@ -49,7 +49,7 @@
},
"packages/embed": {
"name": "@gitbook/embed",
"version": "0.7.0",
"version": "0.8.0",
"dependencies": {
"@gitbook/api": "catalog:",
"bidc": "catalog:",
@@ -109,7 +109,7 @@
},
"packages/gitbook": {
"name": "gitbook",
"version": "0.28.2",
"version": "0.29.0",
"dependencies": {
"@base-ui/react": "catalog:",
"@cloudflare/workers-types": "^4.20251011.0",
@@ -228,7 +228,7 @@
},
"packages/icons": {
"name": "@gitbook/icons",
"version": "0.5.0",
"version": "0.6.0",
"bin": {
"gitbook-icons": "./bin/gitbook-icons.js",
},
@@ -266,7 +266,7 @@
},
"packages/react-contentkit": {
"name": "@gitbook/react-contentkit",
"version": "0.7.18",
"version": "0.7.19",
"dependencies": {
"@gitbook/api": "catalog:",
"@gitbook/icons": "workspace:*",
@@ -309,7 +309,7 @@
},
"packages/react-openapi": {
"name": "@gitbook/react-openapi",
"version": "2.0.1",
"version": "2.0.2",
"dependencies": {
"@base-ui/react": "catalog:",
"@gitbook/expr": "workspace:*",
@@ -1025,43 +1025,43 @@
"@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.62.0", "", { "os": "win32", "cpu": "x64" }, "sha512-dlI5SY7XYQCiCBafntWagCR6HcAJB/NpsLtdlPx8x08+Osz8Ok1HHz1GZuusegCe/VoJ6pAnF5a4pd5OZAq7qQ=="],
"@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.93.0", "", { "os": "android", "cpu": "arm" }, "sha512-KKw70pbD5Pvq3G2lJ+WQ71XPMjCmg37rkSe2+mDqCRP3PoTSdDMuEi4UOnE8JBtyNM7bek61EC2s0Jt7S7u+Sg=="],
"@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.95.0", "", { "os": "android", "cpu": "arm" }, "sha512-hJna6w3COWJjfMPxomjZL82klTdrITm56PEpCsfO/xMkzQw/fNtJWauQ/YEwQqVttj0L5vDIa8rCcuhfAE3L4w=="],
"@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.93.0", "", { "os": "android", "cpu": "arm64" }, "sha512-fvr1fTUZGelwRxKDt64pf28aL1WaWgviwz3X+E/FcRYvrlEahH0NECRz/c1SY+K+KWmZk5uAf6h1kQnyBkp/2A=="],
"@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.95.0", "", { "os": "android", "cpu": "arm64" }, "sha512-uAIGZQ9uJVUeogeWOSboI3F7twOuM4mNuZcHXD9+LdYLcWp7J6kbtRUXJ6GVqcs5E0Cjb4emmSBK9FNrkGuhqQ=="],
"@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.93.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-VdvSN9JRf4Es6ZzoAdvEeh8tgKdw8L4H82WmA8MMPVfPdZGCwE/nI27Z1HrRHYQhPxOh4kmnxQEioSUFrOvDaw=="],
"@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.95.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Ogh1vfHO5vshKRop/He46r+WqC5BTqonYwhB4fp9e2gvOFvg1Xi6XsHTuM/lBSH85ZcaG+DS99EMAy9GcwDong=="],
"@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.93.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-QR1V890Ml0YGRG0F/iV0K9igG+pOhe+VWd+aZnxY849rRHZf3F2gEoQks5+GVHf105X9Mh/6HdShTP5juekG2g=="],
"@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.95.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-kTrE1xfpQUBMMS50Ws6KY92N8OsJ8LE6JqxKqkHEY3KdsmguQ6kKVGSjzyt1HLwsSi0fQCvNRog8YRBBovD1AA=="],
"@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.93.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-jDfIbi30zZaKi+rTvig3sge+Xhi8pFFSgHxb0jzovc4qh8ETm/irKV9c7N/JsuwnYc5sbvf4IC8w1vQQ0IL+BA=="],
"@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.95.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-ho7E1VCInK0VnpneRaI1BEpe1ceJE8VjxP2O9THWdReV6bth1Q4+80kYVGGK47mHRyZ2NGztQZ2dWRo6j1lavA=="],
"@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.93.0", "", { "os": "linux", "cpu": "arm" }, "sha512-qtxZ714ND/koFgVH00QgxlzZiIbRPmguaPhnHRU5DFFtrtEdOrSnZD4U/H2AzXrXkZ59eQbMBnJwbum5XohrIQ=="],
"@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.95.0", "", { "os": "linux", "cpu": "arm" }, "sha512-94afnouMHcnHr/OtRh07gG5LehC9M0GjiSoik3xxTtrmq6cWxXOTAhYlBtxa67u/GlycbnHlDoGJfYlTshcr/w=="],
"@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.93.0", "", { "os": "linux", "cpu": "arm" }, "sha512-5pJ9NjMvH7WMUqXB6bTTOSemBm39w2cod27Hu3+Yom/GhbTeNXlYcpDx1o4CgBP6fhp0YHG66TNdVaUm6sHjsA=="],
"@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.95.0", "", { "os": "linux", "cpu": "arm" }, "sha512-LEeclqV1/fafxPgJWN21Bri6HBBBZpEFluq/ZH7Avvu9HjJh/XOn6WwogJqX9X7pG2aITZ2nRH39+sUKEQt2WA=="],
"@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.93.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-pRf+7jtbt2fHE23SX7qBxRgnBZicUgsoCK1PVIjnOk+t3a6UBkpt/GrKI99WlxsKUxftz/5nv/kfKvScmYywkw=="],
"@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.95.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-EpXpEQKmgtkvc6RyU84LM1e3CrVDWQkgghVzf1hMGgwjBzgKAJ/QntHgnzmu5cNeLBfa7GPCY+gGXxEll8Adcg=="],
"@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.93.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-zM8Fd/K8sqGvsBcJBZ3oVZ3ctGWbszA08IaGt5gFFF5RcunppAI/ZnAXbouABvnWeJ//S44KKlfPZnDDbeiphg=="],
"@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.95.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-+96Md8c2BAgFp8nWHrUrpqba87DoU+HVJYIun6qA+QKFoeNd3xAWq1JYE6da4nVli9GgwRpfncfRePcgmQQaIQ=="],
"@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.93.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-7qKCnvhZKDXJG2pdbLazd2hw4FxjJHbZOFrrbzyy5PdHfPLH9vnNUa1le01A8uItZuYKPBPncH+HCoEiFT4SgA=="],
"@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.95.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-6yG99vsXct3Uv536w6Z1s03w2makRKnE0q3eJSmf+W/IwPmO56QLk8XUA6ebu/R5peCbJ67HmcWqACH+kg/6Bg=="],
"@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.93.0", "", { "os": "linux", "cpu": "none" }, "sha512-2pgulxC6G8V5wE750NJE/fRkf9aO6i6yoj10wyaR2EdiNtan4OemsOtsQ0ZTXGdY8Q3IoTmlND3GYvjJsvikYg=="],
"@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.95.0", "", { "os": "linux", "cpu": "none" }, "sha512-Eir0Z4ldh55AsQUqVDlLF4Pw3lSFXIdAl8ZNgU8tp/gTwT9JVCzWY0o3+ys9pCcpTN0vCqBwwuQfAUxzbIgvcQ=="],
"@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.93.0", "", { "os": "linux", "cpu": "none" }, "sha512-yWsn6Gg2PnGG5jlyDz5+pHGiMTMiy4adaa4WRMzDgzB8efaShk1JMmTHIBSVLQMh0tYXRs4CN5uJCO79r4Mi4g=="],
"@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.95.0", "", { "os": "linux", "cpu": "none" }, "sha512-ceRx+K2WJ7C3tIv+XjZS28oAoZ7DY29ZcWChPdXG5M100phI72FRDYwGRlWZEeDfmkROnarLTMKnnrQAtsC42Q=="],
"@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.93.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-WCn5plwp/ezS2RDPQKp0/EXEVRr9/dDexUdRKmsMFqzNM5xBSZ1wbsi3PuMk1VfkMRnI5BuazCsziCWMXRDOlw=="],
"@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.95.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-WbD3sM08ZDk2QE6060wK/omihQKbRm+LVzKIg4W5zNTbEhYJChciqX49UZuqW59RGF+wBUxzAup7egUIESTjUA=="],
"@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.93.0", "", { "os": "linux", "cpu": "x64" }, "sha512-F2CGjb9LAkzH+IYTZSzd1klQ1vk5z6Utjax64WeLByCkYXbVDbsun+Oy2hLfW2MDSKCvW+jwy/9ld0EPgdeu+A=="],
"@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.95.0", "", { "os": "linux", "cpu": "x64" }, "sha512-F4ST2ZkFIiLL9OKyRCyC0KQQpwM5WIv0GTcMiZuYVa6xSRJHR05iVRqst+arOVudEPkhP47EnbuoC9UfVCYDyg=="],
"@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.93.0", "", { "os": "linux", "cpu": "x64" }, "sha512-plf5DE2objcG8Tf7mXRuRa8tT8rzDkpjqXQtKoGsKHWkpgsialbON1+cCtoSEUTVbQUjXvuAm8vV9+3rR0yCBw=="],
"@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.95.0", "", { "os": "linux", "cpu": "x64" }, "sha512-hEpYDZatpuxLrWlTlkwhHZ1e8QkL02aFS55BPQX1XA9iOd+yUEADGFF1iY6z+xkw6RkpzXFrtnDFe4/JNOLSRA=="],
"@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.93.0", "", { "os": "none", "cpu": "arm64" }, "sha512-Kp2yJrKvoTe9FfKdO/xwLNUbs2bYTMKx0+aoQD1s0h/Tx0kSgtHSdGmrk8tTKdluosjFbo88qYRIaNIX43AfFw=="],
"@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.95.0", "", { "os": "none", "cpu": "arm64" }, "sha512-+JwIH9/uLgQXfxBvOAKzvp616m5i0fBR5ELEBHm5D+++fStBZ+74T7YW4xBpX13zNU2blr52Swoe3GTF1JyqRg=="],
"@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.93.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-vigjcHCFsR6KjnWTEVfaCxcMYapEuaK9FZa1MpewwQ1S+Xud3v0okfkj1RySsD6RF1NRHIjSlQSalTnKIaj3nA=="],
"@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.95.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-pzJgcp3WkOSchukg5y5pn5mVIQ6P83RDI79YJ9gQZKed1pOgjhrmlc5AMizjuq6/P8VifhxzBsMqYI6LLjO2TA=="],
"@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.93.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-0Ot3BEe/AAr2/uQhe55r8CmPlperYk2mQmxdutOru7oU0kir6IiEVHb1TG3GORRlfra97lPHVDLhgmihiKzLrg=="],
"@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.95.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-54MeQvLRXkJqF1nEFs7wb73SrnurZJQy9fVK4NdEwumNKVwyUUxpGHhvfDMIY2NqJZS7kz0pY9uVty5664Gt1Q=="],
"@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.93.0", "", { "os": "win32", "cpu": "x64" }, "sha512-ZzzIIVs/Qkm8trUWYKF0OYub5ALlv50/3gsEZbKAvWgz+yNJX6uRmQ8ySPXU2Q0/Y9m4JCOjhpmC8XUYbPHX5Q=="],
"@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.95.0", "", { "os": "win32", "cpu": "x64" }, "sha512-I/Fn+Fed1qzb1k2uRjMe2VRtRN1+ZObyU+E76B6v/Ul3Z6JdeAW5zBHSe0n5d8a0ZyU4iorzVy0Rw9LYgo3MSQ=="],
"@panzoom/panzoom": ["@panzoom/panzoom@4.6.1", "", {}, "sha512-ogf/KhHHjj+DYAvHfaf3TXMQ8OE36pJtKpabLlx1OmpjcgtpCvkUoCiNONA8kuVRPGJdLiqMf0n8LRFXj1OyuA=="],
@@ -1367,17 +1367,17 @@
"@tsconfig/strictest": ["@tsconfig/strictest@2.0.6", "", {}, "sha512-tPOhmDhIUcDjvpDDYyiUdssP84Eqm7n5KxJe5J3/g+s6xoDIPAf+SIn06dhw7VkhxIvLOnhDDrX7tsqMHNEhDg=="],
"@turbo/darwin-64": ["@turbo/darwin-64@2.11.11", "", { "os": "darwin", "cpu": "x64" }, "sha512-HMMeUIEAsmyIbSYn1ySvF/4gGMa0joiTMq4dQDuloIAnOpbtFT3JEiVsYnASdTWDXvplbRbZlqjU1EBeSR9G1A=="],
"@turbo/darwin-64": ["@turbo/darwin-64@2.11.13", "", { "os": "darwin", "cpu": "x64" }, "sha512-5IT29i4j55E5O66+la7L8Y46ut7dFaNZqrgUIYYNtcpMt9Ql7aYnSQb/6tZ+prE2AfX1RBCAtRJE41txS2rG3w=="],
"@turbo/darwin-arm64": ["@turbo/darwin-arm64@2.11.11", "", { "os": "darwin", "cpu": "arm64" }, "sha512-+8iySNgqYWY6PZYUQzYu6zn0C04z2OEq1vQ6oMGsJ9sxN6wOpg1gzi1AJ5VKDHviWvMUjhqng51hTEQZOuiqYQ=="],
"@turbo/darwin-arm64": ["@turbo/darwin-arm64@2.11.13", "", { "os": "darwin", "cpu": "arm64" }, "sha512-YFJPayVNlhSPRIZSeERiZYGKKqPs6N6qGhim8J3GtBdv5ZjUNF1ixfnAAyCVTqFEnMSkn1W7F0Y07kca8EjWsg=="],
"@turbo/linux-64": ["@turbo/linux-64@2.11.11", "", { "os": [ "linux", "android", ], "cpu": "x64" }, "sha512-uImTKFYCFKsoFxjaXeJXlMPv4uU3OIIDjyzoIwYVqOtu9LnCZ/5/fzu/WP6+G9YfwGAPRplTHkKFfcI5t97RGw=="],
"@turbo/linux-64": ["@turbo/linux-64@2.11.13", "", { "os": [ "linux", "android", ], "cpu": "x64" }, "sha512-R5RIQflV4ffBDNuUwjmtmzIr6Y2UeyeeHTtultYF7cnFn3tG1RZ4GRBlpjUhHB6JxuR7l1B450hlbzdtlD3ghg=="],
"@turbo/linux-arm64": ["@turbo/linux-arm64@2.11.11", "", { "os": [ "linux", "android", ], "cpu": "arm64" }, "sha512-Y7xffSVfyyYRGzNy6PLdrFL4xXN6iTuR3W0SyJvH/yd3d4defA6dansZwJpPDVnIpD8a2Qn256DwY/Qin4Ip4g=="],
"@turbo/linux-arm64": ["@turbo/linux-arm64@2.11.13", "", { "os": [ "linux", "android", ], "cpu": "arm64" }, "sha512-AwV8pVO/cH/lwx1B7SGfzUA/3e6vmPaygFp9NOSRESs6t3Wr63zrBuXlluDogAOIxIMlHDB2ZbBueDsBnQxh2Q=="],
"@turbo/windows-64": ["@turbo/windows-64@2.11.11", "", { "os": "win32", "cpu": "x64" }, "sha512-e2WqNtkPGo3QDwNNwwBo89Dx3PtSJ9Wp9QuRNzn80rrRnSHB+1mfBMZTpdHjA8/G/sG9rl76TdWdpgVsimjRdg=="],
"@turbo/windows-64": ["@turbo/windows-64@2.11.13", "", { "os": "win32", "cpu": "x64" }, "sha512-PGXYTaFaN3FZloe4RffNGJmfB+TIWlqQgKK1PVyKwPN+PUzxGa+byxHBWFHredMaVbnUc6L/F6/QR4iHyM/wug=="],
"@turbo/windows-arm64": ["@turbo/windows-arm64@2.11.11", "", { "os": "win32", "cpu": "arm64" }, "sha512-LURivfmgv34Osm8NR1gZGx4vdlux9KAgRM+FoooXNG0838ff0+akWZ76iPSke0NS2rsf7Z4Gw+YSaygzNTZuRA=="],
"@turbo/windows-arm64": ["@turbo/windows-arm64@2.11.13", "", { "os": "win32", "cpu": "arm64" }, "sha512-YdRHWstBUHWt/eChOEM4f9LT0dPiWK5SNgtV77bLCr3JNke9M5E7metqelNYj+tXe36dH0BZrk2CMnFlWqHKng=="],
"@tusbar/cache-control": ["@tusbar/cache-control@1.0.2", "", {}, "sha512-PXfjYTYBVvMPYCLDWj+xIOA9ITFbbhWCHzLcqUCJ5TPGm4JO4cxpGb7x3K8Q1K1ADgNgfBxLsDcTMVRydtZB9A=="],
@@ -2691,7 +2691,7 @@
"oxfmt": ["oxfmt@0.62.0", "", { "dependencies": { "tinypool": "2.1.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.62.0", "@oxfmt/binding-android-arm64": "0.62.0", "@oxfmt/binding-darwin-arm64": "0.62.0", "@oxfmt/binding-darwin-x64": "0.62.0", "@oxfmt/binding-freebsd-x64": "0.62.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.62.0", "@oxfmt/binding-linux-arm-musleabihf": "0.62.0", "@oxfmt/binding-linux-arm64-gnu": "0.62.0", "@oxfmt/binding-linux-arm64-musl": "0.62.0", "@oxfmt/binding-linux-ppc64-gnu": "0.62.0", "@oxfmt/binding-linux-riscv64-gnu": "0.62.0", "@oxfmt/binding-linux-riscv64-musl": "0.62.0", "@oxfmt/binding-linux-s390x-gnu": "0.62.0", "@oxfmt/binding-linux-x64-gnu": "0.62.0", "@oxfmt/binding-linux-x64-musl": "0.62.0", "@oxfmt/binding-openharmony-arm64": "0.62.0", "@oxfmt/binding-win32-arm64-msvc": "0.62.0", "@oxfmt/binding-win32-ia32-msvc": "0.62.0", "@oxfmt/binding-win32-x64-msvc": "0.62.0" }, "peerDependencies": { "svelte": "^5.0.0", "vite-plus": "*" }, "optionalPeers": ["svelte", "vite-plus"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-vxgGHTmnDU9j4CX7dDBLzxgmHxfda/yPcgJkGCMUSCwRmz+euo/V08xXLNgXTeqAB9Fhf3Pe2nO1RNKLCVgphQ=="],
"oxlint": ["oxlint@1.93.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.93.0", "@oxlint/binding-android-arm64": "1.93.0", "@oxlint/binding-darwin-arm64": "1.93.0", "@oxlint/binding-darwin-x64": "1.93.0", "@oxlint/binding-freebsd-x64": "1.93.0", "@oxlint/binding-linux-arm-gnueabihf": "1.93.0", "@oxlint/binding-linux-arm-musleabihf": "1.93.0", "@oxlint/binding-linux-arm64-gnu": "1.93.0", "@oxlint/binding-linux-arm64-musl": "1.93.0", "@oxlint/binding-linux-ppc64-gnu": "1.93.0", "@oxlint/binding-linux-riscv64-gnu": "1.93.0", "@oxlint/binding-linux-riscv64-musl": "1.93.0", "@oxlint/binding-linux-s390x-gnu": "1.93.0", "@oxlint/binding-linux-x64-gnu": "1.93.0", "@oxlint/binding-linux-x64-musl": "1.93.0", "@oxlint/binding-openharmony-arm64": "1.93.0", "@oxlint/binding-win32-arm64-msvc": "1.93.0", "@oxlint/binding-win32-ia32-msvc": "1.93.0", "@oxlint/binding-win32-x64-msvc": "1.93.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2005", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-19JMsQFX+YvEbcUTFQxjTwhvs0Ibg0D6CFneSLgpwnACWcY/6LjhpGpkPodh0T5aIT1pjMTLlYaeBFzaVgugTA=="],
"oxlint": ["oxlint@1.95.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.95.0", "@oxlint/binding-android-arm64": "1.95.0", "@oxlint/binding-darwin-arm64": "1.95.0", "@oxlint/binding-darwin-x64": "1.95.0", "@oxlint/binding-freebsd-x64": "1.95.0", "@oxlint/binding-linux-arm-gnueabihf": "1.95.0", "@oxlint/binding-linux-arm-musleabihf": "1.95.0", "@oxlint/binding-linux-arm64-gnu": "1.95.0", "@oxlint/binding-linux-arm64-musl": "1.95.0", "@oxlint/binding-linux-ppc64-gnu": "1.95.0", "@oxlint/binding-linux-riscv64-gnu": "1.95.0", "@oxlint/binding-linux-riscv64-musl": "1.95.0", "@oxlint/binding-linux-s390x-gnu": "1.95.0", "@oxlint/binding-linux-x64-gnu": "1.95.0", "@oxlint/binding-linux-x64-musl": "1.95.0", "@oxlint/binding-openharmony-arm64": "1.95.0", "@oxlint/binding-win32-arm64-msvc": "1.95.0", "@oxlint/binding-win32-ia32-msvc": "1.95.0", "@oxlint/binding-win32-x64-msvc": "1.95.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2008", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-eNzjFjm1TU02/+ohAJjOB7aekRQgTXhOWxMGscEm8VJMokNnnix+PCZn7kqIuGIqxAoBnHxatqlN3Chz3N6PKA=="],
"p-filter": ["p-filter@2.1.0", "", { "dependencies": { "p-map": "^2.0.0" } }, "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw=="],
@@ -3123,7 +3123,7 @@
"tsx": ["tsx@4.21.0", "", { "dependencies": { "esbuild": "~0.27.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw=="],
"turbo": ["turbo@2.11.11", "", { "optionalDependencies": { "@turbo/darwin-64": "2.11.11", "@turbo/darwin-arm64": "2.11.11", "@turbo/linux-64": "2.11.11", "@turbo/linux-arm64": "2.11.11", "@turbo/windows-64": "2.11.11", "@turbo/windows-arm64": "2.11.11" }, "bin": { "turbo": "bin/turbo" } }, "sha512-AI4UJbUE/2cVZdoXJ4PODc8qvrjhQQX9Fa93eKGOI6Ims/w7+kUIb9T1jhlgSnZcf+gtUruci/ohSwqtNNC5Yw=="],
"turbo": ["turbo@2.11.13", "", { "optionalDependencies": { "@turbo/darwin-64": "2.11.13", "@turbo/darwin-arm64": "2.11.13", "@turbo/linux-64": "2.11.13", "@turbo/linux-arm64": "2.11.13", "@turbo/windows-64": "2.11.13", "@turbo/windows-arm64": "2.11.13" }, "bin": { "turbo": "bin/turbo" } }, "sha512-2EZ8StW6tqaj71HGF60oUOmJrPQHidmZ5dcwv2VORofya9JthVrfZhxbzRMx/QxjPwYi754i2h5RFsZSDzpnaQ=="],
"type": ["type@2.7.3", "", {}, "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ=="],
+2 -2
View File
@@ -7,8 +7,8 @@
"devDependencies": {
"@changesets/cli": "^2.31.1",
"oxfmt": "^0.62.0",
"oxlint": "^1.93.0",
"turbo": "^2.11.11",
"oxlint": "^1.95.0",
"turbo": "^2.11.13",
"vercel": "50.37.3"
},
"packageManager": "bun@1.3.7",
+11
View File
@@ -1,5 +1,16 @@
# @gitbook/embed
## 0.8.0
### Minor Changes
- a9535cd: Emit an `escape` event from the Docs Embed when Escape is pressed inside it and nothing in the embed used it, so the host can close its own panel.
- 6b2e806: Use the site's suggested questions when the embedded Assistant receives an empty or omitted list, including from older SDKs.
### Patch Changes
- 65210b7: Respect reduced motion for enter and exit animations, keep the header separator and input focus visible in forced colors mode, and size mobile surfaces with dynamic viewport units.
## 0.7.0
### Minor Changes
+1 -1
View File
@@ -13,7 +13,7 @@
}
},
"sideEffects": false,
"version": "0.7.0",
"version": "0.8.0",
"license": "Apache-2.0",
"dependencies": {
"@gitbook/api": "catalog:",
+79
View File
@@ -1,5 +1,84 @@
# gitbook
## 0.29.0
### Minor Changes
- 7ad3fff: Open a link in the same or a new tab when its author chose one, instead of the site-wide external links setting.
### Patch Changes
- 4eb32b1: Keep links in generated Markdown usable outside the source page.
- 13c0ff0: Handle optional emoji and icon values when rendering tags.
- 5755e6d: Point agents to the site MCP server from Markdown pages, the page HTML, llms.txt and llms-full.txt.
- bd38317: Serve the site AI Catalog as specification version 0.9, with identifiers in its `urn:air:{publisher}:{name}:{kind}` format.
- 960d7ec: Fade the bottom of collapsed code blocks so readers can tell there is more code, matching the editor.
- 818cbbe: Answer Assistant questions with medium reasoning instead of low, matching AI search.
- ddccd3d: Bump Next.js to 16.4.6 and OpenNext (Cloudflare 1.20.17, AWS 4.1.16), keeping the dev-mode OOM patch.
- b0f3822: Bump `@opennextjs/aws` to 4.2.0 and `@opennextjs/cloudflare` to 1.20.18.
- a3d37f3: Bump @opennextjs/aws to 4.2.1 and @opennextjs/cloudflare to 1.20.19.
- 0c3a51e: Fix horizontal page scroll caused by card carousels bleeding past the viewport.
- 68e3dac: Retry direct site search on the site's own domain after a network error or timeout.
- 22df281: Name a site's MCP server as docs, such as "Acme Docs MCP Server", in AI clients and in the install commands and links, so it is not confused with a product's own MCP server.
- a9535cd: Emit an `escape` event from the Docs Embed when Escape is pressed inside it and nothing in the embed used it, so the host can close its own panel.
- 6b2e806: Use the site's suggested questions when the embedded Assistant receives an empty or omitted list, including from older SDKs.
- 7e2658a: Reduce the wait after typing in site search to 100 ms.
- 7af524a: Prevent self-redirect loops and skip redirects targeting hidden adaptive content.
- ae1e370: Fix the table of contents keeping published pages busy in older Chrome versions such as Chrome 130.
- c85d84f: Fix `'use cache'` entries never being stored in or read from R2 and the regional cache on Cloudflare.
- 5997a66: Remove duplicated declarations from the global stylesheet.
- c3df458: Keep inline code and highlighted text readable when a paragraph crosses the bottom edge of a background page cover.
- 1ecd2ca: Keep published pages available when an integration block needs its connection or settings checked.
- 7cee30e: Keep published site search results visible while visitors refine a query.
- 265ca4b: Add a skip link, keyboard navigation between content tabs, focusable table of contents toggles, and hide decorative icons from assistive technologies.
- 76e1abd: Apply the default language-aware search scope to legacy search links.
- 9fcde5f: Reduce memory and CPU use of the OpenNext workers: minify the middleware, resolve the site context once per request, cache parsed OpenAPI descriptions across a spec, drop the redis client and the unused force-revalidate route from the server bundle.
- 9b5b8c8: Load the OpenAPI stylesheet only on pages with OpenAPI blocks.
- a3b5ce5: Render the llms.txt directive as the first element in the page body so agents find it before the navigation.
- 21b96e1: Count only MCP tool calls in the MCP request insights event.
- adbc358: Answer GET requests to the MCP endpoint with an `Allow: POST` header.
- fa7d4a9: Challenge MCP clients to authorize again when a visitor-auth site rejects their bearer token.
- 596b8c5: Support MCP protocol version 2025-11-25 on published site MCP servers.
- adfd921: Limit the MCP `searchDocumentation` tool to one language: the one the client passes in the new optional `language` argument, or else the language of the site variant the MCP endpoint is served from.
- 19660ed: Flush insights events when the page is hidden, preload the search index at low priority and prioritize the dark page cover on dark-default sites.
- a035d19: Keep published revision URLs out of search results.
- 867da7b: Resolve GitBook links in OpenAPI schema descriptions to the site's published URLs instead of the editor.
- 506aa78: Publish an OpenSearch description on every site so browsers can offer its search from the address bar.
- c09da2e: Show H3 headings in the page outline.
- d2be885: Render a page's search keywords in its metadata.
- 6cdbafc: Respect disabled change request previews on published sites.
- 19660ed: Fix the search button accessible name, hoverable link previews, IME-safe Enter on Safari, cookie banner semantics, active outline item announcement and textarea shrinking.
- d2c56e5: Send change request and revision links to the site preview, where GitBook members can sign in, when a site turns off public change request previews.
- 65210b7: Respect reduced motion for enter and exit animations, keep the header separator and input focus visible in forced colors mode, and size mobile surfaces with dynamic viewport units.
- 3e86382: Send only the site origin as referrer to third parties, and only let the embedding page open the embed messaging channel.
- 7d1cd9f: Remove the ChatGPT-specific plain text response for Markdown and llms.txt routes; these now always serve `text/markdown`.
- 3ec61a7: Drop description HTML supplied by OpenAPI specs and sanitize example descriptions that could render HTML.
- 63a4a98: Track the displayed position and search request ID when a visitor opens a search result.
- cf8c3d5: Send site searches straight to the search API when the site hands out a search pass, and use the site's search route when it does not or when the API refuses a search.
- 48fe81b: Include navigation-hidden published spaces in direct browser search lookup and avoid latching on unknown spaces.
- adbec4c: Send each search once on sites without a top header, and make search work between 768 and 1023 px wide.
- 8f5175e: Show loading rows shaped like search results while search waits for the server.
- 386a5c1: Show search results with one-line breadcrumbs and no icons or shortcut hints, and select the result under the mouse.
- b145bfc: Stop caching site search results in the framework cache, so every search reaches the API.
- 7856e08: Show one server-ordered search list and open its top result on Enter.
- a10eff9: Load the data of the page actions menu from the menu itself, so it can be cached apart from the page body.
- 1c71849: Follow the API's cache lifetime for site data, so a site preview shows layout changes soon after they are saved.
- 7f08fb1: Show site revision previews as their site revision pins them, including OpenAPI specs.
- b5f7e55: Render small cards in a responsive four-column grid and carousel.
- 8dd308b: Ignore tag category references when displaying assigned tags and update filters.
- 4cbbda7: Update the GitBook API SDK for site revision responses.
- 060f1f6: Fix wide content in Updates blocks overflowing into the page outline.
- Updated dependencies [a9535cd]
- Updated dependencies [6b2e806]
- Updated dependencies [9fcde5f]
- Updated dependencies [265ca4b]
- Updated dependencies [262749a]
- Updated dependencies [65210b7]
- @gitbook/embed@0.8.0
- @gitbook/icons@0.6.0
- @gitbook/react-openapi@2.0.2
- @gitbook/react-contentkit@0.7.19
## 0.28.2
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "gitbook",
"version": "0.28.2",
"version": "0.29.0",
"private": true,
"dependencies": {
"@base-ui/react": "catalog:",
@@ -1,54 +0,0 @@
import type { Metadata, Viewport } from 'next';
import { notFound } from 'next/navigation';
import { type RouteParams, getDynamicSiteContext, getPagePathFromParams } from '@/app/utils';
import {
SitePage,
generateSitePageMetadata,
generateSitePageViewport,
} from '@/components/SitePage';
import { parseUpdatesPageParam } from '@/lib/updates-url';
type PageProps = {
params: Promise<RouteParams & { page: string }>;
};
export default async function Page(props: PageProps) {
const params = await props.params;
const updatesPage = parseUpdatesPageParam(params.page);
if (updatesPage === null) {
notFound();
}
const { context } = await getDynamicSiteContext(params);
const pathname = getPagePathFromParams(params);
return (
<SitePage
context={context}
pageParams={{ pathname }}
staticRoute={false}
updatesPage={updatesPage}
/>
);
}
export async function generateViewport(props: PageProps): Promise<Viewport> {
const { context } = await getDynamicSiteContext(await props.params);
return generateSitePageViewport(context);
}
export async function generateMetadata(props: PageProps): Promise<Metadata> {
const params = await props.params;
const updatesPage = parseUpdatesPageParam(params.page);
if (updatesPage === null) {
notFound();
}
const { context } = await getDynamicSiteContext(params);
const pathname = getPagePathFromParams(params);
return generateSitePageMetadata({
context,
pageParams: { pathname },
updatesPage,
});
}
@@ -1,41 +0,0 @@
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';
import { type RouteParams, getPagePathFromParams } from '@/app/utils';
import { EmbeddableDocsPage, generateEmbeddableDocsPageMetadata } from '@/components/Embeddable';
import { getEmbeddableDynamicContext } from '@/lib/embeddable';
import { parseUpdatesPageParam } from '@/lib/updates-url';
type PageProps = {
params: Promise<RouteParams & { page: string }>;
};
export default async function Page(props: PageProps) {
const params = await props.params;
const updatesPage = parseUpdatesPageParam(params.page);
if (updatesPage === null) {
notFound();
}
const { context } = await getEmbeddableDynamicContext(params);
const pathname = getPagePathFromParams(params);
return (
<EmbeddableDocsPage
context={context}
pageParams={{ pathname }}
staticRoute={false}
updatesPage={updatesPage}
/>
);
}
export async function generateMetadata(props: PageProps): Promise<Metadata> {
const params = await props.params;
const updatesPage = parseUpdatesPageParam(params.page);
if (updatesPage === null) {
notFound();
}
const { context } = await getEmbeddableDynamicContext(params);
const pathname = getPagePathFromParams(params);
return generateEmbeddableDocsPageMetadata({ context, pageParams: { pathname }, updatesPage });
}
@@ -1,56 +0,0 @@
import type { Metadata, Viewport } from 'next';
import { notFound } from 'next/navigation';
import { type RouteParams, getPagePathFromParams, getStaticSiteContext } from '@/app/utils';
import {
SitePage,
generateSitePageMetadata,
generateSitePageViewport,
} from '@/components/SitePage';
import { parseUpdatesPageParam } from '@/lib/updates-url';
export const dynamic = 'force-static';
type PageProps = {
params: Promise<RouteParams & { page: string }>;
};
export default async function Page(props: PageProps) {
const params = await props.params;
const updatesPage = parseUpdatesPageParam(params.page);
if (updatesPage === null) {
notFound();
}
const { context } = await getStaticSiteContext(params);
const pathname = getPagePathFromParams(params);
return (
<SitePage
context={context}
pageParams={{ pathname }}
staticRoute
updatesPage={updatesPage}
/>
);
}
export async function generateViewport(props: PageProps): Promise<Viewport> {
const { context } = await getStaticSiteContext(await props.params);
return generateSitePageViewport(context);
}
export async function generateMetadata(props: PageProps): Promise<Metadata> {
const params = await props.params;
const updatesPage = parseUpdatesPageParam(params.page);
if (updatesPage === null) {
notFound();
}
const { context } = await getStaticSiteContext(params);
const pathname = getPagePathFromParams(params);
return generateSitePageMetadata({
context,
pageParams: { pathname },
updatesPage,
});
}
@@ -1,43 +0,0 @@
import type { Metadata } from 'next';
import { notFound } from 'next/navigation';
import { type RouteParams, getPagePathFromParams } from '@/app/utils';
import { EmbeddableDocsPage, generateEmbeddableDocsPageMetadata } from '@/components/Embeddable';
import { getEmbeddableStaticContext } from '@/lib/embeddable';
import { parseUpdatesPageParam } from '@/lib/updates-url';
export const dynamic = 'force-static';
type PageProps = {
params: Promise<RouteParams & { page: string }>;
};
export default async function Page(props: PageProps) {
const params = await props.params;
const updatesPage = parseUpdatesPageParam(params.page);
if (updatesPage === null) {
notFound();
}
const { context } = await getEmbeddableStaticContext(params);
const pathname = getPagePathFromParams(params);
return (
<EmbeddableDocsPage
context={context}
pageParams={{ pathname }}
staticRoute
updatesPage={updatesPage}
/>
);
}
export async function generateMetadata(props: PageProps): Promise<Metadata> {
const params = await props.params;
const updatesPage = parseUpdatesPageParam(params.page);
if (updatesPage === null) {
notFound();
}
const { context } = await getEmbeddableStaticContext(params);
const pathname = getPagePathFromParams(params);
return generateEmbeddableDocsPageMetadata({ context, pageParams: { pathname }, updatesPage });
}
@@ -1,384 +0,0 @@
'use client';
import { useRouter, useSearchParams } from 'next/navigation';
import React from 'react';
import { useHash, scrollToHash } from '../hooks';
import { CONTENT_STYLE_REDUCED, MAIN_CONTENT_ID } from '../layout';
import { Button, SkeletonUpdate, SuspenseLoadedHint } from '../primitives';
import { UpdatesFilterContext, applyTagFilterAttribute, areTagsEqual } from './UpdatesFilter';
import { UpdatesFilterScript } from './UpdatesFilterScript';
import {
type FilteredUpdatesPageResult,
getFilteredUpdatesPage,
resolveUpdatesAnchor,
} from './UpdatesServerActions';
import { tString, useLanguage } from '@/intl/client';
import {
UPDATES_FILTER_KEY_ATTR,
UPDATES_FILTER_SEARCH_PARAM,
type UpdatesPageRange,
getUpdatesPageRange,
normalizeUpdatesFilterTags,
updatesFilterStyleKey,
} from '@/lib/updates';
import {
UPDATES_PAGE_SEARCH_PARAM,
parseUpdatesPageParam,
setUpdatesPageParam,
} from '@/lib/updates-url';
const PENDING_FILTER_ATTR = 'data-updates-pending-filter';
export const HIDE_PENDING_UPDATES = '[html[data-updates-pending-filter]_&]:hidden';
type FilteredPage = Extract<FilteredUpdatesPageResult, { status: 'ok' }>;
type UpdatesView =
| { status: 'unfiltered'; pagination: UpdatesPageRange }
| { status: 'loading'; pagination: UpdatesPageRange | null }
| { status: 'error'; pagination: null }
| ({ status: 'filtered' } & Omit<FilteredPage, 'status'>);
type UpdatesSelection = { tags: string[]; page: number };
const PaginatedUpdatesContext = React.createContext<{
view: UpdatesView;
goToPage: (page: number) => void;
retry: () => void;
} | null>(null);
export function PaginatedUpdatesProvider(props: {
pageId: string;
revisionId: string;
isEmbeddable: boolean;
tagSlugs: string[];
initialPagination: UpdatesPageRange;
children: React.ReactNode;
}) {
const { pageId, revisionId, isEmbeddable, tagSlugs, initialPagination, children } = props;
const router = useRouter();
const searchParams = useSearchParams();
const hash = useHash();
const availableTags = React.useMemo(() => new Set(tagSlugs), [tagSlugs]);
const styleKey = updatesFilterStyleKey(tagSlugs);
const [selectedTags, setSelectedTags] = React.useState<string[]>([]);
const [view, setView] = React.useState<UpdatesView>({
status: 'unfiltered',
pagination: initialPagination,
});
const selection = React.useRef<UpdatesSelection>({ tags: [], page: initialPagination.page });
const hasNewerRevision = React.useRef(false);
const requestId = React.useRef(0);
React.useLayoutEffect(() => {
document.documentElement.setAttribute(UPDATES_FILTER_KEY_ATTR, styleKey);
return () => {
requestId.current++;
document.documentElement.removeAttribute(UPDATES_FILTER_KEY_ATTR);
document.documentElement.removeAttribute(PENDING_FILTER_ATTR);
applyTagFilterAttribute([]);
};
}, [styleKey]);
const syncLocation = React.useCallback(
(force = false) => {
const url = new URL(window.location.href);
const { tags, page } = getUpdatesSelection(url, availableTags);
const previous = selection.current;
const sameTags = areTagsEqual(tags, previous.tags);
if (!force && sameTags && page === previous.page) {
return;
}
const id = ++requestId.current;
selection.current = { tags, page };
setSelectedTags(tags);
applyTagFilterAttribute(tags);
if (!tags.length) {
if (page !== initialPagination.page) {
setView({ status: 'loading', pagination: null });
router.replace(relativeURL(url));
return;
}
if (hasNewerRevision.current) {
setView({ status: 'loading', pagination: null });
window.location.replace(relativeURL(url));
return;
}
setView({ status: 'unfiltered', pagination: initialPagination });
return;
}
setView((current) => {
let pagination = null;
if (sameTags && current.pagination) {
pagination = getUpdatesPageRange(page, current.pagination.totalItems);
}
return { status: 'loading', pagination };
});
async function load() {
let result: FilteredUpdatesPageResult = { status: 'error' };
try {
result = await getFilteredUpdatesPage({ pageId, tags, page, isEmbeddable });
} catch {
// Network or aborted action leaves the filter selected so the reader can retry.
}
const currentURL = new URL(window.location.href);
const selected = getUpdatesSelection(currentURL, availableTags);
if (
id !== requestId.current ||
currentURL.pathname !== url.pathname ||
selected.page !== page ||
!areTagsEqual(selected.tags, tags)
) {
return;
}
if (result.status === 'error') {
setView({ status: 'error', pagination: null });
return;
}
if (result.revisionId !== revisionId) {
hasNewerRevision.current = true;
}
if (result.status === 'unfiltered') {
const fallback = currentURL;
fallback.searchParams.delete(UPDATES_FILTER_SEARCH_PARAM);
setUpdatesPageParam(fallback.searchParams, initialPagination.page);
window.history.replaceState(null, '', relativeURL(fallback));
selection.current = { tags: [], page: initialPagination.page };
setSelectedTags([]);
applyTagFilterAttribute([]);
if (hasNewerRevision.current) {
setView({ status: 'loading', pagination: null });
window.location.replace(relativeURL(fallback));
return;
}
setView({ status: 'unfiltered', pagination: initialPagination });
return;
}
if (result.pagination.isClamped) {
const clamped = currentURL;
setUpdatesPageParam(clamped.searchParams, result.pagination.page);
window.history.replaceState(null, '', relativeURL(clamped));
selection.current = { tags, page: result.pagination.page };
}
setView({
status: 'filtered',
revisionId: result.revisionId,
content: result.content,
sections: result.sections,
pagination: result.pagination,
});
}
void load();
},
[availableTags, pageId, revisionId, initialPagination, isEmbeddable, router]
);
React.useLayoutEffect(() => {
syncLocation();
}, [searchParams, syncLocation]);
React.useEffect(() => {
const onPopState = () => syncLocation();
window.addEventListener('popstate', onPopState);
return () => {
window.removeEventListener('popstate', onPopState);
};
}, [syncLocation]);
React.useLayoutEffect(() => {
if (view.status !== 'loading') {
document.documentElement.removeAttribute(PENDING_FILTER_ATTR);
}
}, [view]);
React.useEffect(() => {
if (
view.status === 'loading' ||
view.status === 'error' ||
(view.status === 'unfiltered' && selection.current.tags.length > 0)
) {
return;
}
let active = true;
async function resolveHash() {
const url = new URL(window.location.href);
const anchorHash = url.hash;
if (!anchorHash || scrollToHash(anchorHash.slice(1))) {
return;
}
let anchor: string;
try {
anchor = decodeURIComponent(anchorHash.slice(1));
} catch {
return;
}
const id = requestId.current;
const { tags } = selection.current;
try {
const result = await resolveUpdatesAnchor({ pageId, anchor, tags, isEmbeddable });
if (
!active ||
!result.found ||
id !== requestId.current ||
url.href !== window.location.href
) {
return;
}
setUpdatesPageParam(url.searchParams, result.page);
if (result.clearTags) {
url.searchParams.delete(UPDATES_FILTER_SEARCH_PARAM);
}
if (url.href !== window.location.href) {
router.replace(relativeURL(url));
}
} catch {
// An unresolved hash should leave the visitor on the current page.
}
}
void resolveHash();
window.addEventListener('hashchange', resolveHash);
return () => {
active = false;
window.removeEventListener('hashchange', resolveHash);
};
}, [hash, isEmbeddable, pageId, router, view]);
function navigate(tags: string[], page: number, history: 'push' | 'replace') {
const url = new URL(window.location.href);
url.searchParams.delete(UPDATES_FILTER_SEARCH_PARAM);
for (const tag of tags) {
url.searchParams.append(UPDATES_FILTER_SEARCH_PARAM, tag);
}
setUpdatesPageParam(url.searchParams, page);
url.hash = '';
if (tags.length === 0 && (page !== initialPagination.page || hasNewerRevision.current)) {
requestId.current++;
selection.current = { tags, page };
setSelectedTags(tags);
applyTagFilterAttribute(tags);
setView({ status: 'loading', pagination: null });
if (hasNewerRevision.current) {
window.location.replace(relativeURL(url));
} else {
router.replace(relativeURL(url));
}
return;
}
if (history === 'push') {
window.history.pushState(null, '', relativeURL(url));
} else {
window.history.replaceState(null, '', relativeURL(url));
}
syncLocation();
const main = document.getElementById(MAIN_CONTENT_ID);
if (main) {
main.scrollIntoView({ block: 'start', behavior: 'instant' });
main.focus({ preventScroll: true });
}
}
function toggleTag(tag: string) {
const { tags } = selection.current;
if (tags.includes(tag)) {
navigate(
tags.filter((selected) => selected !== tag),
1,
'replace'
);
return;
}
navigate(normalizeUpdatesFilterTags([...tags, tag], availableTags), 1, 'replace');
}
return (
<UpdatesFilterContext.Provider
value={{
selectedTags,
selectedTagSet: new Set(selectedTags),
toggleTag,
clearTags: () => navigate([], 1, 'replace'),
}}
>
<PaginatedUpdatesContext.Provider
value={{
view,
goToPage: (page) => navigate(selection.current.tags, page, 'push'),
retry: () => syncLocation(true),
}}
>
{tagSlugs.length > 0 && (
<UpdatesFilterScript
tagSlugs={tagSlugs}
filterAttribute={PENDING_FILTER_ATTR}
/>
)}
{children}
</PaginatedUpdatesContext.Provider>
</UpdatesFilterContext.Provider>
);
}
export function usePaginatedUpdates() {
return React.useContext(PaginatedUpdatesContext);
}
export function PaginatedUpdatesBody(props: { children: React.ReactNode }) {
const updates = usePaginatedUpdates();
const language = useLanguage();
if (updates?.view.status === 'loading') {
return <SkeletonUpdate className={CONTENT_STYLE_REDUCED} />;
}
if (updates?.view.status === 'error') {
return (
<div
role="alert"
className={`${CONTENT_STYLE_REDUCED} flex items-center justify-between gap-4 rounded-lg border border-tint-subtle p-4 text-sm text-tint`}
>
<span>{tString(language, 'unexpected_error')}</span>
<Button
variant="secondary"
size="small"
label={tString(language, 'unexpected_error_retry')}
onClick={updates.retry}
/>
</div>
);
}
if (updates?.view.status === 'filtered') {
return (
<div className="contents" data-content-ref-root="">
<SuspenseLoadedHint />
{updates.view.content}
</div>
);
}
return <div className={`contents ${HIDE_PENDING_UPDATES}`}>{props.children}</div>;
}
function getUpdatesSelection(url: URL, availableTags: ReadonlySet<string>): UpdatesSelection {
return {
tags: normalizeUpdatesFilterTags(
url.searchParams.getAll(UPDATES_FILTER_SEARCH_PARAM),
availableTags
),
page: parseUpdatesPageParam(url.searchParams.get(UPDATES_PAGE_SEARCH_PARAM)) ?? 1,
};
}
function relativeURL(url: URL): string {
return `${url.pathname}${url.search}${url.hash}`;
}
@@ -36,7 +36,7 @@ const emptyUpdatesFilterContext: UpdatesFilterContextValue = {
clearTags: () => {},
};
export const UpdatesFilterContext = React.createContext<UpdatesFilterContextValue | null>(null);
const UpdatesFilterContext = React.createContext<UpdatesFilterContextValue | null>(null);
export function UpdatesFilterProvider(props: { tagSlugs: string[]; children: React.ReactNode }) {
const { tagSlugs, children } = props;
@@ -249,12 +249,12 @@ function TagChip(props: { tag: RevisionTag; onToggle: (tag: string) => void }) {
);
}
export function areTagsEqual(left: string[], right: string[]): boolean {
function areTagsEqual(left: string[], right: string[]): boolean {
return left.length === right.length && left.every((tag, index) => tag === right[index]);
}
/** Mirrors the active filter onto `<html>`, matching what the pre-paint script does on first load. */
export function applyTagFilterAttribute(tags: string[]) {
function applyTagFilterAttribute(tags: string[]) {
if (typeof document === 'undefined') {
return;
}
@@ -58,12 +58,12 @@ export function applyUpdatesFilterScript(
* Inline script that applies the URL's `?tag=` filter to `<html>` before first paint. Rendered only
* on pages with filterable updates (see SitePage), not globally.
*/
export function UpdatesFilterScript(props: { tagSlugs: string[]; filterAttribute?: string }) {
const { tagSlugs, filterAttribute = UPDATES_TAG_FILTER_ATTR } = props;
export function UpdatesFilterScript(props: { tagSlugs: string[] }) {
const { tagSlugs } = props;
const inserted = useRef(false);
const scriptArgs = serializeUpdatesFilterScriptArgs([
UPDATES_FILTER_SEARCH_PARAM,
filterAttribute,
UPDATES_TAG_FILTER_ATTR,
UPDATES_TAG_FILTER_CAP,
tagSlugs,
UPDATES_FILTER_KEY_ATTR,
@@ -1,90 +0,0 @@
'use client';
import { useSearchParams } from 'next/navigation';
import { Icon } from '@gitbook/icons';
import { CONTENT_STYLE_REDUCED } from '../layout';
import { Button } from '../primitives';
import { HIDE_PENDING_UPDATES, usePaginatedUpdates } from './PaginatedUpdates';
import { tString } from '@/intl/translate';
import type { TranslationLanguage } from '@/intl/translations';
import { tcls } from '@/lib/tailwind';
import {
UPDATES_FILTER_SEARCH_PARAM,
UPDATES_MAX_PAGE,
setUpdatesPageParam,
} from '@/lib/updates-url';
export function UpdatesPagination(props: { language: TranslationLanguage; baseHref: string }) {
const { language, baseHref } = props;
const updates = usePaginatedUpdates();
const searchParams = useSearchParams();
if (!updates?.view.pagination || updates.view.pagination.totalPages <= 1) {
return null;
}
const { view, goToPage } = updates;
const { page, totalPages, totalItems, start, end } = updates.view.pagination;
const number = new Intl.NumberFormat(language.locale);
const previousLabel = tString(language, 'previous_page');
const nextLabel = tString(language, 'next_page');
function buttonProps(targetPage: number, rel: 'prev' | 'next') {
if (view.status !== 'unfiltered') {
return { onClick: () => goToPage(targetPage) };
}
const params = new URLSearchParams(searchParams?.toString());
params.delete(UPDATES_FILTER_SEARCH_PARAM);
setUpdatesPageParam(params, targetPage);
const query = params.toString();
let href = baseHref;
if (query) {
href += `?${query}`;
}
return { href, rel };
}
return (
<div
className={tcls(
CONTENT_STYLE_REDUCED,
'mt-8 flex items-center justify-between gap-2 border-t border-tint-subtle pt-4',
view.status === 'unfiltered' && HIDE_PENDING_UPDATES
)}
>
<div aria-live="polite" className="text-sm text-tint">
{tString(
language,
'updates_pagination_range',
number.format(start),
number.format(end),
number.format(totalItems)
)}
</div>
<nav
aria-label={tString(language, 'updates_pagination_navigation')}
className="flex justify-end gap-2"
>
{page > 1 && (
<Button
variant="blank"
size="small"
icon="chevron-left"
label={previousLabel}
{...buttonProps(page - 1, 'prev')}
/>
)}
{page < totalPages && page < UPDATES_MAX_PAGE && (
<Button
variant="blank"
size="small"
trailing={<Icon icon="chevron-right" className="size-3" />}
label={nextLabel}
{...buttonProps(page + 1, 'next')}
/>
)}
</nav>
</div>
);
}
@@ -1,144 +0,0 @@
'use server';
import type * as React from 'react';
import { IconsProvider } from '@gitbook/icons';
import { PageBodyDocument } from '../PageBody/PageBodyDocument';
import { getPageDocument } from '@/lib/data';
import { getDocumentSections } from '@/lib/document-sections';
import {
getContentInlineIconSourceRequests,
getCustomizationIconStyle,
getInlineIconSources,
} from '@/lib/icons/inline';
import { getLogger } from '@/lib/logger';
import { resolvePageId } from '@/lib/pages';
import { fetchServerActionSiteContext, getServerActionBaseContext } from '@/lib/server-actions';
import {
findUpdateAnchorPage,
getDocumentFilterableTags,
normalizeUpdatesFilterTags,
paginateUpdatesDocument,
} from '@/lib/updates';
import { UPDATES_MAX_PAGE } from '@/lib/updates-url';
type UpdatesPageAction = {
pageId: string;
tags: string[];
isEmbeddable: boolean;
};
export type FilteredUpdatesPageResult =
| {
status: 'ok';
revisionId: string;
content: React.ReactNode;
sections: Awaited<ReturnType<typeof getDocumentSections>>;
pagination: NonNullable<ReturnType<typeof paginateUpdatesDocument>['pagination']>;
}
| {
status: 'unfiltered';
revisionId: string;
}
| {
status: 'error';
};
export async function getFilteredUpdatesPage(
options: UpdatesPageAction & { page: number }
): Promise<FilteredUpdatesPageResult> {
const logger = getLogger().subLogger('updatesPagination');
if (!Number.isInteger(options.page) || options.page < 1 || options.page > UPDATES_MAX_PAGE) {
logger.warn('Invalid filtered updates page number');
return { status: 'error' };
}
try {
const { context, page, document } = await getUpdatesPageDocument(options);
const availableTags = new Set(
getDocumentFilterableTags(document, context.revision).map((tag) => tag.slug)
);
const tags = normalizeUpdatesFilterTags(options.tags, availableTags);
if (!tags.length) {
logger.info('No selected tags on the current revision', { pageId: page.id });
return { status: 'unfiltered', revisionId: context.revisionId };
}
const result = paginateUpdatesDocument(document, context.revision, {
page: options.page,
tags,
});
if (!result.pagination) {
logger.info('Current revision no longer needs updates pagination', { pageId: page.id });
return { status: 'unfiltered', revisionId: context.revisionId };
}
const [sections, iconSources] = await Promise.all([
getDocumentSections(context, result.document),
getInlineIconSources(
getContentInlineIconSourceRequests({
iconStyle: getCustomizationIconStyle(context.customization),
document: result.document,
})
),
]);
logger.info('Rendered filtered updates page', {
siteId: context.site.id,
pageId: page.id,
page: result.pagination.page,
totalItems: result.pagination.totalItems,
totalPages: result.pagination.totalPages,
});
return {
status: 'ok',
revisionId: context.revisionId,
content: (
<IconsProvider iconSources={iconSources}>
<PageBodyDocument context={context} page={page} document={result.document} />
</IconsProvider>
),
sections,
pagination: result.pagination,
};
} catch {
logger.warn('Could not render filtered updates page');
return { status: 'error' };
}
}
export async function resolveUpdatesAnchor(options: UpdatesPageAction & { anchor: string }) {
const logger = getLogger().subLogger('updatesPagination');
try {
const { context, page, document } = await getUpdatesPageDocument(options);
const result = findUpdateAnchorPage(document, context.revision, options);
logger.info('Resolved updates anchor', {
siteId: context.site.id,
pageId: page.id,
found: result.found,
page: result.found && result.page,
});
if (result.found && result.page <= UPDATES_MAX_PAGE) {
return result;
}
} catch {
logger.warn('Could not resolve updates anchor');
}
return { found: false as const };
}
async function getUpdatesPageDocument({ pageId, isEmbeddable }: UpdatesPageAction) {
const context = await fetchServerActionSiteContext(
await getServerActionBaseContext({ isEmbeddable })
);
const target = resolvePageId(context.revision.pages, pageId);
if (!target) {
throw new Error('Updates page not found');
}
const { page } = target;
const document = await getPageDocument(context, page);
if (!document) {
throw new Error('Updates document not found');
}
return { context: { ...context, page }, page, document };
}
@@ -1,9 +1,7 @@
import type { Metadata } from 'next';
import { SiteInsightsDisplayContext } from '@gitbook/api';
import { IconsProvider } from '@gitbook/icons';
import { PaginatedUpdatesProvider } from '../DocumentView/PaginatedUpdates';
import { HeaderMobileMenu } from '../Header/HeaderMobileMenu';
import { SpacesDropdown, TranslationsDropdown } from '../Header/SpacesDropdown';
import { PageBody } from '../PageBody';
@@ -35,7 +33,6 @@ export const dynamic = 'force-static';
type EmbeddableDocsPageProps = {
context: GitBookSiteContext;
pageParams: PagePathParams;
updatesPage?: number;
};
/**
@@ -44,51 +41,11 @@ type EmbeddableDocsPageProps = {
export async function EmbeddableDocsPage(
props: EmbeddableDocsPageProps & { staticRoute: boolean }
) {
const { context } = props;
const {
page,
document,
ancestors,
withPageFeedback,
contentHasUpdates,
pagination,
pageHref,
filterableTags,
iconSources,
} = await getSitePageData(props);
let updatesBaseHref: string | undefined;
if (pagination) {
updatesBaseHref = pageHref;
}
let pageBody = (
<PageBody
context={context}
page={page}
ancestors={ancestors}
document={document}
withPageFeedback={withPageFeedback}
insightsDisplayContext={SiteInsightsDisplayContext.Embed}
staticRoute={props.staticRoute}
contentHasUpdates={contentHasUpdates}
updatesBaseHref={updatesBaseHref}
/>
);
if (pagination) {
pageBody = (
<IconsProvider iconSources={iconSources}>
<PaginatedUpdatesProvider
key={`${context.space.id}/${context.revisionId}/${page.id}/${pagination.page}`}
pageId={page.id}
revisionId={context.revisionId}
isEmbeddable
tagSlugs={filterableTags.map((tag) => tag.slug)}
initialPagination={pagination}
>
{pageBody}
</PaginatedUpdatesProvider>
</IconsProvider>
);
}
const { context, pageParams } = props;
const { page, document, ancestors, withPageFeedback } = await getSitePageData({
context,
pageParams,
});
const variants = categorizeVariants(context);
@@ -190,7 +147,15 @@ export async function EmbeddableDocsPage(
) : null
}
/>
{pageBody}
<PageBody
context={context}
page={page}
ancestors={ancestors}
document={document}
withPageFeedback={withPageFeedback}
insightsDisplayContext={SiteInsightsDisplayContext.Embed}
staticRoute={props.staticRoute}
/>
</ScrollContainer>
</EmbeddableFrameBody>
</EmbeddableFrameMain>
@@ -15,7 +15,7 @@ import { PageFeedbackForm } from '../PageFeedback';
import { SideSheet } from '../primitives/SideSheet';
import { ThemeToggler } from '../ThemeToggler';
import { PageAsideCloseButton } from './PageAsideButton';
import { PaginatedScrollSectionsList, ScrollSectionsList } from './ScrollSectionsList';
import { ScrollSectionsList } from './ScrollSectionsList';
import { ScrollToTopButton } from './ScrollToTopButton';
import { getSpaceLanguage, t, tString } from '@/intl/server';
import type { GitBookSiteContext } from '@/lib/context';
@@ -29,7 +29,6 @@ export async function PageAside(props: {
page: RevisionPageDocument;
document: JSONDocument | null;
filterableTags: RevisionTag[];
withUpdatesPagination: boolean;
context: GitBookSiteContext;
withHeaderOffset: { sectionsHeader: boolean; topHeader: boolean };
withFullPageCover: boolean;
@@ -143,11 +142,7 @@ export async function PageAside(props: {
<div className="flex shrink flex-col overflow-hidden">
{document ? (
<React.Suspense fallback={null}>
<PageAsideSections
document={document}
context={context}
withUpdatesPagination={props.withUpdatesPagination}
/>
<PageAsideSections document={document} context={context} />
</React.Suspense>
) : null}
<PageAsideActions page={page} withPageFeedback={withPageFeedback} />
@@ -162,19 +157,11 @@ export async function PageAside(props: {
);
}
async function PageAsideSections(props: {
document: JSONDocument;
context: GitBookSiteContext;
withUpdatesPagination: boolean;
}) {
async function PageAsideSections(props: { document: JSONDocument; context: GitBookSiteContext }) {
const { document, context } = props;
const sections = await getDocumentSections(context, document);
if (props.withUpdatesPagination) {
return <PaginatedScrollSectionsList sections={sections} />;
}
return sections.length > 1 ? (
<div data-gb-page-outline className="overflow-y-auto">
<ScrollSectionsList sections={sections} />
@@ -4,10 +4,6 @@ import React from 'react';
import { OpenAPIMethodBadge } from '@gitbook/react-openapi';
import { HEADER_HEIGHT_DESKTOP } from '../layout';
import {
HIDE_PENDING_UPDATES,
usePaginatedUpdates,
} from '@/components/DocumentView/PaginatedUpdates';
import { useUpdatesFilter } from '@/components/DocumentView/UpdatesFilter';
import { useScrollActiveId } from '@/components/hooks';
import { useBodyLoaded } from '@/components/primitives';
@@ -25,34 +21,6 @@ const SECTION_INTERSECTING_THRESHOLD = 0.9;
*/
const ACTIVE_ITEM_OFFSET = 100;
export function PaginatedScrollSectionsList(props: { sections: DocumentSection[] }) {
const updates = usePaginatedUpdates();
const view = updates?.view;
if (view?.status === 'loading' || view?.status === 'error') {
return null;
}
let sections = props.sections;
if (view?.status === 'filtered') {
sections = view.sections;
}
if (sections.length <= 1) {
return null;
}
return (
<div
data-gb-page-outline
className={tcls(
'overflow-y-auto',
view?.status === 'unfiltered' && HIDE_PENDING_UPDATES
)}
>
<ScrollSectionsList sections={sections} />
</div>
);
}
export function ScrollSectionsList({ sections }: { sections: DocumentSection[] }) {
const { selectedTagSet } = useUpdatesFilter();
const ids = React.useMemo(
@@ -4,9 +4,7 @@ import {
SiteInsightsDisplayContext,
} from '@gitbook/api';
import { DocumentViewSkeleton } from '../DocumentView';
import { PaginatedUpdatesBody } from '../DocumentView/PaginatedUpdates';
import { UpdatesPagination } from '../DocumentView/UpdatesPagination';
import { DocumentView, DocumentViewSkeleton } from '../DocumentView';
import { CurrentPageProvider } from '../hooks/useCurrentPage';
import { TrackPageViewEvent } from '../Insights';
import { CONTENT_STYLE } from '../layout';
@@ -14,7 +12,6 @@ import { PageFeedbackForm } from '../PageFeedback';
import { DateRelative, SuspenseLoadedHint } from '../primitives';
import OptionalSuspense from './OptionalSuspense';
import { PageBodyBlankslate } from './PageBodyBlankslate';
import { PageBodyDocument } from './PageBodyDocument';
import { PageCover } from './PageCover';
import { PageFooterNavigation } from './PageFooterNavigation';
import { PageHeader } from './PageHeader';
@@ -23,11 +20,19 @@ import { MAIN_CONTENT_ID } from '@/components/layout';
import { getSpaceLanguage } from '@/intl/server';
import { t } from '@/intl/translate';
import type { GitBookSiteContext } from '@/lib/context';
import { hasAPIBlock, hasFullWidthBlock, isNodeEmpty } from '@/lib/document';
import {
hasAPIBlock,
hasFullWidthBlock,
hasMoreThan,
hasTopLevelBlock,
isNodeEmpty,
} from '@/lib/document';
import type { AncestorRevisionPage } from '@/lib/pages';
import { tcls } from '@/lib/tailwind';
import { getPageRSSURL } from '@/routes/rss';
const LINK_PREVIEW_MAX_COUNT = 500;
export async function PageBody(props: {
context: GitBookSiteContext;
page: RevisionPageDocument;
@@ -36,8 +41,6 @@ export async function PageBody(props: {
withPageFeedback: boolean;
insightsDisplayContext: SiteInsightsDisplayContext;
staticRoute: boolean;
contentHasUpdates: boolean;
updatesBaseHref?: string | undefined;
}) {
const {
page,
@@ -47,14 +50,26 @@ export async function PageBody(props: {
withPageFeedback,
insightsDisplayContext,
staticRoute,
contentHasUpdates,
updatesBaseHref,
} = props;
const { customization } = context;
// Update blocks can only be at the top level of the document, so we optimize the check.
const contentHasUpdates = document
? hasTopLevelBlock(document, (block) => block.type === 'updates')
: false;
// Comments can only be made on change request previews, so public pages skip their markers.
const withCommentAnchors = Boolean(context.changeRequest);
// Render link previews only if there are less than LINK_PREVIEW_MAX_COUNT links in the document.
const withLinkPreviews = document
? !hasMoreThan(
document,
(inline) => inline.object === 'inline' && inline.type === 'link',
LINK_PREVIEW_MAX_COUNT
)
: false;
// Determine if content should use wide layout (2-column or 1-column instead of 3-column)
// This happens when: (1) document has full-width blocks, OR (2) page layout is explicitly set to 'wide'
const wideContent = document ? hasFullWidthBlock(document) : false;
@@ -77,29 +92,6 @@ export async function PageBody(props: {
const pageHasToc = page.layout.tableOfContents && hasVisibleTOCItems;
let content = <PageBodyBlankslate page={page} context={context} />;
if (document && !isNodeEmpty(document)) {
content = (
<OptionalSuspense
staticRoute={staticRoute}
fallback={<DocumentViewSkeleton document={document} blockStyle="" />}
>
<SuspenseLoadedHint />
<div className="contents" data-content-ref-root="">
<PageBodyDocument document={document} context={context} page={page} />
</div>
</OptionalSuspense>
);
}
if (updatesBaseHref) {
content = (
<>
<PaginatedUpdatesBody>{content}</PaginatedUpdatesBody>
<UpdatesPagination language={language} baseHref={updatesBaseHref} />
</>
);
}
return (
<CurrentPageProvider page={{ spaceId: context.space.id, pageId: page.id }}>
{contentHasUpdates ? (
@@ -112,11 +104,10 @@ export async function PageBody(props: {
) : null}
<main
id={MAIN_CONTENT_ID}
tabIndex={-1}
// Comments on the whole page target anywhere in it that isn't a block.
{...(withCommentAnchors ? { 'data-comment-page': '' } : {})}
className={tcls(
'relative min-w-0 flex-1 outline-none',
'relative min-w-0 flex-1',
'break-anywhere', // Allow words to break if they are too long.
'py-8',
'layout-wide:no-sidebar:lg:max-xl:pb-20', // Add padding to prevent overlap of minimised trademark
@@ -147,7 +138,32 @@ export async function PageBody(props: {
hasAPIBlocks={hasAPIBlocks}
asEmbeddable={insightsDisplayContext === SiteInsightsDisplayContext.Embed}
/>
{content}
{document && !isNodeEmpty(document) ? (
<OptionalSuspense
staticRoute={staticRoute}
fallback={<DocumentViewSkeleton document={document} blockStyle="" />}
>
<SuspenseLoadedHint />
<div className="contents" data-content-ref-root="">
<DocumentView
document={document}
style="flex flex-col [&>*+*]:mt-5"
context={{
mode: 'default',
contentContext: {
...context,
page,
},
withLinkPreviews,
withCommentAnchors,
isPageBody: true,
}}
/>
</div>
</OptionalSuspense>
) : (
<PageBodyBlankslate page={page} context={context} />
)}
</div>
{page.layout.pagination && customization.pagination.enabled ? (
@@ -1,34 +0,0 @@
import type { JSONDocument, RevisionPageDocument } from '@gitbook/api';
import { DocumentView } from '../DocumentView';
import type { GitBookSiteContext } from '@/lib/context';
import { hasMoreThan } from '@/lib/document';
const LINK_PREVIEW_MAX_COUNT = 500;
export function PageBodyDocument(props: {
context: GitBookSiteContext;
page: RevisionPageDocument;
document: JSONDocument;
}) {
const { context, page, document } = props;
const withLinkPreviews = !hasMoreThan(
document,
(inline) => inline.object === 'inline' && inline.type === 'link',
LINK_PREVIEW_MAX_COUNT
);
return (
<DocumentView
document={document}
style="flex flex-col [&>*+*]:mt-5"
context={{
mode: 'default',
contentContext: { ...context, page },
withLinkPreviews,
withCommentAnchors: Boolean(context.changeRequest),
isPageBody: true,
}}
/>
);
}
@@ -6,7 +6,6 @@ import {
CustomizationHeaderPreset,
SiteInsightsDisplayContext,
type TranslationLanguage,
type RevisionTag,
} from '@gitbook/api';
import { IconsProvider } from '@gitbook/icons';
@@ -19,43 +18,34 @@ import {
} from './fetch';
import { PageClientLayout } from './PageClientLayout';
import { getPageFullTitle } from './title';
import { PaginatedUpdatesProvider } from '@/components/DocumentView/PaginatedUpdates';
import { UpdatesFilterProvider } from '@/components/DocumentView/UpdatesFilter';
import { UpdatesFilterScript } from '@/components/DocumentView/UpdatesFilterScript';
import { PageAside } from '@/components/PageAside';
import { PageBody, PageCover } from '@/components/PageBody';
import type { GitBookSiteContext } from '@/lib/context';
import { getDataOrNull, getPageDocument } from '@/lib/data';
import { hasTopLevelBlock } from '@/lib/document';
import {
getContentInlineIconSourceRequests,
getCustomizationIconStyle,
getInlineIconSources,
} from '@/lib/icons/inline';
import { getResizedImageURL } from '@/lib/images';
import { getLogger } from '@/lib/logger';
import { getPagePath } from '@/lib/pages';
import { resolveContentRef } from '@/lib/references';
import { isPageIndexable, isSiteIndexable } from '@/lib/seo';
import { getSiteSpacePagePaths, resolveSiteSpaceCustomHomePage } from '@/lib/sites';
import { tcls } from '@/lib/tailwind';
import {
countDocumentUpdates,
generateUpdatesFilterCSS,
getUpdatesPageRange,
paginateUpdatesDocument,
UPDATES_PAGINATION_THRESHOLD,
getDocumentFilterableTags,
updatesFilterStyleHref,
} from '@/lib/updates';
import { UPDATES_PAGE_SEARCH_PARAM } from '@/lib/updates-url';
export { getPageFullTitle } from './title';
export type SitePageProps = {
context: GitBookSiteContext;
pageParams: PagePathParams;
updatesPage?: number;
};
type AlternateLinkSpace = {
@@ -95,18 +85,11 @@ export async function SitePage(props: SitePageProps & { staticRoute: boolean })
withTopHeader,
pageMetaLinks,
iconSources,
filterableTags,
contentHasUpdates,
pagination,
pageHref,
} = await getSitePageData(props);
const headerOffset = { sectionsHeader: withSections, topHeader: withTopHeader };
const filterableTags = document ? getDocumentFilterableTags(document, context.revision) : [];
const filterableTagSlugs = filterableTags.map((tag) => tag.slug);
let updatesBaseHref: string | undefined;
if (pagination) {
updatesBaseHref = pageHref;
}
let content = (
const content = (
<>
{/* Using `contents` makes the children of this div according to its parent — which keeps them in a single flex row with the TOC by default.
If there's a page cover, we use `flex flex-col` to lay out the PageCover above the PageBody + PageAside instead. */}
@@ -136,7 +119,6 @@ export async function SitePage(props: SitePageProps & { staticRoute: boolean })
page={page}
document={document}
filterableTags={filterableTags}
withUpdatesPagination={Boolean(pagination)}
withHeaderOffset={headerOffset}
withFullPageCover={withFullPageCover}
withPageFeedback={withPageFeedback}
@@ -150,8 +132,6 @@ export async function SitePage(props: SitePageProps & { staticRoute: boolean })
withPageFeedback={withPageFeedback}
insightsDisplayContext={SiteInsightsDisplayContext.Site}
staticRoute={props.staticRoute}
contentHasUpdates={contentHasUpdates}
updatesBaseHref={updatesBaseHref}
/>
</div>
<PageClientLayout pageMetaLinks={pageMetaLinks} />
@@ -159,34 +139,18 @@ export async function SitePage(props: SitePageProps & { staticRoute: boolean })
</>
);
if (pagination) {
content = (
<PaginatedUpdatesProvider
key={`${context.space.id}/${context.revisionId}/${page.id}/${pagination.page}`}
pageId={page.id}
revisionId={context.revisionId}
isEmbeddable={false}
tagSlugs={filterableTagSlugs}
initialPagination={pagination}
>
<UpdatesFilterStyle tagSlugs={filterableTagSlugs} />
{content}
</PaginatedUpdatesProvider>
);
} else if (filterableTagSlugs.length > 0) {
content = (
<UpdatesFilterProvider tagSlugs={filterableTagSlugs}>
<UpdatesFilterScript tagSlugs={filterableTagSlugs} />
<UpdatesFilterStyle tagSlugs={filterableTagSlugs} />
{content}
</UpdatesFilterProvider>
);
}
return (
<IconsProvider iconSources={iconSources}>
<PageContextProvider pageId={page.id} spaceId={context.space.id} title={page.title}>
{content}
{filterableTagSlugs.length > 0 ? (
<UpdatesFilterProvider tagSlugs={filterableTagSlugs}>
<UpdatesFilterScript tagSlugs={filterableTagSlugs} />
<UpdatesFilterStyle tagSlugs={filterableTagSlugs} />
{content}
</UpdatesFilterProvider>
) : (
content
)}
</PageContextProvider>
</IconsProvider>
);
@@ -240,7 +204,7 @@ export async function generateSitePageMetadata(props: SitePageProps): Promise<Me
const { page, ancestors } = pageTarget;
const { customization, revision, linker, imageResizer } = context;
let canonical = (
const canonical = (
pageMetaLinks?.canonical
? new URL(
// If the canonical link is an absolute URL, use it as is.
@@ -252,23 +216,6 @@ export async function generateSitePageMetadata(props: SitePageProps): Promise<Me
linker.toAbsoluteURL(linker.toPathForPage({ pages: revision.pages, page }))
).replace(/\/+$/, ''); // Trim trailing slashes in canonical URL to match the redirect behavior
let title = getPageFullTitle(context, page);
if (props.updatesPage) {
const document = await getPageDocument(context, page);
if (document) {
const count = countDocumentUpdates(document);
if (count > UPDATES_PAGINATION_THRESHOLD) {
const { page: pageNumber } = getUpdatesPageRange(props.updatesPage, count);
title = `${title} (Page ${pageNumber})`;
if (!pageMetaLinks?.canonical) {
const url = new URL(canonical);
url.searchParams.set(UPDATES_PAGE_SEARCH_PARAM, String(pageNumber));
canonical = url.toString();
}
}
}
}
const alternates = pageMetaLinks?.alternates.reduce<{
languages: Record<string, string>;
generic: {
@@ -292,7 +239,7 @@ export async function generateSitePageMetadata(props: SitePageProps): Promise<Me
);
return {
title,
title: getPageFullTitle(context, page),
description: page.description ?? '',
keywords: page.keywords?.length ? page.keywords : undefined,
alternates: {
@@ -380,44 +327,7 @@ export async function getSitePageData(props: SitePageProps) {
const withSections = Boolean(visibleSections && visibleSections.list.length > 0);
const fullDocument = await getPageDocument(context, page);
const pageHref = context.linker.toPathForPagePath({ path: rawPathname });
let contentHasUpdates = false;
let filterableTags: RevisionTag[] = [];
let document = fullDocument;
let pagination = null;
if (fullDocument) {
contentHasUpdates = hasTopLevelBlock(fullDocument, (block) => block.type === 'updates');
filterableTags = getDocumentFilterableTags(fullDocument, context.revision);
({ document, pagination } = paginateUpdatesDocument(fullDocument, context.revision, {
page: props.updatesPage ?? 1,
}));
}
if (pagination || props.updatesPage) {
const logger = getLogger().subLogger('updatesPagination', {
labels: { siteId: context.site.id, pageId: page.id },
});
if (props.updatesPage && (!pagination || pagination.isClamped)) {
const targetPage = pagination?.page ?? 1;
logger.info('Redirected out-of-range updates page', {
requestedPage: props.updatesPage,
targetPage,
});
if (targetPage > 1) {
redirect(`${pageHref}?${UPDATES_PAGE_SEARCH_PARAM}=${targetPage}`);
}
redirect(pageHref);
}
if (pagination) {
logger.info('Rendered updates page', {
page: pagination.page,
totalItems: pagination.totalItems,
totalPages: pagination.totalPages,
});
}
}
const document = await getPageDocument(context, page);
const iconStyle = getCustomizationIconStyle(customization);
const iconSources = await getInlineIconSources(
getContentInlineIconSourceRequests({
@@ -437,10 +347,6 @@ export async function getSitePageData(props: SitePageProps) {
withTopHeader,
pageMetaLinks,
iconSources,
contentHasUpdates,
filterableTags,
pagination,
pageHref,
};
}
@@ -98,10 +98,7 @@ export const activeClasses = {
export const Button = React.forwardRef<
HTMLButtonElement | HTMLAnchorElement,
ButtonProps &
React.ButtonHTMLAttributes<HTMLButtonElement> & {
target?: React.HTMLAttributeAnchorTarget;
rel?: string;
}
React.ButtonHTMLAttributes<HTMLButtonElement> & { target?: React.HTMLAttributeAnchorTarget }
>(
(
{
@@ -167,11 +164,6 @@ export const Button = React.forwardRef<
}
}
let trailingElement = null;
if (trailing) {
trailingElement = <span className="button-trailing-icon ms-auto">{trailing}</span>;
}
const content = (
<>
{iconElement}
@@ -185,7 +177,6 @@ export const Button = React.forwardRef<
{children ?? label}
</span>
)}
{trailingElement}
</>
);
@@ -216,6 +207,7 @@ export const Button = React.forwardRef<
{...rest}
>
{content}
{trailing ? <span className="button-trailing-icon ms-auto">{trailing}</span> : null}
</button>
);
@@ -46,8 +46,6 @@ export const ar: TranslationLanguage = {
on_this_page: 'في هذه الصفحة',
next_page: 'التالي',
previous_page: 'السابق',
updates_pagination_navigation: 'التنقل بين الصفحات',
updates_pagination_range: '${1} - ${2} من أصل ${3} تحديثات',
toc_back_to_space: 'العودة إلى ${1}',
page_last_modified: 'آخر تحديث ${1}',
was_this_helpful: 'هل كان هذا مفيدا؟',
@@ -46,8 +46,6 @@ export const bg: TranslationLanguage = {
on_this_page: 'На тази страница',
next_page: 'Следваща',
previous_page: 'Предишна',
updates_pagination_navigation: 'Навигация между страниците',
updates_pagination_range: '${1} - ${2} от ${3} актуализации',
toc_back_to_space: 'Обратно към ${1}',
page_last_modified: 'Последна актуализация ${1}',
was_this_helpful: 'Беше ли полезно?',
@@ -46,8 +46,6 @@ export const cs: TranslationLanguage = {
on_this_page: 'Na této stránce',
next_page: 'Další',
previous_page: 'Předchozí',
updates_pagination_navigation: 'Navigace mezi stránkami',
updates_pagination_range: '${1} - ${2} z ${3} aktualizací',
toc_back_to_space: 'Zpět na ${1}',
page_last_modified: 'Poslední aktualizace ${1}',
was_this_helpful: 'Bylo to užitečné?',
@@ -46,8 +46,6 @@ export const da: TranslationLanguage = {
on_this_page: 'På denne side',
next_page: 'Næste',
previous_page: 'Forrige',
updates_pagination_navigation: 'Sidenavigation',
updates_pagination_range: '${1} - ${2} af ${3} opdateringer',
toc_back_to_space: 'Tilbage til ${1}',
page_last_modified: 'Sidst opdateret ${1}',
was_this_helpful: 'Var dette nyttigt?',
@@ -47,8 +47,6 @@ export const de: TranslationLanguage = {
on_this_page: 'Auf dieser Seite',
next_page: 'Nächste',
previous_page: 'Vorherige',
updates_pagination_navigation: 'Seitennavigation',
updates_pagination_range: '${1} - ${2} von ${3} Updates',
toc_back_to_space: 'Zurück zu ${1}',
page_last_modified: 'Zuletzt aktualisiert ${1}',
was_this_helpful: 'War das hilfreich?',
@@ -46,8 +46,6 @@ export const el: TranslationLanguage = {
on_this_page: 'Σε αυτήν τη σελίδα',
next_page: 'Επόμενη',
previous_page: 'Προηγούμενη',
updates_pagination_navigation: 'Πλοήγηση σελίδων',
updates_pagination_range: '${1} - ${2} από ${3} ενημερώσεις',
toc_back_to_space: 'Επιστροφή σε ${1}',
page_last_modified: 'Τελευταία ενημέρωση ${1}',
was_this_helpful: 'Ήταν χρήσιμο αυτό;',
@@ -44,8 +44,6 @@ export const en = {
on_this_page: 'On this page',
next_page: 'Next',
previous_page: 'Previous',
updates_pagination_navigation: 'Pagination Navigation',
updates_pagination_range: '${1} - ${2} of ${3} updates',
toc_back_to_space: 'Back to ${1}',
page_last_modified: 'Last updated ${1}',
was_this_helpful: 'Was this helpful?',
@@ -47,8 +47,6 @@ export const es: TranslationLanguage = {
on_this_page: 'En esta página',
next_page: 'Siguiente',
previous_page: 'Anterior',
updates_pagination_navigation: 'Navegación entre páginas',
updates_pagination_range: '${1} - ${2} de ${3} actualizaciones',
toc_back_to_space: 'Volver a ${1}',
page_last_modified: 'Última actualización ${1}',
was_this_helpful: '¿Te fue útil?',
@@ -46,8 +46,6 @@ export const et: TranslationLanguage = {
on_this_page: 'Sellel lehel',
next_page: 'Järgmine',
previous_page: 'Eelmine',
updates_pagination_navigation: 'Lehekülgede vahel liikumine',
updates_pagination_range: '${1} - ${2} / ${3} uuendust',
toc_back_to_space: 'Tagasi: ${1}',
page_last_modified: 'Viimati uuendatud ${1}',
was_this_helpful: 'Kas sellest oli abi?',
@@ -46,8 +46,6 @@ export const fi: TranslationLanguage = {
on_this_page: 'Tällä sivulla',
next_page: 'Seuraava',
previous_page: 'Edellinen',
updates_pagination_navigation: 'Sivujen selaus',
updates_pagination_range: '${1} - ${2} / ${3} päivitystä',
toc_back_to_space: 'Takaisin: ${1}',
page_last_modified: 'Päivitetty viimeksi ${1}',
was_this_helpful: 'Oliko tästä apua?',
@@ -46,8 +46,6 @@ export const fr: TranslationLanguage = {
on_this_page: 'Sur cette page',
next_page: 'Suivant',
previous_page: 'Précédent',
updates_pagination_navigation: 'Navigation entre les pages',
updates_pagination_range: '${1} - ${2} sur ${3} mises à jour',
toc_back_to_space: 'Retour à ${1}',
page_last_modified: 'Mis à jour ${1}',
was_this_helpful: 'Ce contenu vous a-t-il été utile ?',
@@ -46,8 +46,6 @@ export const he: TranslationLanguage = {
on_this_page: 'בדף הזה',
next_page: 'הבא',
previous_page: 'הקודם',
updates_pagination_navigation: 'ניווט בין עמודים',
updates_pagination_range: '${1} - ${2} מתוך ${3} עדכונים',
toc_back_to_space: 'חזרה אל ${1}',
page_last_modified: 'עודכן לאחרונה ${1}',
was_this_helpful: 'האם זה היה מועיל?',
@@ -46,8 +46,6 @@ export const hi: TranslationLanguage = {
on_this_page: 'इस पृष्ठ पर',
next_page: 'अगला',
previous_page: 'पिछला',
updates_pagination_navigation: 'पेज नेविगेशन',
updates_pagination_range: '${3} अपडेट में से ${1} - ${2}',
toc_back_to_space: '${1} पर वापस जाएँ',
page_last_modified: 'अंतिम अपडेट ${1}',
was_this_helpful: 'क्या यह उपयोगी था?',
@@ -46,8 +46,6 @@ export const hr: TranslationLanguage = {
on_this_page: 'Na ovoj stranici',
next_page: 'Sljedeća',
previous_page: 'Prethodna',
updates_pagination_navigation: 'Navigacija stranicama',
updates_pagination_range: '${1} - ${2} od ${3} ažuriranja',
toc_back_to_space: 'Natrag na ${1}',
page_last_modified: 'Zadnje ažurirano ${1}',
was_this_helpful: 'Je li ovo bilo korisno?',

Some files were not shown because too many files have changed in this diff Show More