diff --git a/.changeset/assistant-chat-aria-busy.md b/.changeset/assistant-chat-aria-busy.md deleted file mode 100644 index fc563d777..000000000 --- a/.changeset/assistant-chat-aria-busy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Mark the AI Assistant chat as `aria-busy` while it is generating a response (including the follow-up suggestion phase), so assistive technologies are notified of the in-progress state. diff --git a/.changeset/assistant-form-overflow.md b/.changeset/assistant-form-overflow.md deleted file mode 100644 index d86d7b567..000000000 --- a/.changeset/assistant-form-overflow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Fix the AI assistant panel overflowing its frame when rendering single/multi-choice question forms with long option text. diff --git a/.changeset/assistant-group-tool-calls.md b/.changeset/assistant-group-tool-calls.md deleted file mode 100644 index 95b6a6a21..000000000 --- a/.changeset/assistant-group-tool-calls.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Assistant: group all of a turn's tool calls behind a single "Explored with N tools" expandable instead of rendering a separate single-item expandable for each client-side tool call. diff --git a/.changeset/cookieless-integration-content-host.md b/.changeset/cookieless-integration-content-host.md deleted file mode 100644 index 0ffc8ecdf..000000000 --- a/.changeset/cookieless-integration-content-host.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Trust an optional cookieless integration content host (`GITBOOK_INTEGRATIONS_CONTENT_HOST`) for WebFrame postMessage, in preparation for isolating integration-rendered content onto a separate origin. Defaults to `GITBOOK_INTEGRATIONS_HOST`, so behavior is unchanged until the content host is configured. diff --git a/.changeset/dvorak-shortcut-logical-key.md b/.changeset/dvorak-shortcut-logical-key.md deleted file mode 100644 index ddbf72db0..000000000 --- a/.changeset/dvorak-shortcut-logical-key.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Match keyboard shortcuts by the logical character typed instead of the physical key position, so that ⌘-C no longer opens the Assistant on the Dvorak layout (and other non-QWERTY layouts). diff --git a/.changeset/hint-wide-content-overflow.md b/.changeset/hint-wide-content-overflow.md deleted file mode 100644 index 73f1956a7..000000000 --- a/.changeset/hint-wide-content-overflow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Fix wide content (such as code blocks and tables) overflowing the edges of hint blocks instead of scrolling within them. diff --git a/.changeset/link-tooltip-external-button.md b/.changeset/link-tooltip-external-button.md deleted file mode 100644 index 52bcf63b8..000000000 --- a/.changeset/link-tooltip-external-button.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Remove the external link button from the link tooltip hover card, as its arrow read as clickable even though the preview card isn't interactive. diff --git a/.changeset/markdown-ask-goal-param.md b/.changeset/markdown-ask-goal-param.md new file mode 100644 index 000000000..d10324fda --- /dev/null +++ b/.changeset/markdown-ask-goal-param.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Support an optional `goal` query parameter on the markdown ask interface (`?ask=…&goal=…`), letting agents describe the broader end goal they are working towards so the answer can be steered towards it. diff --git a/.changeset/page-actions-items.md b/.changeset/page-actions-items.md deleted file mode 100644 index b3d185ea2..000000000 --- a/.changeset/page-actions-items.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Drive page actions ordering and default action from the new `pageActions.items` list, including the reorderable assistant action diff --git a/.changeset/page-reference-chip.md b/.changeset/page-reference-chip.md deleted file mode 100644 index 0ad093c06..000000000 --- a/.changeset/page-reference-chip.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Add a page reference chip when opening the Assistant from the page action, so the assistant is informed about the page the reader is currently on. diff --git a/.changeset/rich-chefs-dig.md b/.changeset/rich-chefs-dig.md deleted file mode 100644 index 1490e5859..000000000 --- a/.changeset/rich-chefs-dig.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gitbook/react-openapi": patch -"gitbook": patch ---- - -Support OpenAPI one-operation-per-page mode diff --git a/.changeset/section-dropdown-embedded-empty.md b/.changeset/section-dropdown-embedded-empty.md new file mode 100644 index 000000000..dfd70d68f --- /dev/null +++ b/.changeset/section-dropdown-embedded-empty.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Fix grouped top-nav section dropdowns rendering empty when the site is embedded in an iframe (visitor-auth embeds, editor preview) or shown in the embeddable view. The dropdown viewport is composited and animated, and a clipped composited layer fails to rasterize its text in Chromium when painted inside a sub compositing root; the rounded-corner clipping is now done on an inner wrapper so the viewport itself is no longer clipped. diff --git a/.changeset/spicy-pages-rescue.md b/.changeset/spicy-pages-rescue.md new file mode 100644 index 000000000..123ecbefb --- /dev/null +++ b/.changeset/spicy-pages-rescue.md @@ -0,0 +1,5 @@ +--- +"gitbook": patch +--- + +Improve the 404 page: remove the table of contents sidebar and center the content, suggest related pages (ranked from the already-cached search index, so no extra request per 404), show a search or assistant input depending on the site's AI configuration, and move "Go to homepage" to the bottom as a last resort. diff --git a/.changeset/table-block-search.md b/.changeset/table-block-search.md deleted file mode 100644 index b25d7a82f..000000000 --- a/.changeset/table-block-search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gitbook": patch ---- - -Add a client-side search field to table blocks, with per-column filters for select and checkbox columns diff --git a/.changeset/tiny-items-talk.md b/.changeset/tiny-items-talk.md deleted file mode 100644 index 30c196306..000000000 --- a/.changeset/tiny-items-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@gitbook/react-openapi": patch ---- - -Handle circular oneOf with discriminator and allOf in OpenAPI schemas diff --git a/bun.lock b/bun.lock index c8a3208bf..51e19e618 100644 --- a/bun.lock +++ b/bun.lock @@ -109,7 +109,7 @@ }, "packages/gitbook": { "name": "gitbook", - "version": "0.27.0", + "version": "0.27.1", "dependencies": { "@cloudflare/workers-types": "^4.20251011.0", "@gitbook/api": "catalog:", @@ -312,7 +312,7 @@ }, "packages/react-openapi": { "name": "@gitbook/react-openapi", - "version": "1.5.13", + "version": "1.5.14", "dependencies": { "@gitbook/expr": "workspace:*", "@gitbook/openapi-parser": "workspace:*", @@ -360,7 +360,7 @@ "react-dom": "catalog:", }, "catalog": { - "@gitbook/api": "0.184.0", + "@gitbook/api": "0.185.0", "@scalar/api-client-react": "^1.3.46", "@tsconfig/node20": "^20.1.6", "@tsconfig/strictest": "^2.0.6", @@ -756,7 +756,7 @@ "@fortawesome/fontawesome-svg-core": ["@fortawesome/fontawesome-svg-core@7.2.0", "", { "dependencies": { "@fortawesome/fontawesome-common-types": "7.2.0" } }, "sha512-6639htZMjEkwskf3J+e6/iar+4cTNM9qhoWuRfj9F3eJD6r7iCzV1SWnQr2Mdv0QT0suuqU8BoJCZUyCtP9R4Q=="], - "@gitbook/api": ["@gitbook/api@0.184.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-yPoQqLLik6IihFcwVVbuEAIyDA7F2q80HprNRuj10m+O2XULlm4+bW5R71r5/GCjDKSf5QfmRXmYh4OopljPKw=="], + "@gitbook/api": ["@gitbook/api@0.185.0", "", { "dependencies": { "event-iterator": "^2.0.0", "eventsource-parser": "^3.0.0" } }, "sha512-RrFZSHI7W79ri5jHd/gp01ZbuxfOPOFEqnom956wNUfUf/CIQDZcCNzmvLIWzuYesI7Snq3NLi+U5XzOsJhC4g=="], "@gitbook/browser-types": ["@gitbook/browser-types@workspace:packages/browser-types"], diff --git a/package.json b/package.json index f2a7592a7..b11176ae4 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "catalog": { "@tsconfig/strictest": "^2.0.6", "@tsconfig/node20": "^20.1.6", - "@gitbook/api": "0.184.0", + "@gitbook/api": "0.185.0", "@scalar/api-client-react": "^1.3.46", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/packages/gitbook/CHANGELOG.md b/packages/gitbook/CHANGELOG.md index d75e15c65..42dc1275d 100644 --- a/packages/gitbook/CHANGELOG.md +++ b/packages/gitbook/CHANGELOG.md @@ -1,5 +1,26 @@ # gitbook +## 0.27.1 + +### Patch Changes + +- acf2719: Mark the AI Assistant chat as `aria-busy` while it is generating a response (including the follow-up suggestion phase), so assistive technologies are notified of the in-progress state. +- 72a1596: Fix the AI assistant panel overflowing its frame when rendering single/multi-choice question forms with long option text. +- 77c717c: Assistant: group all of a turn's tool calls behind a single "Explored with N tools" expandable instead of rendering a separate single-item expandable for each client-side tool call. +- c44d822: Trust an optional cookieless integration content host (`GITBOOK_INTEGRATIONS_CONTENT_HOST`) for WebFrame postMessage, in preparation for isolating integration-rendered content onto a separate origin. Defaults to `GITBOOK_INTEGRATIONS_HOST`, so behavior is unchanged until the content host is configured. +- 7655041: Match keyboard shortcuts by the logical character typed instead of the physical key position, so that ⌘-C no longer opens the Assistant on the Dvorak layout (and other non-QWERTY layouts). +- af3cda1: Fix wide content (such as code blocks and tables) overflowing the edges of hint blocks instead of scrolling within them. +- 0ca4952: Remove the external link button from the link tooltip hover card, as its arrow read as clickable even though the preview card isn't interactive. +- 3ff88ba: Add a Prompt block +- 251630c: Drive page actions ordering and default action from the new `pageActions.items` list, including the reorderable assistant action +- ddba803: Add a page reference chip when opening the Assistant from the page action, so the assistant is informed about the page the reader is currently on. +- f4469b2: Support OpenAPI one-operation-per-page mode +- 6c967c9: Add a client-side search field to table blocks, with per-column filters for select and checkbox columns +- 882dfcd: Tidy prompt and add e2e test +- Updated dependencies [f4469b2] +- Updated dependencies [88b94b5] + - @gitbook/react-openapi@1.5.14 + ## 0.27.0 ### Minor Changes diff --git a/packages/gitbook/e2e/internal.spec.ts b/packages/gitbook/e2e/internal.spec.ts index cb856294b..e61364808 100644 --- a/packages/gitbook/e2e/internal.spec.ts +++ b/packages/gitbook/e2e/internal.spec.ts @@ -1113,6 +1113,11 @@ const testCases: TestsCase[] = [ url: 'blocks/mermaid', run: waitForCookiesDialog, }, + { + name: 'Prompt', + url: 'blocks/prompt', + run: waitForCookiesDialog, + }, ], }, { diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index 04bfcc356..eb46bcf3e 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -1,6 +1,6 @@ { "name": "gitbook", - "version": "0.27.0", + "version": "0.27.1", "private": true, "dependencies": { "@cloudflare/workers-types": "^4.20251011.0", diff --git a/packages/gitbook/src/app/sites/dynamic/[mode]/[siteURL]/[siteData]/~gitbook/mcp/handler.ts b/packages/gitbook/src/app/sites/dynamic/[mode]/[siteURL]/[siteData]/~gitbook/mcp/handler.ts index 788a9e2e1..3d46aeb99 100644 --- a/packages/gitbook/src/app/sites/dynamic/[mode]/[siteURL]/[siteData]/~gitbook/mcp/handler.ts +++ b/packages/gitbook/src/app/sites/dynamic/[mode]/[siteURL]/[siteData]/~gitbook/mcp/handler.ts @@ -1,4 +1,4 @@ -import { SiteInsightsDisplayContext } from '@gitbook/api'; +import { CustomizationPageActionType, SiteInsightsDisplayContext } from '@gitbook/api'; import { type RouteLayoutParams, getDynamicSiteContext } from '@/app/utils'; import { getExposableError, throwIfDataError } from '@/lib/data'; @@ -20,7 +20,14 @@ export async function handleMcpRequest( const { context } = await getDynamicSiteContext(params); const { dataFetcher, linker, site } = context; - if (!context.customization.pageActions.mcp) { + // Use the configured `items` list when the API provides it, and fall back to the deprecated + // `mcp` flag otherwise (legacy mode), since this endpoint is called directly and cannot rely on + // any page-rendering fallback. + const { pageActions } = context.customization; + const isMcpEnabled = pageActions.items + ? pageActions.items.includes(CustomizationPageActionType.Mcp) + : pageActions.mcp; + if (!isMcpEnabled) { return new Response('Not Found', { status: 404 }); } diff --git a/packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/markdown-ask/[question]/[goal]/route.ts b/packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/markdown-ask/[question]/[goal]/route.ts new file mode 100644 index 000000000..db90ed917 --- /dev/null +++ b/packages/gitbook/src/app/sites/static/[mode]/[siteURL]/[siteData]/~gitbook/markdown-ask/[question]/[goal]/route.ts @@ -0,0 +1,24 @@ +import { type RouteLayoutParams, getStaticSiteContext } from '@/app/utils'; +import { serveAskMarkdown } from '@/routes/markdownAsk'; +import type { NextRequest } from 'next/server'; + +export const dynamic = 'force-static'; + +/** + * Serve an AI answer as markdown for a page, steered by the end goal ("goal") + * the calling agent provided via the `?goal=` search parameter. + * + * The goal is encoded as a path segment (rather than read from the query) because + * this route is statically rendered, mirroring how the question itself is handled. + */ +export async function GET( + _request: NextRequest, + { params }: { params: Promise } +) { + const { question: encodedQuestion, goal: encodedGoal } = await params; + const { context } = await getStaticSiteContext(await params); + const question = decodeURIComponent(encodedQuestion); + const goal = decodeURIComponent(encodedGoal); + + return serveAskMarkdown(context, question, { goal }); +} diff --git a/packages/gitbook/src/components/AIChat/AIChat.tsx b/packages/gitbook/src/components/AIChat/AIChat.tsx index b2214d506..dbc6cfa3c 100644 --- a/packages/gitbook/src/components/AIChat/AIChat.tsx +++ b/packages/gitbook/src/components/AIChat/AIChat.tsx @@ -31,9 +31,11 @@ import { ScrollContainer } from '../primitives/ScrollContainer'; import { SideSheet } from '../primitives/SideSheet'; import { AIChatControl } from './AIChatControl'; import { AIChatControlButton } from './AIChatControlButton'; +import { AIChatExpandButton } from './AIChatExpandButton'; import { AIChatIcon } from './AIChatIcon'; import { AIChatInput } from './AIChatInput'; import { AIChatMessages } from './AIChatMessages'; +import { AIChatResizeHandle } from './AIChatResizeHandle'; import AIChatSuggestedQuestions from './AIChatSuggestedQuestions'; export function AIChat() { @@ -85,9 +87,10 @@ export function AIChat() { withOverlay={true} data-ai-chat className={tcls( - 'ai-chat mx-auto ml-8 not-hydrated:hidden w-96 transition-[width] duration-300 ease-quint lg:max-xl:w-80' + 'ai-chat mx-auto ml-8 not-hydrated:hidden w-96 transition-[width] duration-300 ease-quint lg:w-(--ai-chat-width)' )} > + @@ -100,6 +103,7 @@ export function AIChat() { + - - - +
+
+ - {/* Track the page not found as a page view */} - +
+
+

+ {t( + language, + adaptiveAuthLoginHref + ? 'notfound_adaptive_title' + : 'notfound_title' + )} +

+

+ {t( + language, + adaptiveAuthLoginHref ? 'notfound_adaptive' : 'notfound' + )} +

+
+ {adaptiveAuthLoginHref ? ( +
+ +

+ {t(language, 'notfound_adaptive_registration_hint')} +

+
+ ) : null} +
+ +
+ + assistant ? assistant.open(value) : openSearch(value) + } + submitButton={{ label: inputLabel }} + maxLength={2048} + className="grow" + /> + +
+ + {/* "Go to homepage" is the last resort, kept at the end of the flow. */} +
); } + +/** + * List of related pages, with skeleton rows while they load. Renders nothing once we know + * there are no suggestions. + */ +function NotFoundSuggestions(props: { suggestions: RelatedPage[] | null }) { + const { suggestions } = props; + const language = useLanguage(); + + const loading = suggestions === null; + const hasResults = suggestions != null && suggestions.length > 0; + + return loading || hasResults ? ( +
+

{t(language, 'notfound_suggestions_title')}

+
    + {loading ? ( + + ) : ( + suggestions.map((suggestion, index) => ( +
  • + + {suggestion.emoji ? ( + + + + ) : ( + + )} + {suggestion.title} + +
  • + )) + )} +
+
+ ) : null; +} + +/** Minimal shape of an entry in the `~gitbook/site-index` response. */ +type IndexPage = { + id: string; + title: string; + pathname: string; + siteSpaceId: string; + icon?: string; + emoji?: string; +}; + +/** + * Return the pages whose path is closest to the one that 404'd. + * + * Rather than asking the server (which would mean an extra request per 404), this reuses the + * search index served at `~gitbook/site-index` — already preloaded and CDN-cached on every page — + * so it's a cache hit, not an origin request. The ranking is a lighter, client-side cousin of + * `getSimilarPages` (which the Markdown 404 runs server-side from the full page tree). + */ +async function getRelatedPages( + indexURL: string, + requestedPath: string, + siteSpaceId: string | null +): Promise { + const response = await fetch(indexURL); + if (!response.ok) { + return []; + } + const { pages } = (await response.json()) as { pages: IndexPage[] }; + + return pages + .filter((page) => !siteSpaceId || page.siteSpaceId === siteSpaceId) + .map((page) => ({ page, score: scorePathSimilarity(requestedPath, page.pathname) })) + .sort((a, b) => b.score - a.score) + .slice(0, RELATED_PAGES_COUNT) + .map(({ page }) => ({ + id: page.id, + title: page.title, + href: page.pathname, + emoji: page.emoji, + icon: page.icon, + })); +} + +const normalizePath = (path: string) => path.toLowerCase().replace(/^\/+|\/+$/g, ''); +const lastSegment = (path: string) => path.slice(path.lastIndexOf('/') + 1); +const similarity = (left: string, right: string) => { + const max = Math.max(left.length, right.length); + return max === 0 ? 1 : 1 - leven(left, right) / max; +}; + +/** Path similarity in [0, 1] — full-path closeness, weighted toward the last segment. */ +function scorePathSimilarity(input: string, candidate: string): number { + const a = normalizePath(input); + const b = normalizePath(candidate); + if (!a || !b) { + return 0; + } + return similarity(a, b) * 0.6 + similarity(lastSegment(a), lastSegment(b)) * 0.4; +} diff --git a/packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx b/packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx index 341a2c698..0f6fa0c6e 100644 --- a/packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx +++ b/packages/gitbook/src/components/SiteSections/SiteSectionTabs.tsx @@ -133,11 +133,7 @@ export function SiteSectionTabs(props: { 'data-[motion=from-start]:*:animate-[enterFromLeft_300ms_ease_both] data-[motion=to-end]:*:animate-[exitToRight_300ms_ease_both] data-[motion=to-start]:*:animate-[exitToLeft_300ms_ease_both] motion-safe:data-[motion=from-end]:*:animate-[enterFromRight_300ms_ease_both]', ])} > -
+
+
) { - const { basePath, siteAdaptiveAuthLoginHref = null, children } = props; + const { basePath, siteAdaptiveAuthLoginHref = null, siteIndexURL, children } = props; const value = React.useMemo( - () => ({ basePath, siteAdaptiveAuthLoginHref }), - [basePath, siteAdaptiveAuthLoginHref] + () => ({ basePath, siteAdaptiveAuthLoginHref, siteIndexURL }), + [basePath, siteAdaptiveAuthLoginHref, siteIndexURL] ); return {children}; @@ -47,3 +49,14 @@ export function useSiteAdaptiveAuthLoginHref() { } return context.siteAdaptiveAuthLoginHref; } + +/** + * Return the URL of the site search index (`~gitbook/site-index`). + */ +export function useSiteIndexURL() { + const context = React.useContext(SpaceLayoutContext); + if (!context) { + throw new Error('SpaceLayoutContext not found'); + } + return context.siteIndexURL; +} diff --git a/packages/gitbook/src/components/TableOfContents/PageDocumentItem.tsx b/packages/gitbook/src/components/TableOfContents/PageDocumentItem.tsx index a4103c627..50480e1a9 100644 --- a/packages/gitbook/src/components/TableOfContents/PageDocumentItem.tsx +++ b/packages/gitbook/src/components/TableOfContents/PageDocumentItem.tsx @@ -43,7 +43,7 @@ export function PageDocumentItem(props: { page: ClientTOCPageDocument }) { tag={page.primaryTag ? : null} > {page.openAPIOperation ? ( - + ( +
  • + +
  • + )); +} + /** * Placeholder when loading a title. */ diff --git a/packages/gitbook/src/components/utils/getURLForLLM.ts b/packages/gitbook/src/components/utils/getURLForLLM.ts new file mode 100644 index 000000000..0eb72479b --- /dev/null +++ b/packages/gitbook/src/components/utils/getURLForLLM.ts @@ -0,0 +1,18 @@ +import assertNever from 'assert-never'; + +/** + * Returns the URL to open the page in a LLM with a pre-filled prompt. + */ +export function getURLForLLM(provider: 'chatgpt' | 'claude' | 'cursor', prompt: string) { + const encodedPrompt = encodeURIComponent(prompt); + switch (provider) { + case 'chatgpt': + return `https://chat.openai.com/?q=${encodedPrompt}`; + case 'claude': + return `https://claude.ai/new?q=${encodedPrompt}`; + case 'cursor': + return `https://cursor.com/link/prompt?text=${encodedPrompt}`; + default: + assertNever(provider); + } +} diff --git a/packages/gitbook/src/components/utils/index.ts b/packages/gitbook/src/components/utils/index.ts index 655ef2f46..56160df2f 100644 --- a/packages/gitbook/src/components/utils/index.ts +++ b/packages/gitbook/src/components/utils/index.ts @@ -1,3 +1,4 @@ export * from './Image'; export * from './dates'; export * from './Favicon'; +export * from './getURLForLLM'; diff --git a/packages/gitbook/src/intl/translations/ar.ts b/packages/gitbook/src/intl/translations/ar.ts index ad11b0821..4169b61cf 100644 --- a/packages/gitbook/src/intl/translations/ar.ts +++ b/packages/gitbook/src/intl/translations/ar.ts @@ -56,6 +56,7 @@ export const ar: TranslationLanguage = { annotation_button_label: 'فتح التعليق التوضيحي', code_copied: 'تم النسخ!', code_copy: 'نسخ', + prompt_copy: 'نسخ الموجّه', code_block_collapsed: 'عرض كل الأسطر ${1}', code_block_expanded: 'عرض أقل', table_of_contents_button_label: 'فتح جدول المحتويات', @@ -75,7 +76,9 @@ export const ar: TranslationLanguage = { notfound_adaptive_title: 'الصفحة غير متاحة', notfound_adaptive: 'قد تكون هذه الصفحة موجودة، لكن قد تحتاج إلى تسجيل الدخول للوصول إليها.', notfound_adaptive_login: 'تسجيل الدخول', + notfound_adaptive_registration_hint: 'قد يكون التسجيل متاحًا حسب المؤسسة.', notfound_goto_home: 'الانتقال إلى الصفحة الرئيسية', + notfound_suggestions_title: 'ربما تبحث عن', unexpected_error_title: 'حدث خطأ', unexpected_error: 'عذرا، حدث خطأ غير متوقع. يرجى المحاولة مرة أخرى لاحقا.', unexpected_error_retry: 'حاول مرة أخرى', @@ -105,6 +108,8 @@ export const ar: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'مساء الخير', ai_chat_assistant_greeting_night: 'تصبح على خير', ai_chat_clear_conversation: 'مسح المحادثة', + ai_chat_expand_panel: 'توسيع اللوحة', + ai_chat_collapse_panel: 'طي اللوحة', ai_chat_thinking: 'جار التفكير...', ai_chat_working: 'جار العمل...', ai_chat_exploring: 'جار الاستكشاف...', diff --git a/packages/gitbook/src/intl/translations/bg.ts b/packages/gitbook/src/intl/translations/bg.ts index 7b65e350f..51a90614a 100644 --- a/packages/gitbook/src/intl/translations/bg.ts +++ b/packages/gitbook/src/intl/translations/bg.ts @@ -56,6 +56,7 @@ export const bg: TranslationLanguage = { annotation_button_label: 'Отваряне на бележка', code_copied: 'Копирано!', code_copy: 'Копиране', + prompt_copy: 'Копиране на подканата', code_block_collapsed: 'Показване на всички ${1} реда', code_block_expanded: 'Показване на по-малко', table_of_contents_button_label: 'Отваряне на съдържанието', @@ -76,7 +77,10 @@ export const bg: TranslationLanguage = { notfound_adaptive: 'Тази страница може да съществува, но може да трябва да влезете, за да я достъпите.', notfound_adaptive_login: 'Вход', + notfound_adaptive_registration_hint: + 'Регистрацията може да е възможна в зависимост от организацията.', notfound_goto_home: 'Към началната страница', + notfound_suggestions_title: 'Може би търсите', unexpected_error_title: 'Възникна грешка', unexpected_error: 'Съжаляваме, възникна неочаквана грешка. Моля, опитайте отново по-късно.', unexpected_error_retry: 'Опитайте отново', @@ -107,6 +111,8 @@ export const bg: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Добър вечер', ai_chat_assistant_greeting_night: 'Лека нощ', ai_chat_clear_conversation: 'Изчистване на разговора', + ai_chat_expand_panel: 'Разгъване на панела', + ai_chat_collapse_panel: 'Свиване на панела', ai_chat_thinking: 'Мисля...', ai_chat_working: 'Работя...', ai_chat_exploring: 'Проучвам...', diff --git a/packages/gitbook/src/intl/translations/cs.ts b/packages/gitbook/src/intl/translations/cs.ts index 31fb0948a..caf848c47 100644 --- a/packages/gitbook/src/intl/translations/cs.ts +++ b/packages/gitbook/src/intl/translations/cs.ts @@ -56,6 +56,7 @@ export const cs: TranslationLanguage = { annotation_button_label: 'Otevřít anotaci', code_copied: 'Zkopírováno!', code_copy: 'Kopírovat', + prompt_copy: 'Kopírovat výzvu', code_block_collapsed: 'Zobrazit všech ${1} řádků', code_block_expanded: 'Zobrazit méně', table_of_contents_button_label: 'Otevřít obsah', @@ -76,7 +77,9 @@ export const cs: TranslationLanguage = { notfound_adaptive: 'Tato stránka může existovat, ale pro přístup se možná budete muset přihlásit.', notfound_adaptive_login: 'Přihlásit se', + notfound_adaptive_registration_hint: 'Registrace může být dostupná v závislosti na organizaci.', notfound_goto_home: 'Přejít na domovskou stránku', + notfound_suggestions_title: 'Možná hledáte', unexpected_error_title: 'Došlo k chybě', unexpected_error: 'Omlouváme se, došlo k neočekávané chybě. Zkuste to prosím znovu později.', unexpected_error_retry: 'Zkusit znovu', @@ -107,6 +110,8 @@ export const cs: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Dobrý večer', ai_chat_assistant_greeting_night: 'Dobrou noc', ai_chat_clear_conversation: 'Vymazat konverzaci', + ai_chat_expand_panel: 'Rozbalit panel', + ai_chat_collapse_panel: 'Sbalit panel', ai_chat_thinking: 'Přemýšlím...', ai_chat_working: 'Pracuji...', ai_chat_exploring: 'Prozkoumávám...', diff --git a/packages/gitbook/src/intl/translations/da.ts b/packages/gitbook/src/intl/translations/da.ts index 6bbe39a3b..0e911fa33 100644 --- a/packages/gitbook/src/intl/translations/da.ts +++ b/packages/gitbook/src/intl/translations/da.ts @@ -56,6 +56,7 @@ export const da: TranslationLanguage = { annotation_button_label: 'Åbn kommentar', code_copied: 'Kopieret!', code_copy: 'Kopiér', + prompt_copy: 'Kopiér prompten', code_block_collapsed: 'Vis alle ${1} linjer', code_block_expanded: 'Vis mindre', table_of_contents_button_label: 'Åbn indholdsfortegnelse', @@ -76,7 +77,9 @@ export const da: TranslationLanguage = { notfound_adaptive: 'Denne side findes muligvis, men du skal muligvis logge ind for at få adgang.', notfound_adaptive_login: 'Log ind', + notfound_adaptive_registration_hint: 'Registrering kan være mulig afhængigt af organisationen.', notfound_goto_home: 'Gå til forsiden', + notfound_suggestions_title: 'Du leder måske efter', unexpected_error_title: 'Der opstod en fejl', unexpected_error: 'Beklager, der opstod en uventet fejl. Prøv igen senere.', unexpected_error_retry: 'Prøv igen', @@ -106,6 +109,8 @@ export const da: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Godaften', ai_chat_assistant_greeting_night: 'Godnat', ai_chat_clear_conversation: 'Ryd samtale', + ai_chat_expand_panel: 'Udvid panel', + ai_chat_collapse_panel: 'Formindsk panel', ai_chat_thinking: 'Tænker...', ai_chat_working: 'Arbejder...', ai_chat_exploring: 'Udforsker...', diff --git a/packages/gitbook/src/intl/translations/de.ts b/packages/gitbook/src/intl/translations/de.ts index 58cc41b37..afd044890 100644 --- a/packages/gitbook/src/intl/translations/de.ts +++ b/packages/gitbook/src/intl/translations/de.ts @@ -55,6 +55,7 @@ export const de = { annotation_button_label: 'Kommentar öffnen', code_copied: 'Kopiert!', code_copy: 'Kopieren', + prompt_copy: 'Prompt kopieren', code_block_collapsed: 'Alle ${1} Zeilen anzeigen', code_block_expanded: 'Weniger anzeigen', table_of_contents_button_label: 'Inhaltsverzeichnis öffnen', @@ -76,7 +77,10 @@ export const de = { notfound_adaptive: 'Diese Seite existiert möglicherweise, aber Sie müssen sich eventuell anmelden, um darauf zuzugreifen.', notfound_adaptive_login: 'Anmelden', + notfound_adaptive_registration_hint: + 'Die Registrierung ist je nach Organisation möglicherweise verfügbar.', notfound_goto_home: 'Zur Startseite', + notfound_suggestions_title: 'Vielleicht suchen Sie nach', unexpected_error_title: 'Ein Fehler ist aufgetreten', unexpected_error: 'Entschuldigung, ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.', @@ -108,6 +112,8 @@ export const de = { ai_chat_assistant_greeting_evening: 'Guten Abend', ai_chat_assistant_greeting_night: 'Gute Nacht', ai_chat_clear_conversation: 'Unterhaltung löschen', + ai_chat_expand_panel: 'Panel erweitern', + ai_chat_collapse_panel: 'Panel reduzieren', ai_chat_thinking: 'Denke nach...', ai_chat_working: 'Arbeite...', ai_chat_exploring: 'Erkunde...', diff --git a/packages/gitbook/src/intl/translations/el.ts b/packages/gitbook/src/intl/translations/el.ts index 7966199d7..bf25b83f8 100644 --- a/packages/gitbook/src/intl/translations/el.ts +++ b/packages/gitbook/src/intl/translations/el.ts @@ -56,6 +56,7 @@ export const el: TranslationLanguage = { annotation_button_label: 'Άνοιγμα σχολίου', code_copied: 'Αντιγράφηκε!', code_copy: 'Αντιγραφή', + prompt_copy: 'Αντιγραφή προτροπής', code_block_collapsed: 'Εμφάνιση όλων των ${1} γραμμών', code_block_expanded: 'Εμφάνιση λιγότερων', table_of_contents_button_label: 'Άνοιγμα πίνακα περιεχομένων', @@ -76,7 +77,10 @@ export const el: TranslationLanguage = { notfound_adaptive: 'Αυτή η σελίδα μπορεί να υπάρχει, αλλά ίσως χρειαστεί να συνδεθείτε για πρόσβαση.', notfound_adaptive_login: 'Σύνδεση', + notfound_adaptive_registration_hint: + 'Η εγγραφή ενδέχεται να είναι διαθέσιμη ανάλογα με τον οργανισμό.', notfound_goto_home: 'Μετάβαση στην αρχική σελίδα', + notfound_suggestions_title: 'Ίσως αναζητάτε', unexpected_error_title: 'Παρουσιάστηκε σφάλμα', unexpected_error: 'Λυπούμαστε, παρουσιάστηκε ένα μη αναμενόμενο σφάλμα. Δοκιμάστε ξανά αργότερα.', @@ -108,6 +112,8 @@ export const el: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Καλό βράδυ', ai_chat_assistant_greeting_night: 'Καληνύχτα', ai_chat_clear_conversation: 'Εκκαθάριση συνομιλίας', + ai_chat_expand_panel: 'Ανάπτυξη πίνακα', + ai_chat_collapse_panel: 'Σύμπτυξη πίνακα', ai_chat_thinking: 'Σκέφτομαι...', ai_chat_working: 'Εργάζομαι...', ai_chat_exploring: 'Εξερευνώ...', diff --git a/packages/gitbook/src/intl/translations/en.ts b/packages/gitbook/src/intl/translations/en.ts index ad112cee0..342cfcd71 100644 --- a/packages/gitbook/src/intl/translations/en.ts +++ b/packages/gitbook/src/intl/translations/en.ts @@ -54,6 +54,7 @@ export const en = { annotation_button_label: 'Open annotation', code_copied: 'Copied!', code_copy: 'Copy', + prompt_copy: 'Copy prompt', code_block_collapsed: 'Show all ${1} lines', code_block_expanded: 'Show less', table_of_contents_button_label: 'Open table of contents', @@ -69,11 +70,14 @@ export const en = { edit: 'Edit', notfound_title: 'Page not found', notfound_link: 'This link points to a page that has been removed or no longer exists.', - notfound: "The page you are looking for doesn't exist.", + notfound: "The page you're looking for doesn't exist.", notfound_adaptive_title: 'Page unavailable', notfound_adaptive: 'This page may exist, but you may need to log in to access it.', notfound_adaptive_login: 'Log in', + notfound_adaptive_registration_hint: + 'Registration may be available depending on the organization.', notfound_goto_home: 'Go to homepage', + notfound_suggestions_title: 'You might be looking for', unexpected_error_title: 'An error occurred', unexpected_error: 'Sorry, an unexpected error has occurred. Please try again later.', unexpected_error_retry: 'Try again', @@ -103,6 +107,8 @@ export const en = { ai_chat_assistant_greeting_evening: 'Good evening', ai_chat_assistant_greeting_night: 'Good night', ai_chat_clear_conversation: 'Clear conversation', + ai_chat_expand_panel: 'Expand panel', + ai_chat_collapse_panel: 'Collapse panel', ai_chat_thinking: 'Thinking…', ai_chat_working: 'Working…', ai_chat_exploring: 'Exploring…', diff --git a/packages/gitbook/src/intl/translations/es.ts b/packages/gitbook/src/intl/translations/es.ts index 75cfbb312..a868ae59c 100644 --- a/packages/gitbook/src/intl/translations/es.ts +++ b/packages/gitbook/src/intl/translations/es.ts @@ -57,6 +57,7 @@ export const es: TranslationLanguage = { annotation_button_label: 'Abrir anotación', code_copied: '¡Copiado!', code_copy: 'Copiar', + prompt_copy: 'Copiar prompt', code_block_collapsed: 'Mostrar las ${1} líneas', code_block_expanded: 'Mostrar menos', table_of_contents_button_label: 'Abrir índice de contenidos', @@ -77,7 +78,10 @@ export const es: TranslationLanguage = { notfound_adaptive: 'Esta página puede existir, pero es posible que debas iniciar sesión para acceder.', notfound_adaptive_login: 'Iniciar sesión', + notfound_adaptive_registration_hint: + 'El registro puede estar disponible según la organización.', notfound_goto_home: 'Ir al inicio', + notfound_suggestions_title: 'Quizás estés buscando', unexpected_error_title: 'Ocurrió un error', unexpected_error: 'Lo sentimos, ha ocurrido un error inesperado. Por favor, intenta de nuevo más tarde.', @@ -109,6 +113,8 @@ export const es: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Buenas tardes', ai_chat_assistant_greeting_night: 'Buenas noches', ai_chat_clear_conversation: 'Limpiar conversación', + ai_chat_expand_panel: 'Expandir panel', + ai_chat_collapse_panel: 'Contraer panel', ai_chat_thinking: 'Pensando...', ai_chat_working: 'Trabajando...', ai_chat_exploring: 'Explorando...', diff --git a/packages/gitbook/src/intl/translations/et.ts b/packages/gitbook/src/intl/translations/et.ts index 2146f425e..b408b66c8 100644 --- a/packages/gitbook/src/intl/translations/et.ts +++ b/packages/gitbook/src/intl/translations/et.ts @@ -56,6 +56,7 @@ export const et: TranslationLanguage = { annotation_button_label: 'Ava märkus', code_copied: 'Kopeeritud!', code_copy: 'Kopeeri', + prompt_copy: 'Kopeeri viip', code_block_collapsed: 'Kuva kõik ${1} rida', code_block_expanded: 'Kuva vähem', table_of_contents_button_label: 'Ava sisukord', @@ -75,7 +76,10 @@ export const et: TranslationLanguage = { notfound_adaptive_title: 'Leht pole saadaval', notfound_adaptive: 'See leht võib olemas olla, kuid juurdepääsuks võib olla vaja sisse logida.', notfound_adaptive_login: 'Logi sisse', + notfound_adaptive_registration_hint: + 'Registreerimine võib olla saadaval olenevalt organisatsioonist.', notfound_goto_home: 'Mine avalehele', + notfound_suggestions_title: 'Võib-olla otsite', unexpected_error_title: 'Ilmnes tõrge', unexpected_error: 'Vabandust, ilmnes ootamatu tõrge. Palun proovige hiljem uuesti.', unexpected_error_retry: 'Proovi uuesti', @@ -105,6 +109,8 @@ export const et: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Tere õhtust', ai_chat_assistant_greeting_night: 'Head ööd', ai_chat_clear_conversation: 'Tühjenda vestlus', + ai_chat_expand_panel: 'Laienda paneeli', + ai_chat_collapse_panel: 'Ahenda paneeli', ai_chat_thinking: 'Mõtlen...', ai_chat_working: 'Töötan...', ai_chat_exploring: 'Uurin...', diff --git a/packages/gitbook/src/intl/translations/fi.ts b/packages/gitbook/src/intl/translations/fi.ts index 12393b3b1..652f5b1ac 100644 --- a/packages/gitbook/src/intl/translations/fi.ts +++ b/packages/gitbook/src/intl/translations/fi.ts @@ -56,6 +56,7 @@ export const fi: TranslationLanguage = { annotation_button_label: 'Avaa huomautus', code_copied: 'Kopioitu!', code_copy: 'Kopioi', + prompt_copy: 'Kopioi kehote', code_block_collapsed: 'Näytä kaikki ${1} riviä', code_block_expanded: 'Näytä vähemmän', table_of_contents_button_label: 'Avaa sisällysluettelo', @@ -76,7 +77,10 @@ export const fi: TranslationLanguage = { notfound_adaptive: 'Tämä sivu voi olla olemassa, mutta sen käyttö voi edellyttää kirjautumista.', notfound_adaptive_login: 'Kirjaudu sisään', + notfound_adaptive_registration_hint: + 'Rekisteröityminen voi olla mahdollista organisaatiosta riippuen.', notfound_goto_home: 'Siirry etusivulle', + notfound_suggestions_title: 'Saatat etsiä', unexpected_error_title: 'Tapahtui virhe', unexpected_error: 'Valitettavasti tapahtui odottamaton virhe. Yritä myöhemmin uudelleen.', unexpected_error_retry: 'Yritä uudelleen', @@ -106,6 +110,8 @@ export const fi: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Hyvää iltaa', ai_chat_assistant_greeting_night: 'Hyvää yötä', ai_chat_clear_conversation: 'Tyhjennä keskustelu', + ai_chat_expand_panel: 'Laajenna paneeli', + ai_chat_collapse_panel: 'Pienennä paneeli', ai_chat_thinking: 'Ajatellaan...', ai_chat_working: 'Työskennellään...', ai_chat_exploring: 'Tutkitaan...', diff --git a/packages/gitbook/src/intl/translations/fr.ts b/packages/gitbook/src/intl/translations/fr.ts index 25ace6656..df07b8ecf 100644 --- a/packages/gitbook/src/intl/translations/fr.ts +++ b/packages/gitbook/src/intl/translations/fr.ts @@ -54,6 +54,7 @@ export const fr = { annotation_button_label: 'Afficher l’annotation', code_copied: 'Copié !', code_copy: 'Copier', + prompt_copy: 'Copier l’invite', code_block_collapsed: 'Afficher les ${1} lignes', code_block_expanded: 'Afficher moins', table_of_contents_button_label: 'Afficher le sommaire', @@ -74,7 +75,9 @@ export const fr = { notfound_adaptive: 'Cette page existe peut-être, mais vous devez peut-être vous connecter pour y accéder.', notfound_adaptive_login: 'Se connecter', + notfound_adaptive_registration_hint: "L'inscription peut être disponible selon l'organisation.", notfound_goto_home: "Aller à l'accueil", + notfound_suggestions_title: 'Vous cherchez peut-être', unexpected_error_title: 'Erreur inattendue', unexpected_error: 'Désolé, une erreur est survenue. Veuillez réessayer plus tard.', unexpected_error_retry: 'Réessayer', @@ -104,6 +107,8 @@ export const fr = { ai_chat_assistant_greeting_evening: 'Bonsoir', ai_chat_assistant_greeting_night: 'Bonne nuit', ai_chat_clear_conversation: 'Réinitialiser la conversation', + ai_chat_expand_panel: 'Agrandir le panneau', + ai_chat_collapse_panel: 'Réduire le panneau', ai_chat_thinking: 'Réflexion en cours…', ai_chat_working: 'Traitement en cours…', ai_chat_exploring: 'Exploration en cours…', diff --git a/packages/gitbook/src/intl/translations/he.ts b/packages/gitbook/src/intl/translations/he.ts index 6835c3b2c..6a36b0d28 100644 --- a/packages/gitbook/src/intl/translations/he.ts +++ b/packages/gitbook/src/intl/translations/he.ts @@ -56,6 +56,7 @@ export const he: TranslationLanguage = { annotation_button_label: 'פתיחת הערה', code_copied: 'הועתק!', code_copy: 'העתקה', + prompt_copy: 'העתקת ההנחיה', code_block_collapsed: 'הצג את כל ${1} השורות', code_block_expanded: 'הצג פחות', table_of_contents_button_label: 'פתיחת תוכן העניינים', @@ -75,7 +76,9 @@ export const he: TranslationLanguage = { notfound_adaptive_title: 'הדף אינו זמין', notfound_adaptive: 'ייתכן שהדף קיים, אך ייתכן שעליך להתחבר כדי לגשת אליו.', notfound_adaptive_login: 'התחברות', + notfound_adaptive_registration_hint: 'ייתכן שההרשמה זמינה בהתאם לארגון.', notfound_goto_home: 'מעבר לדף הבית', + notfound_suggestions_title: 'אולי אתה מחפש', unexpected_error_title: 'אירעה שגיאה', unexpected_error: 'מצטערים, אירעה שגיאה בלתי צפויה. נסה שוב מאוחר יותר.', unexpected_error_retry: 'נסה שוב', @@ -105,6 +108,8 @@ export const he: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'ערב טוב', ai_chat_assistant_greeting_night: 'לילה טוב', ai_chat_clear_conversation: 'ניקוי השיחה', + ai_chat_expand_panel: 'הרחב פאנל', + ai_chat_collapse_panel: 'כווץ פאנל', ai_chat_thinking: 'חושב...', ai_chat_working: 'עובד...', ai_chat_exploring: 'בודק...', diff --git a/packages/gitbook/src/intl/translations/hi.ts b/packages/gitbook/src/intl/translations/hi.ts index b60f5ff2b..4058a4bbc 100644 --- a/packages/gitbook/src/intl/translations/hi.ts +++ b/packages/gitbook/src/intl/translations/hi.ts @@ -56,6 +56,7 @@ export const hi: TranslationLanguage = { annotation_button_label: 'टिप्पणी खोलें', code_copied: 'कॉपी हो गया!', code_copy: 'कॉपी करें', + prompt_copy: 'प्रॉम्प्ट कॉपी करें', code_block_collapsed: 'सभी ${1} पंक्तियां दिखाएं', code_block_expanded: 'कम दिखाएं', table_of_contents_button_label: 'सामग्री सूची खोलें', @@ -75,7 +76,9 @@ export const hi: TranslationLanguage = { notfound_adaptive_title: 'पृष्ठ उपलब्ध नहीं', notfound_adaptive: 'यह पृष्ठ मौजूद हो सकता है, लेकिन इसे देखने के लिए आपको लॉग इन करना पड़ सकता है।', notfound_adaptive_login: 'लॉग इन करें', + notfound_adaptive_registration_hint: 'संगठन के आधार पर पंजीकरण उपलब्ध हो सकता है।', notfound_goto_home: 'मुखपृष्ठ पर जाएं', + notfound_suggestions_title: 'शायद आप यह ढूँढ रहे हैं', unexpected_error_title: 'त्रुटि हुई', unexpected_error: 'क्षमा करें, एक अनपेक्षित त्रुटि हुई। कृपया बाद में फिर कोशिश करें।', unexpected_error_retry: 'फिर कोशिश करें', @@ -105,6 +108,8 @@ export const hi: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'शुभ संध्या', ai_chat_assistant_greeting_night: 'शुभ रात्रि', ai_chat_clear_conversation: 'बातचीत साफ करें', + ai_chat_expand_panel: 'पैनल का विस्तार करें', + ai_chat_collapse_panel: 'पैनल को छोटा करें', ai_chat_thinking: 'सोच रहा है...', ai_chat_working: 'काम कर रहा है...', ai_chat_exploring: 'खोज रहा है...', diff --git a/packages/gitbook/src/intl/translations/hr.ts b/packages/gitbook/src/intl/translations/hr.ts index 9d1eeb847..2d459316e 100644 --- a/packages/gitbook/src/intl/translations/hr.ts +++ b/packages/gitbook/src/intl/translations/hr.ts @@ -56,6 +56,7 @@ export const hr: TranslationLanguage = { annotation_button_label: 'Otvori bilješku', code_copied: 'Kopirano!', code_copy: 'Kopiraj', + prompt_copy: 'Kopiraj uputu', code_block_collapsed: 'Prikaži svih ${1} redaka', code_block_expanded: 'Prikaži manje', table_of_contents_button_label: 'Otvori sadržaj', @@ -76,7 +77,9 @@ export const hr: TranslationLanguage = { notfound_adaptive: 'Ova stranica možda postoji, ali možda se morate prijaviti da biste joj pristupili.', notfound_adaptive_login: 'Prijava', + notfound_adaptive_registration_hint: 'Registracija može biti dostupna ovisno o organizaciji.', notfound_goto_home: 'Idi na početnu stranicu', + notfound_suggestions_title: 'Možda tražite', unexpected_error_title: 'Došlo je do pogreške', unexpected_error: 'Žao nam je, došlo je do neočekivane pogreške. Pokušajte ponovno kasnije.', unexpected_error_retry: 'Pokušaj ponovno', @@ -107,6 +110,8 @@ export const hr: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Dobra večer', ai_chat_assistant_greeting_night: 'Laku noć', ai_chat_clear_conversation: 'Očisti razgovor', + ai_chat_expand_panel: 'Proširi ploču', + ai_chat_collapse_panel: 'Sažmi ploču', ai_chat_thinking: 'Razmišljam...', ai_chat_working: 'Radim...', ai_chat_exploring: 'Istražujem...', diff --git a/packages/gitbook/src/intl/translations/hu.ts b/packages/gitbook/src/intl/translations/hu.ts index 2d2c2e771..916a0f38f 100644 --- a/packages/gitbook/src/intl/translations/hu.ts +++ b/packages/gitbook/src/intl/translations/hu.ts @@ -56,6 +56,7 @@ export const hu: TranslationLanguage = { annotation_button_label: 'Jegyzet megnyitása', code_copied: 'Másolva!', code_copy: 'Másolás', + prompt_copy: 'Prompt másolása', code_block_collapsed: 'Mind a(z) ${1} sor megjelenítése', code_block_expanded: 'Kevesebb megjelenítése', table_of_contents_button_label: 'Tartalomjegyzék megnyitása', @@ -75,7 +76,9 @@ export const hu: TranslationLanguage = { notfound_adaptive_title: 'Az oldal nem érhető el', notfound_adaptive: 'Ez az oldal létezhet, de a hozzáféréshez lehet, hogy be kell jelentkeznie.', notfound_adaptive_login: 'Bejelentkezés', + notfound_adaptive_registration_hint: 'A regisztráció a szervezettől függően elérhető lehet.', notfound_goto_home: 'Ugrás a kezdőlapra', + notfound_suggestions_title: 'Talán ezt keresi', unexpected_error_title: 'Hiba történt', unexpected_error: 'Sajnáljuk, váratlan hiba történt. Kérjük, próbálja újra később.', unexpected_error_retry: 'Próbálja újra', @@ -106,6 +109,8 @@ export const hu: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Jó estét', ai_chat_assistant_greeting_night: 'Jó éjszakát', ai_chat_clear_conversation: 'Beszélgetés törlése', + ai_chat_expand_panel: 'Panel kibontása', + ai_chat_collapse_panel: 'Panel összecsukása', ai_chat_thinking: 'Gondolkodom...', ai_chat_working: 'Dolgozom...', ai_chat_exploring: 'Felfedezés...', diff --git a/packages/gitbook/src/intl/translations/id.ts b/packages/gitbook/src/intl/translations/id.ts index d4068bb33..0f8a4cc5a 100644 --- a/packages/gitbook/src/intl/translations/id.ts +++ b/packages/gitbook/src/intl/translations/id.ts @@ -56,6 +56,7 @@ export const id: TranslationLanguage = { annotation_button_label: 'Buka anotasi', code_copied: 'Disalin!', code_copy: 'Salin', + prompt_copy: 'Salin prompt', code_block_collapsed: 'Tampilkan semua ${1} baris', code_block_expanded: 'Tampilkan lebih sedikit', table_of_contents_button_label: 'Buka daftar isi', @@ -76,7 +77,9 @@ export const id: TranslationLanguage = { notfound_adaptive: 'Halaman ini mungkin ada, tetapi Anda mungkin perlu masuk untuk mengaksesnya.', notfound_adaptive_login: 'Masuk', + notfound_adaptive_registration_hint: 'Pendaftaran mungkin tersedia tergantung pada organisasi.', notfound_goto_home: 'Buka beranda', + notfound_suggestions_title: 'Mungkin Anda mencari', unexpected_error_title: 'Terjadi kesalahan', unexpected_error: 'Maaf, terjadi kesalahan yang tidak terduga. Silakan coba lagi nanti.', unexpected_error_retry: 'Coba lagi', @@ -106,6 +109,8 @@ export const id: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Selamat malam', ai_chat_assistant_greeting_night: 'Selamat malam', ai_chat_clear_conversation: 'Bersihkan percakapan', + ai_chat_expand_panel: 'Perluas panel', + ai_chat_collapse_panel: 'Ciutkan panel', ai_chat_thinking: 'Berpikir...', ai_chat_working: 'Bekerja...', ai_chat_exploring: 'Menjelajahi...', diff --git a/packages/gitbook/src/intl/translations/it.ts b/packages/gitbook/src/intl/translations/it.ts index 9ff290ba1..c76b386e4 100644 --- a/packages/gitbook/src/intl/translations/it.ts +++ b/packages/gitbook/src/intl/translations/it.ts @@ -57,6 +57,7 @@ export const it: TranslationLanguage = { annotation_button_label: 'Apri annotazione', code_copied: 'Copiato!', code_copy: 'Copia', + prompt_copy: 'Copia il prompt', code_block_collapsed: 'Mostra tutte le ${1} righe', code_block_expanded: 'Mostra meno', table_of_contents_button_label: 'Apri indice dei contenuti', @@ -77,7 +78,10 @@ export const it: TranslationLanguage = { notfound_adaptive: "Questa pagina potrebbe esistere, ma potrebbe essere necessario effettuare l'accesso per visualizzarla.", notfound_adaptive_login: 'Accedi', + notfound_adaptive_registration_hint: + "La registrazione potrebbe essere disponibile a seconda dell'organizzazione.", notfound_goto_home: 'Vai alla home', + notfound_suggestions_title: 'Forse stai cercando', unexpected_error_title: 'Si è verificato un errore', unexpected_error: 'Spiacenti, si è verificato un errore imprevisto. Riprova più tardi.', unexpected_error_retry: 'Riprova', @@ -108,6 +112,8 @@ export const it: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Buonasera', ai_chat_assistant_greeting_night: 'Buonanotte', ai_chat_clear_conversation: 'Cancella conversazione', + ai_chat_expand_panel: 'Espandi pannello', + ai_chat_collapse_panel: 'Comprimi pannello', ai_chat_thinking: 'Sto pensando...', ai_chat_working: 'Sto lavorando...', ai_chat_exploring: 'Esplorando...', diff --git a/packages/gitbook/src/intl/translations/ja.ts b/packages/gitbook/src/intl/translations/ja.ts index 493d332e8..7c7496974 100644 --- a/packages/gitbook/src/intl/translations/ja.ts +++ b/packages/gitbook/src/intl/translations/ja.ts @@ -57,6 +57,7 @@ export const ja: TranslationLanguage = { annotation_button_label: '注釈を開く', code_copied: 'コピーしました!', code_copy: 'コピー', + prompt_copy: 'プロンプトをコピー', code_block_collapsed: 'すべての ${1} 行を表示', code_block_expanded: '折りたたむ', table_of_contents_button_label: '目次を開く', @@ -77,7 +78,9 @@ export const ja: TranslationLanguage = { notfound_adaptive: 'このページは存在する可能性がありますが、アクセスするにはログインが必要な場合があります。', notfound_adaptive_login: 'ログイン', + notfound_adaptive_registration_hint: '組織によっては登録が可能な場合があります。', notfound_goto_home: 'ホームへ移動', + notfound_suggestions_title: 'お探しのページはこちらですか', unexpected_error_title: 'エラーが発生しました', unexpected_error: '申し訳ありません、予期せぬエラーが発生しました。もう一度お試しください。', unexpected_error_retry: '再試行', @@ -107,6 +110,8 @@ export const ja: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'こんばんは', ai_chat_assistant_greeting_night: 'おやすみなさい', ai_chat_clear_conversation: '会話をクリア', + ai_chat_expand_panel: 'パネルを広げる', + ai_chat_collapse_panel: 'パネルを狭める', ai_chat_thinking: '考え中...', ai_chat_working: '作業中...', ai_chat_exploring: '探索中...', diff --git a/packages/gitbook/src/intl/translations/ko.ts b/packages/gitbook/src/intl/translations/ko.ts index 49328aa41..9af69c1eb 100644 --- a/packages/gitbook/src/intl/translations/ko.ts +++ b/packages/gitbook/src/intl/translations/ko.ts @@ -57,6 +57,7 @@ export const ko: TranslationLanguage = { annotation_button_label: '주석 열기', code_copied: '복사됨!', code_copy: '복사', + prompt_copy: '프롬프트 복사', code_block_collapsed: '${1}줄 모두 보기', code_block_expanded: '간단히 보기', table_of_contents_button_label: '목차 열기', @@ -76,7 +77,9 @@ export const ko: TranslationLanguage = { notfound_adaptive_title: '페이지에 접근할 수 없음', notfound_adaptive: '이 페이지는 존재할 수 있지만, 접근하려면 로그인해야 할 수 있습니다.', notfound_adaptive_login: '로그인', + notfound_adaptive_registration_hint: '조직에 따라 등록이 가능할 수 있습니다.', notfound_goto_home: '홈으로 이동', + notfound_suggestions_title: '찾고 계신 내용일 수 있어요', unexpected_error_title: '오류가 발생했습니다', unexpected_error: '죄송합니다. 예상치 못한 오류가 발생했습니다. 나중에 다시 시도해 주세요.', unexpected_error_retry: '다시 시도', @@ -106,6 +109,8 @@ export const ko: TranslationLanguage = { ai_chat_assistant_greeting_evening: '좋은 저녁입니다', ai_chat_assistant_greeting_night: '안녕히 주무세요', ai_chat_clear_conversation: '대화 지우기', + ai_chat_expand_panel: '패널 확장', + ai_chat_collapse_panel: '패널 축소', ai_chat_thinking: '생각 중...', ai_chat_working: '작업 중...', ai_chat_exploring: '탐색 중...', diff --git a/packages/gitbook/src/intl/translations/lt.ts b/packages/gitbook/src/intl/translations/lt.ts index 437fcffda..d51618fa1 100644 --- a/packages/gitbook/src/intl/translations/lt.ts +++ b/packages/gitbook/src/intl/translations/lt.ts @@ -56,6 +56,7 @@ export const lt: TranslationLanguage = { annotation_button_label: 'Atidaryti pastabą', code_copied: 'Nukopijuota!', code_copy: 'Kopijuoti', + prompt_copy: 'Kopijuoti raginimą', code_block_collapsed: 'Rodyti visas ${1} eilutes', code_block_expanded: 'Rodyti mažiau', table_of_contents_button_label: 'Atidaryti turinį', @@ -76,7 +77,10 @@ export const lt: TranslationLanguage = { notfound_adaptive: 'Šis puslapis gali egzistuoti, bet norint jį pasiekti gali reikėti prisijungti.', notfound_adaptive_login: 'Prisijungti', + notfound_adaptive_registration_hint: + 'Registracija gali būti galima priklausomai nuo organizacijos.', notfound_goto_home: 'Eiti į pagrindinį puslapį', + notfound_suggestions_title: 'Galbūt ieškote', unexpected_error_title: 'Įvyko klaida', unexpected_error: 'Atsiprašome, įvyko netikėta klaida. Bandykite dar kartą vėliau.', unexpected_error_retry: 'Bandyti dar kartą', @@ -106,6 +110,8 @@ export const lt: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Labas vakaras', ai_chat_assistant_greeting_night: 'Labanakt', ai_chat_clear_conversation: 'Išvalyti pokalbį', + ai_chat_expand_panel: 'Išskleisti skydelį', + ai_chat_collapse_panel: 'Sutraukti skydelį', ai_chat_thinking: 'Galvoju...', ai_chat_working: 'Dirbu...', ai_chat_exploring: 'Tyrinėju...', diff --git a/packages/gitbook/src/intl/translations/lv.ts b/packages/gitbook/src/intl/translations/lv.ts index 9dd251154..28c574733 100644 --- a/packages/gitbook/src/intl/translations/lv.ts +++ b/packages/gitbook/src/intl/translations/lv.ts @@ -56,6 +56,7 @@ export const lv: TranslationLanguage = { annotation_button_label: 'Atvērt anotāciju', code_copied: 'Nokopēts!', code_copy: 'Kopēt', + prompt_copy: 'Kopēt uzvedni', code_block_collapsed: 'Rādīt visas ${1} rindas', code_block_expanded: 'Rādīt mazāk', table_of_contents_button_label: 'Atvērt satura rādītāju', @@ -75,7 +76,9 @@ export const lv: TranslationLanguage = { notfound_adaptive_title: 'Lapa nav pieejama', notfound_adaptive: 'Šī lapa var pastāvēt, bet, iespējams, jums jāpierakstās, lai tai piekļūtu.', notfound_adaptive_login: 'Pierakstīties', + notfound_adaptive_registration_hint: 'Reģistrācija var būt pieejama atkarībā no organizācijas.', notfound_goto_home: 'Doties uz sākumlapu', + notfound_suggestions_title: 'Iespējams, meklējat', unexpected_error_title: 'Radās kļūda', unexpected_error: 'Diemžēl radās neparedzēta kļūda. Lūdzu, mēģiniet vēlāk vēlreiz.', unexpected_error_retry: 'Mēģināt vēlreiz', @@ -105,6 +108,8 @@ export const lv: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Labvakar', ai_chat_assistant_greeting_night: 'Ar labu nakti', ai_chat_clear_conversation: 'Notīrīt sarunu', + ai_chat_expand_panel: 'Izvērst paneli', + ai_chat_collapse_panel: 'Sakļaut paneli', ai_chat_thinking: 'Domāju...', ai_chat_working: 'Strādāju...', ai_chat_exploring: 'Izpētu...', diff --git a/packages/gitbook/src/intl/translations/ms.ts b/packages/gitbook/src/intl/translations/ms.ts index 2278aa558..357cc21ed 100644 --- a/packages/gitbook/src/intl/translations/ms.ts +++ b/packages/gitbook/src/intl/translations/ms.ts @@ -56,6 +56,7 @@ export const ms: TranslationLanguage = { annotation_button_label: 'Buka anotasi', code_copied: 'Disalin!', code_copy: 'Salin', + prompt_copy: 'Salin gesaan', code_block_collapsed: 'Tunjukkan semua ${1} baris', code_block_expanded: 'Tunjukkan kurang', table_of_contents_button_label: 'Buka jadual kandungan', @@ -76,7 +77,9 @@ export const ms: TranslationLanguage = { notfound_adaptive: 'Halaman ini mungkin wujud, tetapi anda mungkin perlu log masuk untuk mengaksesnya.', notfound_adaptive_login: 'Log masuk', + notfound_adaptive_registration_hint: 'Pendaftaran mungkin tersedia bergantung pada organisasi.', notfound_goto_home: 'Pergi ke halaman utama', + notfound_suggestions_title: 'Mungkin anda mencari', unexpected_error_title: 'Ralat berlaku', unexpected_error: 'Maaf, ralat yang tidak dijangka berlaku. Sila cuba lagi kemudian.', unexpected_error_retry: 'Cuba lagi', @@ -106,6 +109,8 @@ export const ms: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Selamat petang', ai_chat_assistant_greeting_night: 'Selamat malam', ai_chat_clear_conversation: 'Kosongkan perbualan', + ai_chat_expand_panel: 'Kembangkan panel', + ai_chat_collapse_panel: 'Kecilkan panel', ai_chat_thinking: 'Berfikir...', ai_chat_working: 'Bekerja...', ai_chat_exploring: 'Meneroka...', diff --git a/packages/gitbook/src/intl/translations/nl.ts b/packages/gitbook/src/intl/translations/nl.ts index 707355cea..937678356 100644 --- a/packages/gitbook/src/intl/translations/nl.ts +++ b/packages/gitbook/src/intl/translations/nl.ts @@ -57,6 +57,7 @@ export const nl: TranslationLanguage = { annotation_button_label: 'Annotatie openen', code_copied: 'Gekopieerd!', code_copy: 'Kopiëren', + prompt_copy: 'Prompt kopiëren', code_block_collapsed: 'Toon alle ${1} regels', code_block_expanded: 'Toon minder', table_of_contents_button_label: 'Open inhoudsopgave', @@ -77,7 +78,10 @@ export const nl: TranslationLanguage = { notfound_adaptive: 'Deze pagina bestaat mogelijk, maar je moet mogelijk inloggen om toegang te krijgen.', notfound_adaptive_login: 'Inloggen', - notfound_goto_home: 'Ga naar home', + notfound_adaptive_registration_hint: + 'Registratie is mogelijk beschikbaar, afhankelijk van de organisatie.', + notfound_goto_home: 'Naar startpagina', + notfound_suggestions_title: 'Misschien zoek je', unexpected_error_title: 'Er is een fout opgetreden', unexpected_error: 'Sorry, er is een onverwachte fout opgetreden. Probeer het later opnieuw.', unexpected_error_retry: 'Opnieuw proberen', @@ -107,6 +111,8 @@ export const nl: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Goedenavond', ai_chat_assistant_greeting_night: 'Goedenacht', ai_chat_clear_conversation: 'Gesprek wissen', + ai_chat_expand_panel: 'Paneel uitvouwen', + ai_chat_collapse_panel: 'Paneel samenvouwen', ai_chat_thinking: 'Denkt na...', ai_chat_working: 'Werkt...', ai_chat_exploring: 'Verkent...', diff --git a/packages/gitbook/src/intl/translations/no.ts b/packages/gitbook/src/intl/translations/no.ts index 80bced8c7..9203fd6e0 100644 --- a/packages/gitbook/src/intl/translations/no.ts +++ b/packages/gitbook/src/intl/translations/no.ts @@ -57,6 +57,7 @@ export const no: TranslationLanguage = { annotation_button_label: 'Åpne merknad', code_copied: 'Kopiert!', code_copy: 'Kopier', + prompt_copy: 'Kopier ledeteksten', code_block_collapsed: 'Vis alle ${1} linjer', code_block_expanded: 'Vis færre', table_of_contents_button_label: 'Åpne innholdsfortegnelse', @@ -77,7 +78,10 @@ export const no: TranslationLanguage = { notfound_adaptive_title: 'Siden er ikke tilgjengelig', notfound_adaptive: 'Denne siden kan finnes, men du må kanskje logge inn for å få tilgang.', notfound_adaptive_login: 'Logg inn', + notfound_adaptive_registration_hint: + 'Registrering kan være tilgjengelig avhengig av organisasjonen.', notfound_goto_home: 'Gå til forsiden', + notfound_suggestions_title: 'Kanskje du leter etter', unexpected_error_title: 'En feil oppstod', unexpected_error: 'Beklager, en uventet feil har oppstått. Vennligst prøv igjen senere.', unexpected_error_retry: 'Prøv igjen', @@ -107,6 +111,8 @@ export const no: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'God kveld', ai_chat_assistant_greeting_night: 'God natt', ai_chat_clear_conversation: 'Tøm samtale', + ai_chat_expand_panel: 'Utvid panel', + ai_chat_collapse_panel: 'Reduser panel', ai_chat_thinking: 'Tenker...', ai_chat_working: 'Arbeider...', ai_chat_exploring: 'Utforsker...', diff --git a/packages/gitbook/src/intl/translations/pl.ts b/packages/gitbook/src/intl/translations/pl.ts index 7b97e28d9..371b86500 100644 --- a/packages/gitbook/src/intl/translations/pl.ts +++ b/packages/gitbook/src/intl/translations/pl.ts @@ -56,6 +56,7 @@ export const pl: TranslationLanguage = { annotation_button_label: 'Otwórz adnotację', code_copied: 'Skopiowano!', code_copy: 'Kopiuj', + prompt_copy: 'Kopiuj prompt', code_block_collapsed: 'Pokaż wszystkie ${1} wierszy', code_block_expanded: 'Pokaż mniej', table_of_contents_button_label: 'Otwórz spis treści', @@ -75,7 +76,10 @@ export const pl: TranslationLanguage = { notfound_adaptive_title: 'Strona niedostępna', notfound_adaptive: 'Ta strona może istnieć, ale dostęp do niej może wymagać zalogowania.', notfound_adaptive_login: 'Zaloguj się', + notfound_adaptive_registration_hint: + 'Rejestracja może być dostępna w zależności od organizacji.', notfound_goto_home: 'Przejdź do strony głównej', + notfound_suggestions_title: 'Być może szukasz', unexpected_error_title: 'Wystąpił błąd', unexpected_error: 'Przepraszamy, wystąpił nieoczekiwany błąd. Spróbuj ponownie później.', unexpected_error_retry: 'Spróbuj ponownie', @@ -106,6 +110,8 @@ export const pl: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Dobry wieczór', ai_chat_assistant_greeting_night: 'Dobranoc', ai_chat_clear_conversation: 'Wyczyść rozmowę', + ai_chat_expand_panel: 'Rozwiń panel', + ai_chat_collapse_panel: 'Zwiń panel', ai_chat_thinking: 'Myślę...', ai_chat_working: 'Pracuję...', ai_chat_exploring: 'Sprawdzam...', diff --git a/packages/gitbook/src/intl/translations/pt-br.ts b/packages/gitbook/src/intl/translations/pt-br.ts index 085bcb472..44db75df7 100644 --- a/packages/gitbook/src/intl/translations/pt-br.ts +++ b/packages/gitbook/src/intl/translations/pt-br.ts @@ -55,6 +55,7 @@ export const pt_br = { annotation_button_label: 'Abrir anotação', code_copied: 'Copiado!', code_copy: 'Copiar', + prompt_copy: 'Copiar prompt', code_block_collapsed: 'Mostrar todas as ${1} linhas', code_block_expanded: 'Mostrar menos', table_of_contents_button_label: 'Abrir o índice', @@ -75,7 +76,10 @@ export const pt_br = { notfound_adaptive: 'Esta página pode existir, mas talvez você precise fazer login para acessá-la.', notfound_adaptive_login: 'Fazer login', + notfound_adaptive_registration_hint: + 'O registro pode estar disponível dependendo da organização.', notfound_goto_home: 'Ir para a página inicial', + notfound_suggestions_title: 'Você pode estar procurando por', unexpected_error_title: 'Aconteceu um erro', unexpected_error: 'Desculpe, aconteceu um erro inesperado. Por favor, tente novamente mais tarde.', @@ -107,6 +111,8 @@ export const pt_br = { ai_chat_assistant_greeting_evening: 'Boa tarde', ai_chat_assistant_greeting_night: 'Boa noite', ai_chat_clear_conversation: 'Limpar conversa', + ai_chat_expand_panel: 'Expandir painel', + ai_chat_collapse_panel: 'Recolher painel', ai_chat_thinking: 'Pensando...', ai_chat_working: 'Trabalhando...', ai_chat_exploring: 'Explorando...', diff --git a/packages/gitbook/src/intl/translations/pt.ts b/packages/gitbook/src/intl/translations/pt.ts index e532c6080..1c1f26606 100644 --- a/packages/gitbook/src/intl/translations/pt.ts +++ b/packages/gitbook/src/intl/translations/pt.ts @@ -56,6 +56,7 @@ export const pt: TranslationLanguage = { annotation_button_label: 'Abrir anotação', code_copied: 'Copiado!', code_copy: 'Copiar', + prompt_copy: 'Copiar prompt', code_block_collapsed: 'Mostrar todas as ${1} linhas', code_block_expanded: 'Mostrar menos', table_of_contents_button_label: 'Abrir índice', @@ -76,7 +77,10 @@ export const pt: TranslationLanguage = { notfound_adaptive: 'Esta página pode existir, mas talvez tenha de iniciar sessão para lhe aceder.', notfound_adaptive_login: 'Iniciar sessão', + notfound_adaptive_registration_hint: + 'O registo pode estar disponível dependendo da organização.', notfound_goto_home: 'Ir para a página inicial', + notfound_suggestions_title: 'Talvez esteja à procura de', unexpected_error_title: 'Ocorreu um erro', unexpected_error: 'Lamentamos, ocorreu um erro inesperado. Tente novamente mais tarde.', unexpected_error_retry: 'Tentar novamente', @@ -106,6 +110,8 @@ export const pt: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Boa noite', ai_chat_assistant_greeting_night: 'Boa noite', ai_chat_clear_conversation: 'Limpar conversa', + ai_chat_expand_panel: 'Expandir painel', + ai_chat_collapse_panel: 'Recolher painel', ai_chat_thinking: 'A pensar...', ai_chat_working: 'A trabalhar...', ai_chat_exploring: 'A explorar...', diff --git a/packages/gitbook/src/intl/translations/ro.ts b/packages/gitbook/src/intl/translations/ro.ts index c1ee35d09..5b5058530 100644 --- a/packages/gitbook/src/intl/translations/ro.ts +++ b/packages/gitbook/src/intl/translations/ro.ts @@ -56,6 +56,7 @@ export const ro: TranslationLanguage = { annotation_button_label: 'Deschide adnotarea', code_copied: 'Copiat!', code_copy: 'Copiază', + prompt_copy: 'Copiază promptul', code_block_collapsed: 'Afișează toate cele ${1} linii', code_block_expanded: 'Afișează mai puțin', table_of_contents_button_label: 'Deschide cuprinsul', @@ -76,7 +77,10 @@ export const ro: TranslationLanguage = { notfound_adaptive: 'Această pagină poate exista, dar este posibil să trebuiască să te autentifici pentru a o accesa.', notfound_adaptive_login: 'Autentificare', + notfound_adaptive_registration_hint: + 'Înregistrarea poate fi disponibilă în funcție de organizație.', notfound_goto_home: 'Mergi la pagina principală', + notfound_suggestions_title: 'Poate cauți', unexpected_error_title: 'A apărut o eroare', unexpected_error: 'Ne pare rău, a apărut o eroare neașteptată. Te rugăm să încerci din nou mai târziu.', @@ -108,6 +112,8 @@ export const ro: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Bună seara', ai_chat_assistant_greeting_night: 'Noapte bună', ai_chat_clear_conversation: 'Șterge conversația', + ai_chat_expand_panel: 'Extinde panoul', + ai_chat_collapse_panel: 'Restrânge panoul', ai_chat_thinking: 'Se gândește...', ai_chat_working: 'Lucrează...', ai_chat_exploring: 'Explorează...', diff --git a/packages/gitbook/src/intl/translations/ru.ts b/packages/gitbook/src/intl/translations/ru.ts index 4d9fb83d3..f15ecfb98 100644 --- a/packages/gitbook/src/intl/translations/ru.ts +++ b/packages/gitbook/src/intl/translations/ru.ts @@ -55,6 +55,7 @@ export const ru = { annotation_button_label: 'Открыть аннотацию', code_copied: 'Скопировано!', code_copy: 'Копировать', + prompt_copy: 'Скопировать промпт', code_block_collapsed: 'Показать все ${1} строк', code_block_expanded: 'Показать меньше', table_of_contents_button_label: 'Открыть оглавление', @@ -75,7 +76,10 @@ export const ru = { notfound_adaptive: 'Эта страница может существовать, но для доступа к ней может потребоваться вход.', notfound_adaptive_login: 'Войти', + notfound_adaptive_registration_hint: + 'Регистрация может быть доступна в зависимости от организации.', notfound_goto_home: 'Перейти на главную', + notfound_suggestions_title: 'Возможно, вы ищете', unexpected_error_title: 'Произошла ошибка', unexpected_error: 'Извините, произошла непредвиденная ошибка. Пожалуйста, попробуйте позже.', unexpected_error_retry: 'Попробуйте снова', @@ -106,6 +110,8 @@ export const ru = { ai_chat_assistant_greeting_evening: 'Добрый вечер', ai_chat_assistant_greeting_night: 'Доброй ночи', ai_chat_clear_conversation: 'Очистить диалог', + ai_chat_expand_panel: 'Развернуть панель', + ai_chat_collapse_panel: 'Свернуть панель', ai_chat_thinking: 'Думает…', ai_chat_working: 'Работает…', ai_chat_exploring: 'Изучает…', diff --git a/packages/gitbook/src/intl/translations/sk.ts b/packages/gitbook/src/intl/translations/sk.ts index d630c0c77..47646d0cb 100644 --- a/packages/gitbook/src/intl/translations/sk.ts +++ b/packages/gitbook/src/intl/translations/sk.ts @@ -56,6 +56,7 @@ export const sk: TranslationLanguage = { annotation_button_label: 'Otvoriť anotáciu', code_copied: 'Skopírované!', code_copy: 'Kopírovať', + prompt_copy: 'Kopírovať výzvu', code_block_collapsed: 'Zobraziť všetkých ${1} riadkov', code_block_expanded: 'Zobraziť menej', table_of_contents_button_label: 'Otvoriť obsah', @@ -76,7 +77,10 @@ export const sk: TranslationLanguage = { notfound_adaptive: 'Táto stránka môže existovať, ale na prístup sa možno budete musieť prihlásiť.', notfound_adaptive_login: 'Prihlásiť sa', + notfound_adaptive_registration_hint: + 'Registrácia môže byť dostupná v závislosti od organizácie.', notfound_goto_home: 'Prejsť na domovskú stránku', + notfound_suggestions_title: 'Možno hľadáte', unexpected_error_title: 'Vyskytla sa chyba', unexpected_error: 'Ľutujeme, vyskytla sa neočakávaná chyba. Skúste to znova neskôr.', unexpected_error_retry: 'Skúsiť znova', @@ -107,6 +111,8 @@ export const sk: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Dobrý večer', ai_chat_assistant_greeting_night: 'Dobrú noc', ai_chat_clear_conversation: 'Vymazať konverzáciu', + ai_chat_expand_panel: 'Rozbaliť panel', + ai_chat_collapse_panel: 'Zbaliť panel', ai_chat_thinking: 'Premýšľam...', ai_chat_working: 'Pracujem...', ai_chat_exploring: 'Skúmam...', diff --git a/packages/gitbook/src/intl/translations/sl.ts b/packages/gitbook/src/intl/translations/sl.ts index 1c88af3fe..a06b0fae8 100644 --- a/packages/gitbook/src/intl/translations/sl.ts +++ b/packages/gitbook/src/intl/translations/sl.ts @@ -56,6 +56,7 @@ export const sl: TranslationLanguage = { annotation_button_label: 'Odpri opombo', code_copied: 'Kopirano!', code_copy: 'Kopiraj', + prompt_copy: 'Kopiraj poziv', code_block_collapsed: 'Prikaži vseh ${1} vrstic', code_block_expanded: 'Prikaži manj', table_of_contents_button_label: 'Odpri kazalo', @@ -75,7 +76,9 @@ export const sl: TranslationLanguage = { notfound_adaptive_title: 'Stran ni na voljo', notfound_adaptive: 'Ta stran morda obstaja, vendar se boste za dostop morda morali prijaviti.', notfound_adaptive_login: 'Prijava', + notfound_adaptive_registration_hint: 'Registracija je morda na voljo, odvisno od organizacije.', notfound_goto_home: 'Pojdi na domačo stran', + notfound_suggestions_title: 'Morda iščete', unexpected_error_title: 'Prišlo je do napake', unexpected_error: 'Žal je prišlo do nepričakovane napake. Poskusite znova pozneje.', unexpected_error_retry: 'Poskusi znova', @@ -106,6 +109,8 @@ export const sl: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Dober večer', ai_chat_assistant_greeting_night: 'Lahko noč', ai_chat_clear_conversation: 'Počisti pogovor', + ai_chat_expand_panel: 'Razširi ploščo', + ai_chat_collapse_panel: 'Skrči ploščo', ai_chat_thinking: 'Razmišljam...', ai_chat_working: 'Delam...', ai_chat_exploring: 'Raziskujem...', diff --git a/packages/gitbook/src/intl/translations/sv.ts b/packages/gitbook/src/intl/translations/sv.ts index 9d42d482f..84ed7ada1 100644 --- a/packages/gitbook/src/intl/translations/sv.ts +++ b/packages/gitbook/src/intl/translations/sv.ts @@ -56,6 +56,7 @@ export const sv: TranslationLanguage = { annotation_button_label: 'Öppna anteckning', code_copied: 'Kopierat!', code_copy: 'Kopiera', + prompt_copy: 'Kopiera prompten', code_block_collapsed: 'Visa alla ${1} rader', code_block_expanded: 'Visa mindre', table_of_contents_button_label: 'Öppna innehållsförteckning', @@ -75,7 +76,10 @@ export const sv: TranslationLanguage = { notfound_adaptive_title: 'Sidan är inte tillgänglig', notfound_adaptive: 'Sidan kan finnas, men du kan behöva logga in för att få åtkomst.', notfound_adaptive_login: 'Logga in', + notfound_adaptive_registration_hint: + 'Registrering kan vara tillgänglig beroende på organisationen.', notfound_goto_home: 'Gå till startsidan', + notfound_suggestions_title: 'Du kanske letar efter', unexpected_error_title: 'Ett fel uppstod', unexpected_error: 'Tyvärr uppstod ett oväntat fel. Försök igen senare.', unexpected_error_retry: 'Försök igen', @@ -106,6 +110,8 @@ export const sv: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'God kväll', ai_chat_assistant_greeting_night: 'God natt', ai_chat_clear_conversation: 'Rensa konversation', + ai_chat_expand_panel: 'Expandera panel', + ai_chat_collapse_panel: 'Förminska panel', ai_chat_thinking: 'Tänker...', ai_chat_working: 'Arbetar...', ai_chat_exploring: 'Utforskar...', diff --git a/packages/gitbook/src/intl/translations/th.ts b/packages/gitbook/src/intl/translations/th.ts index c584b5470..b902e6be6 100644 --- a/packages/gitbook/src/intl/translations/th.ts +++ b/packages/gitbook/src/intl/translations/th.ts @@ -55,6 +55,7 @@ export const th: TranslationLanguage = { annotation_button_label: 'เปิดคำอธิบายประกอบ', code_copied: 'คัดลอกแล้ว!', code_copy: 'คัดลอก', + prompt_copy: 'คัดลอกพรอมต์', code_block_collapsed: 'แสดงทั้งหมด ${1} บรรทัด', code_block_expanded: 'แสดงน้อยลง', table_of_contents_button_label: 'เปิดสารบัญ', @@ -74,7 +75,9 @@ export const th: TranslationLanguage = { notfound_adaptive_title: 'หน้าไม่พร้อมใช้งาน', notfound_adaptive: 'หน้านี้อาจมีอยู่ แต่คุณอาจต้องเข้าสู่ระบบเพื่อเข้าถึง', notfound_adaptive_login: 'เข้าสู่ระบบ', + notfound_adaptive_registration_hint: 'การลงทะเบียนอาจใช้ได้ ขึ้นอยู่กับองค์กร', notfound_goto_home: 'ไปที่หน้าแรก', + notfound_suggestions_title: 'คุณอาจกำลังมองหา', unexpected_error_title: 'เกิดข้อผิดพลาด', unexpected_error: 'ขออภัย เกิดข้อผิดพลาดที่ไม่คาดคิด โปรดลองอีกครั้งในภายหลัง', unexpected_error_retry: 'ลองอีกครั้ง', @@ -104,6 +107,8 @@ export const th: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'สวัสดีตอนเย็น', ai_chat_assistant_greeting_night: 'ราตรีสวัสดิ์', ai_chat_clear_conversation: 'ล้างการสนทนา', + ai_chat_expand_panel: 'ขยายแผง', + ai_chat_collapse_panel: 'ย่อแผง', ai_chat_thinking: 'กำลังคิด...', ai_chat_working: 'กำลังทำงาน...', ai_chat_exploring: 'กำลังสำรวจ...', diff --git a/packages/gitbook/src/intl/translations/tr.ts b/packages/gitbook/src/intl/translations/tr.ts index 301bafd46..2cbf11ca7 100644 --- a/packages/gitbook/src/intl/translations/tr.ts +++ b/packages/gitbook/src/intl/translations/tr.ts @@ -56,6 +56,7 @@ export const tr: TranslationLanguage = { annotation_button_label: 'Açıklamayı aç', code_copied: 'Kopyalandı!', code_copy: 'Kopyala', + prompt_copy: 'İstemi kopyala', code_block_collapsed: 'Tüm ${1} satırı göster', code_block_expanded: 'Daha az göster', table_of_contents_button_label: 'İçindekiler tablosunu aç', @@ -75,7 +76,9 @@ export const tr: TranslationLanguage = { notfound_adaptive_title: 'Sayfa kullanılamıyor', notfound_adaptive: 'Bu sayfa mevcut olabilir, ancak erişmek için oturum açmanız gerekebilir.', notfound_adaptive_login: 'Oturum aç', + notfound_adaptive_registration_hint: 'Kayıt, kuruluşa bağlı olarak mevcut olabilir.', notfound_goto_home: 'Ana sayfaya git', + notfound_suggestions_title: 'Şunu arıyor olabilirsiniz', unexpected_error_title: 'Bir hata oluştu', unexpected_error: 'Üzgünüz, beklenmeyen bir hata oluştu. Lütfen daha sonra tekrar deneyin.', unexpected_error_retry: 'Tekrar dene', @@ -105,6 +108,8 @@ export const tr: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'İyi akşamlar', ai_chat_assistant_greeting_night: 'İyi geceler', ai_chat_clear_conversation: 'Konuşmayı temizle', + ai_chat_expand_panel: 'Paneli genişlet', + ai_chat_collapse_panel: 'Paneli daralt', ai_chat_thinking: 'Düşünüyor...', ai_chat_working: 'Çalışıyor...', ai_chat_exploring: 'İnceliyor...', diff --git a/packages/gitbook/src/intl/translations/uk.ts b/packages/gitbook/src/intl/translations/uk.ts index f0b1d5b8d..96dc69577 100644 --- a/packages/gitbook/src/intl/translations/uk.ts +++ b/packages/gitbook/src/intl/translations/uk.ts @@ -56,6 +56,7 @@ export const uk: TranslationLanguage = { annotation_button_label: 'Відкрити примітку', code_copied: 'Скопійовано!', code_copy: 'Копіювати', + prompt_copy: 'Скопіювати промпт', code_block_collapsed: 'Показати всі ${1} рядків', code_block_expanded: 'Показати менше', table_of_contents_button_label: 'Відкрити зміст', @@ -75,7 +76,9 @@ export const uk: TranslationLanguage = { notfound_adaptive_title: 'Сторінка недоступна', notfound_adaptive: 'Ця сторінка може існувати, але для доступу до неї може знадобитися вхід.', notfound_adaptive_login: 'Увійти', + notfound_adaptive_registration_hint: 'Реєстрація може бути доступною залежно від організації.', notfound_goto_home: 'Перейти на головну', + notfound_suggestions_title: 'Можливо, ви шукаєте', unexpected_error_title: 'Сталася помилка', unexpected_error: 'Вибачте, сталася неочікувана помилка. Спробуйте ще раз пізніше.', unexpected_error_retry: 'Спробувати ще раз', @@ -105,6 +108,8 @@ export const uk: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Добрий вечір', ai_chat_assistant_greeting_night: 'Добраніч', ai_chat_clear_conversation: 'Очистити розмову', + ai_chat_expand_panel: 'Розгорнути панель', + ai_chat_collapse_panel: 'Згорнути панель', ai_chat_thinking: 'Думаю...', ai_chat_working: 'Працюю...', ai_chat_exploring: 'Досліджую...', diff --git a/packages/gitbook/src/intl/translations/vi.ts b/packages/gitbook/src/intl/translations/vi.ts index 2f287887a..d0c98bcbe 100644 --- a/packages/gitbook/src/intl/translations/vi.ts +++ b/packages/gitbook/src/intl/translations/vi.ts @@ -56,6 +56,7 @@ export const vi: TranslationLanguage = { annotation_button_label: 'Mở chú thích', code_copied: 'Đã sao chép!', code_copy: 'Sao chép', + prompt_copy: 'Sao chép lời nhắc', code_block_collapsed: 'Hiển thị tất cả ${1} dòng', code_block_expanded: 'Hiển thị ít hơn', table_of_contents_button_label: 'Mở mục lục', @@ -75,7 +76,9 @@ export const vi: TranslationLanguage = { notfound_adaptive_title: 'Trang không khả dụng', notfound_adaptive: 'Trang này có thể tồn tại, nhưng bạn có thể cần đăng nhập để truy cập.', notfound_adaptive_login: 'Đăng nhập', + notfound_adaptive_registration_hint: 'Việc đăng ký có thể khả dụng tùy theo tổ chức.', notfound_goto_home: 'Đi tới trang chủ', + notfound_suggestions_title: 'Có thể bạn đang tìm', unexpected_error_title: 'Đã xảy ra lỗi', unexpected_error: 'Rất tiếc, đã xảy ra lỗi không mong muốn. Vui lòng thử lại sau.', unexpected_error_retry: 'Thử lại', @@ -105,6 +108,8 @@ export const vi: TranslationLanguage = { ai_chat_assistant_greeting_evening: 'Chào buổi tối', ai_chat_assistant_greeting_night: 'Chúc ngủ ngon', ai_chat_clear_conversation: 'Xóa cuộc trò chuyện', + ai_chat_expand_panel: 'Mở rộng bảng', + ai_chat_collapse_panel: 'Thu gọn bảng', ai_chat_thinking: 'Đang suy nghĩ...', ai_chat_working: 'Đang làm việc...', ai_chat_exploring: 'Đang khám phá...', diff --git a/packages/gitbook/src/intl/translations/yue.ts b/packages/gitbook/src/intl/translations/yue.ts index 4746821da..0f91be454 100644 --- a/packages/gitbook/src/intl/translations/yue.ts +++ b/packages/gitbook/src/intl/translations/yue.ts @@ -55,6 +55,7 @@ export const yue: TranslationLanguage = { annotation_button_label: '開啟註解', code_copied: '已複製!', code_copy: '複製', + prompt_copy: '複製提示', code_block_collapsed: '顯示全部 ${1} 行', code_block_expanded: '顯示少啲', table_of_contents_button_label: '開啟目錄', @@ -73,7 +74,9 @@ export const yue: TranslationLanguage = { notfound_adaptive_title: '頁面無法使用', notfound_adaptive: '呢個頁面可能存在,但你可能需要登入先可以存取。', notfound_adaptive_login: '登入', + notfound_adaptive_registration_hint: '視乎機構,可能可以註冊。', notfound_goto_home: '前往首頁', + notfound_suggestions_title: '你可能喺度搵緊', unexpected_error_title: '發生錯誤', unexpected_error: '抱歉,發生咗未預期嘅錯誤。請稍後再試。', unexpected_error_retry: '重試', @@ -103,6 +106,8 @@ export const yue: TranslationLanguage = { ai_chat_assistant_greeting_evening: '晚上好', ai_chat_assistant_greeting_night: '晚安', ai_chat_clear_conversation: '清除對話', + ai_chat_expand_panel: '展開面板', + ai_chat_collapse_panel: '收合面板', ai_chat_thinking: '諗緊...', ai_chat_working: '處理緊...', ai_chat_exploring: '探索緊...', diff --git a/packages/gitbook/src/intl/translations/zh-tw.ts b/packages/gitbook/src/intl/translations/zh-tw.ts index 47c27179e..31a131c0e 100644 --- a/packages/gitbook/src/intl/translations/zh-tw.ts +++ b/packages/gitbook/src/intl/translations/zh-tw.ts @@ -55,6 +55,7 @@ export const zh_tw: TranslationLanguage = { annotation_button_label: '開啟註解', code_copied: '已複製!', code_copy: '複製', + prompt_copy: '複製提示詞', code_block_collapsed: '顯示全部 ${1} 行', code_block_expanded: '顯示較少', table_of_contents_button_label: '開啟目錄', @@ -73,7 +74,9 @@ export const zh_tw: TranslationLanguage = { notfound_adaptive_title: '頁面無法使用', notfound_adaptive: '此頁面可能存在,但您可能需要登入才能存取。', notfound_adaptive_login: '登入', + notfound_adaptive_registration_hint: '視組織而定,可能可以註冊。', notfound_goto_home: '前往首頁', + notfound_suggestions_title: '您可能在尋找', unexpected_error_title: '發生錯誤', unexpected_error: '抱歉,發生了未預期的錯誤。請稍後再試。', unexpected_error_retry: '重試', @@ -103,6 +106,8 @@ export const zh_tw: TranslationLanguage = { ai_chat_assistant_greeting_evening: '晚安', ai_chat_assistant_greeting_night: '晚安', ai_chat_clear_conversation: '清除對話', + ai_chat_expand_panel: '展開面板', + ai_chat_collapse_panel: '收合面板', ai_chat_thinking: '思考中...', ai_chat_working: '處理中...', ai_chat_exploring: '探索中...', diff --git a/packages/gitbook/src/intl/translations/zh.ts b/packages/gitbook/src/intl/translations/zh.ts index 9359f6ddd..dc7ba52da 100644 --- a/packages/gitbook/src/intl/translations/zh.ts +++ b/packages/gitbook/src/intl/translations/zh.ts @@ -56,6 +56,7 @@ export const zh: TranslationLanguage = { annotation_button_label: '打开批注', code_copied: '已复制!', code_copy: '复制', + prompt_copy: '复制提示词', code_block_collapsed: '显示全部 ${1} 行', code_block_expanded: '收起', table_of_contents_button_label: '打开目录', @@ -74,7 +75,9 @@ export const zh: TranslationLanguage = { notfound_adaptive_title: '页面无法访问', notfound_adaptive: '该页面可能存在,但您可能需要登录后才能访问。', notfound_adaptive_login: '登录', + notfound_adaptive_registration_hint: '视组织而定,可能可以注册。', notfound_goto_home: '前往首页', + notfound_suggestions_title: '您可能在寻找', unexpected_error_title: '发生错误', unexpected_error: '抱歉,发生了意外的错误。请稍后再试。', unexpected_error_retry: '重试', @@ -104,6 +107,8 @@ export const zh: TranslationLanguage = { ai_chat_assistant_greeting_evening: '晚上好', ai_chat_assistant_greeting_night: '晚安', ai_chat_clear_conversation: '清空对话', + ai_chat_expand_panel: '展开面板', + ai_chat_collapse_panel: '收起面板', ai_chat_thinking: '思考中...', ai_chat_working: '工作中...', ai_chat_exploring: '探索中...', diff --git a/packages/gitbook/src/lib/data/api.ts b/packages/gitbook/src/lib/data/api.ts index 7f1398563..a1092ce91 100644 --- a/packages/gitbook/src/lib/data/api.ts +++ b/packages/gitbook/src/lib/data/api.ts @@ -222,7 +222,7 @@ function cacheLifeFromResponse( } const getUserById = cache(async (input: DataFetcherInput, params: { userId: string }) => { - 'use cache: remote'; + 'use cache'; return wrapCacheDataFetcherError(async () => { return trace(`getUserById(${params.userId})`, async () => { const api = apiClient(input); @@ -238,7 +238,7 @@ const getUserById = cache(async (input: DataFetcherInput, params: { userId: stri const getSpace = cache( async (input: DataFetcherInput, params: { spaceId: string; shareKey: string | undefined }) => { - 'use cache: remote'; + 'use cache'; cacheTag( getCacheTag({ tag: 'space', @@ -268,7 +268,7 @@ const getSpace = cache( const getChangeRequest = cache( async (input: DataFetcherInput, params: { spaceId: string; changeRequestId: string }) => { - 'use cache: remote'; + 'use cache'; cacheTag( getCacheTag({ tag: 'change-request', @@ -330,7 +330,7 @@ const getRevisionPageMarkdown = cache( // used only to bust the cache _functionName: string ) => { - 'use cache: remote'; + 'use cache'; return wrapCacheDataFetcherError(async () => { return trace( `getRevisionPageMarkdown(${params.spaceId}, ${params.revisionId}, ${params.pageId})`, @@ -372,7 +372,7 @@ const getRevisionPageDocument = cache( // used only to bust the cache _functionName: string ) => { - 'use cache: remote'; + 'use cache'; return wrapCacheDataFetcherError(async () => { return trace( `getRevisionPageDocument(${params.spaceId}, ${params.revisionId}, ${params.pageId})`, @@ -406,7 +406,7 @@ const getRevisionReusableContentDocument = cache( input: DataFetcherInput, params: { spaceId: string; revisionId: string; reusableContentId: string } ) => { - 'use cache: remote'; + 'use cache'; return wrapCacheDataFetcherError(async () => { return trace( `getRevisionReusableContentDocument(${params.spaceId}, ${params.revisionId}, ${params.reusableContentId})`, @@ -439,7 +439,7 @@ const getRevisionPageByPath = cache( input: DataFetcherInput, params: { spaceId: string; revisionId: string; path: string } ) => { - 'use cache: remote'; + 'use cache'; return wrapCacheDataFetcherError(async () => { return trace( `getRevisionPageByPath(${params.spaceId}, ${params.revisionId}, ${params.path})`, @@ -466,7 +466,7 @@ const getRevisionPageByPath = cache( const getDocument = cache( async (input: DataFetcherInput, params: { spaceId: string; documentId: string }) => { - 'use cache: remote'; + 'use cache'; return wrapCacheDataFetcherError(async () => { return trace(`getDocument(${params.spaceId}, ${params.documentId})`, async () => { const api = apiClient(input); @@ -496,7 +496,7 @@ const getComputedDocument = cache( seed: string; } ) => { - 'use cache: remote'; + 'use cache'; cacheTag( ...getComputedContentSourceCacheTags( { @@ -571,7 +571,7 @@ const getPublishedContentSite = cache( params: { organizationId: string; siteId: string; siteShareKey: string | undefined }, _apiVersion: string ) => { - 'use cache: remote'; + 'use cache'; cacheTag( getCacheTag({ tag: 'site', @@ -613,7 +613,7 @@ const getSiteRedirectBySource = cache( source: string; } ) => { - 'use cache: remote'; + 'use cache'; cacheTag( getCacheTag({ tag: 'site', @@ -648,7 +648,7 @@ const getSiteRedirectBySource = cache( const getEmbedByUrl = cache( async (input: DataFetcherInput, params: { spaceId: string; url: string }) => { - 'use cache: remote'; + 'use cache'; cacheTag( getCacheTag({ tag: 'space', @@ -722,7 +722,7 @@ const renderIntegrationUi = cache( input: DataFetcherInput, params: { integrationName: string; request: RenderIntegrationUI } ) => { - 'use cache: remote'; + 'use cache'; cacheTag( getCacheTag({ tag: 'integration', @@ -756,7 +756,7 @@ const listRevisionPageMetaLinks = cache( input: DataFetcherInput, params: { spaceId: string; revisionId: string; pageId: string } ) => { - 'use cache: remote'; + 'use cache'; return wrapCacheDataFetcherError(async () => { return trace( `listRevisionPageMetaLinks(${params.spaceId}, ${params.revisionId}, ${params.pageId})`, diff --git a/packages/gitbook/src/middleware.ts b/packages/gitbook/src/middleware.ts index dcf2804ab..7fd652585 100644 --- a/packages/gitbook/src/middleware.ts +++ b/packages/gitbook/src/middleware.ts @@ -816,11 +816,18 @@ function encodePathInSiteContent( acceptsMarkdown(request); if (pathname.match(MARKDOWN_PATH_REGEX) || shouldServeMarkdown) { const pagePathWithoutMD = pathname.replace(MARKDOWN_PATH_REGEX, ''); - const ask = new URL(request.url).searchParams.get('ask'); + const searchParams = new URL(request.url).searchParams; + const ask = searchParams.get('ask'); + // Optional end goal the calling agent is trying to accomplish, used to steer the answer. + // It is encoded as a second path segment (the route is statically rendered, so it can't + // read query params at runtime — the question is path-encoded for the same reason). + const goal = searchParams.get('goal'); return { pathname: typeof ask === 'string' - ? `~gitbook/markdown-ask/${encodeURIComponent(ask)}` + ? `~gitbook/markdown-ask/${encodeURIComponent(ask)}${ + typeof goal === 'string' ? `/${encodeURIComponent(goal)}` : '' + }` : `~gitbook/markdown/${encodePagePath(pagePathWithoutMD)}`, routeType: 'static', // TODO: track pageId / spaceId when possible diff --git a/packages/gitbook/src/routes/markdownAsk.ts b/packages/gitbook/src/routes/markdownAsk.ts index d42ed7ee6..dca64d5f5 100644 --- a/packages/gitbook/src/routes/markdownAsk.ts +++ b/packages/gitbook/src/routes/markdownAsk.ts @@ -8,12 +8,28 @@ import { filterOutNullable } from '@/lib/typescript'; import { serveMarkdown } from '@/routes/markdownPage'; import type { SearchAIAnswer, SearchAIAnswerSource } from '@gitbook/api'; +/** + * Options to steer the AI answer served as markdown. + */ +export interface ServeAskMarkdownOptions { + /** + * The end goal the calling agent is trying to accomplish on behalf of the user, + * passed via the `?goal=` search parameter. Used by the backend to steer the answer. + */ + goal?: string; +} + /** * Serve an AI answer as markdown for a page. */ -export async function serveAskMarkdown(context: GitBookSiteContext, rawQuestion: string) { +export async function serveAskMarkdown( + context: GitBookSiteContext, + rawQuestion: string, + options: ServeAskMarkdownOptions = {} +) { return serveMarkdown(async () => { const question = rawQuestion.trim(); + const goal = options.goal?.trim() || undefined; if ( !question || @@ -32,6 +48,7 @@ export async function serveAskMarkdown(context: GitBookSiteContext, rawQuestion: question, context: { siteSpaceId: context.siteSpace.id, + goal, }, scope: { mode: 'default', @@ -80,10 +97,12 @@ export async function serveAskMarkdown(context: GitBookSiteContext, rawQuestion: result += 'If you need more information, consider asking one of these follow-up questions by performing an HTTP GET request on the URL:\n\n'; result += followupQuestions - .map( - (q) => - `- [${q}](${context.linker.toAbsoluteURL(context.linker.toPathInSite(''))}?ask=${encodeURIComponent(q)})` - ) + .map((q) => { + const base = `${context.linker.toAbsoluteURL(context.linker.toPathInSite(''))}?ask=${encodeURIComponent(q)}`; + // Carry the goal forward so a multi-step agent keeps its end goal across asks. + const url = goal ? `${base}&goal=${encodeURIComponent(goal)}` : base; + return `- [${q}](${url})`; + }) .join('\n'); result += '\n\n'; } diff --git a/packages/gitbook/src/routes/markdownPage.ts b/packages/gitbook/src/routes/markdownPage.ts index 02445b26d..21070b231 100644 --- a/packages/gitbook/src/routes/markdownPage.ts +++ b/packages/gitbook/src/routes/markdownPage.ts @@ -57,17 +57,19 @@ If the exact page cannot be found, you can still retrieve the information using ### Option 1 — Ask a question (recommended) -Perform an HTTP GET request on the documentation index with the \`ask\` parameter: +Perform an HTTP GET request on the documentation index with the \`ask\` parameter, and the optional \`goal\` parameter: \`\`\` GET ${context.linker.toAbsoluteURL( context.linker.toPathForPagePath({ path: similarPages[0]?.path ?? 'docs/example', }) - )}?ask= + )}?ask=&goal= \`\`\` -The question should be specific, self-contained, and written in natural language. +\`ask\` is the immediate question: it should be specific, self-contained, and written in natural language. +\`goal\` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal. + The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. ### Option 2 — Browse the documentation index @@ -98,24 +100,28 @@ function renderAskFooter( context: GitBookSiteContext, pageLookup: ResolvedPagePath ) { + const pageUrl = context.linker.toAbsoluteURL( + context.linker.toPathForPage({ + page: pageLookup.page, + pages: context.revision.pages, + }) + ); + return `\n\n---\n\n# Agent Instructions This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. ## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. -Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: +Perform an HTTP GET request on the current page URL with the \`ask\` query parameter, and the optional \`goal\` query parameter: \`\`\` -GET ${context.linker.toAbsoluteURL( - context.linker.toPathForPage({ - page: pageLookup.page, - pages: context.revision.pages, - }) - )}?ask= +GET ${pageUrl}?ask=&goal= \`\`\` -The question should be specific, self-contained, and written in natural language. +\`ask\` is the immediate question: it should be specific, self-contained, and written in natural language. +\`goal\` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal. + The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections. diff --git a/packages/react-openapi/CHANGELOG.md b/packages/react-openapi/CHANGELOG.md index ae9c38b68..5e49f072a 100644 --- a/packages/react-openapi/CHANGELOG.md +++ b/packages/react-openapi/CHANGELOG.md @@ -1,5 +1,12 @@ # @gitbook/react-openapi +## 1.5.14 + +### Patch Changes + +- f4469b2: Support OpenAPI one-operation-per-page mode +- 88b94b5: Handle circular oneOf with discriminator and allOf in OpenAPI schemas + ## 1.5.13 ### Patch Changes diff --git a/packages/react-openapi/package.json b/packages/react-openapi/package.json index 39f7d21d9..8793c4d94 100644 --- a/packages/react-openapi/package.json +++ b/packages/react-openapi/package.json @@ -7,7 +7,7 @@ "default": "./dist/index.js" } }, - "version": "1.5.13", + "version": "1.5.14", "sideEffects": false, "dependencies": { "@gitbook/expr": "workspace:*",