@vercel/geistdocs 2.14.1 → 2.14.3-canary.9417d69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1 -1
- package/dist/components/video.d.ts +2 -2
- package/dist/components/video.d.ts.map +1 -1
- package/dist/components/video.js +1 -1
- package/dist/config.d.ts +15 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/controls.d.ts +6 -1
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +8 -2
- package/dist/internal/chat/prompt-input.d.ts.map +1 -1
- package/dist/internal/chat/prompt-input.js +3 -2
- package/dist/internal/chat/shell.d.ts.map +1 -1
- package/dist/internal/chat/shell.js +4 -2
- package/dist/internal/config-context.d.ts +2 -0
- package/dist/internal/config-context.d.ts.map +1 -1
- package/dist/internal/config-context.js +2 -0
- package/dist/internal/eve-agent.d.ts +6 -1
- package/dist/internal/eve-agent.d.ts.map +1 -1
- package/dist/internal/eve-agent.js +356 -68
- package/dist/internal/lazy-mdx-components.d.ts +21 -0
- package/dist/internal/lazy-mdx-components.d.ts.map +1 -0
- package/dist/internal/lazy-mdx-components.js +13 -0
- package/dist/internal/localized-link.d.ts +3 -1
- package/dist/internal/localized-link.d.ts.map +1 -1
- package/dist/internal/localized-link.js +2 -2
- package/dist/internal/navbar/desktop-menu.d.ts.map +1 -1
- package/dist/internal/navbar/desktop-menu.js +1 -1
- package/dist/internal/navbar/mobile-menu.d.ts.map +1 -1
- package/dist/internal/navbar/mobile-menu.js +3 -3
- package/dist/internal/navbar/navbar-logo.d.ts +7 -3
- package/dist/internal/navbar/navbar-logo.d.ts.map +1 -1
- package/dist/internal/navbar/navbar-logo.js +2 -3
- package/dist/mdx.d.ts.map +1 -1
- package/dist/mdx.js +1 -5
- package/dist/navbar.d.ts.map +1 -1
- package/dist/navbar.js +3 -1
- package/docs/agents.md +1 -1
- package/docs/llms.txt +28 -2
- package/docs/manifest.json +1 -1
- package/docs/pages/ask-ai.md +1 -1
- package/docs/pages/configuration.md +26 -0
- package/package.json +6 -6
- package/template/content/docs/ask-ai.mdx +1 -1
- package/template/content/docs/configuration.mdx +26 -0
- package/template/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"desktop-menu.d.ts","sourceRoot":"","sources":["../../../src/internal/navbar/desktop-menu.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAatB,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAiBD,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,wBAAwB,EAAE,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,oBAAoB,GAC7B,eAAe,EAAE,CAYnB;AA+DD,eAAO,MAAM,WAAW,GAAI,sBAAsB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"desktop-menu.d.ts","sourceRoot":"","sources":["../../../src/internal/navbar/desktop-menu.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,oBAAoB,EACpB,wBAAwB,EACxB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAatB,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC3B;AAiBD,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,wBAAwB,EAAE,CAAC;CACnC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,oBAAoB,GAC7B,eAAe,EAAE,CAYnB;AA+DD,eAAO,MAAM,WAAW,GAAI,sBAAsB,gBAAgB,4CAyEjE,CAAC"}
|
|
@@ -51,5 +51,5 @@ const DropdownNavItem = ({ first, item, navItems, }) => {
|
|
|
51
51
|
export const DesktopMenu = ({ items, className }) => {
|
|
52
52
|
const isActive = useNavActive(items);
|
|
53
53
|
const [navOpen, setNavOpen] = useState(false);
|
|
54
|
-
return (_jsxs(_Fragment, { children: [_jsx(NavigationMenu, { "aria-label": "Primary navigation", delayDuration: 0, onValueChange: (value) => setNavOpen(Boolean(value)), skipDelayDuration: 0, viewport: false, children: _jsx(NavigationMenuList, { className: cn("h-16 items-stretch gap-0", className), children: items.map((item, index) => "items" in item ? (_jsx(DropdownNavItem, { first: index === 0, item: item, navItems: items }, item.label)) : (_jsx(NavigationMenuItem, { className: "flex", children: _jsx(NavigationMenuLink, { active: isActive(item.href), asChild: true, className: topLevelItemClassName(index === 0), children: item.href.startsWith("http") ? (_jsxs("a", { className: "flex flex-row items-center gap-1", href: item.href, rel: "noopener", target: "_blank", children: [item.label, _jsx(IconArrowUpRightSmall, { "aria-hidden": "true", className: cn(navOpen && "will-change-transform"), size: 12 })] })) : (_jsx(LocalizedLink, { href: item.href, children: item.label })) }) }, item.href))) }) }), _jsx("div", { "aria-hidden": "true", className: cn("pointer-events-none fixed inset-x-0 top-16 bottom-0 z-0 bg-background-200/60", navOpen ? "opacity-100" : "opacity-0") })] }));
|
|
54
|
+
return (_jsxs(_Fragment, { children: [_jsx(NavigationMenu, { "aria-label": "Primary navigation", delayDuration: 0, onValueChange: (value) => setNavOpen(Boolean(value)), skipDelayDuration: 0, viewport: false, children: _jsx(NavigationMenuList, { className: cn("h-16 items-stretch gap-0", className), children: items.map((item, index) => "items" in item ? (_jsx(DropdownNavItem, { first: index === 0, item: item, navItems: items }, item.label)) : (_jsx(NavigationMenuItem, { className: "flex", children: _jsx(NavigationMenuLink, { active: isActive(item.href), asChild: true, className: topLevelItemClassName(index === 0), children: item.href.startsWith("http") ? (_jsxs("a", { className: "flex flex-row items-center gap-1", href: item.href, rel: "noopener", target: "_blank", children: [item.label, _jsx(IconArrowUpRightSmall, { "aria-hidden": "true", className: cn(navOpen && "will-change-transform"), size: 12 })] })) : (_jsx(LocalizedLink, { href: item.href, prefetch: item.prefetch, children: item.label })) }) }, item.href))) }) }), _jsx("div", { "aria-hidden": "true", className: cn("pointer-events-none fixed inset-x-0 top-16 bottom-0 z-0 bg-background-200/60", navOpen ? "opacity-100" : "opacity-0") })] }));
|
|
55
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mobile-menu.d.ts","sourceRoot":"","sources":["../../../src/internal/navbar/mobile-menu.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,yBAAyB,EAEzB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAQtB,UAAU,eAAe;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,GAAG,EAAE,gBAAgB,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAC1C,4EAA4E;IAC5E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"mobile-menu.d.ts","sourceRoot":"","sources":["../../../src/internal/navbar/mobile-menu.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,yBAAyB,EAEzB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAQtB,UAAU,eAAe;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,GAAG,EAAE,gBAAgB,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAC1C,4EAA4E;IAC5E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA2bD,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAEhD,CAAC"}
|
|
@@ -12,12 +12,12 @@ import { LocalizedLink } from "../localized-link";
|
|
|
12
12
|
import { groupDropdownItems } from "./desktop-menu";
|
|
13
13
|
import { DEFAULT_OSS_SECTION, resolveOssProducts } from "./navbar-logo";
|
|
14
14
|
import { useNavActive } from "./use-nav-active";
|
|
15
|
-
function NavLink({ href, external, active, onClick, children, }) {
|
|
15
|
+
function NavLink({ href, external, active, onClick, prefetch, children, }) {
|
|
16
16
|
const className = cn("flex min-h-11 items-center gap-1 rounded-md px-3 font-normal text-2xl text-gray-900 no-underline outline-none transition-colors hover:bg-gray-alpha-100 hover:text-gray-1000 focus-visible:shadow-[var(--ds-focus-ring)]", active && "text-gray-1000");
|
|
17
17
|
// Inline span so the arrow baseline-aligns to the label.
|
|
18
18
|
const content = (_jsxs("span", { children: [children, external ? _jsx(ExternalArrow, {}) : null] }));
|
|
19
19
|
if (!external) {
|
|
20
|
-
return (_jsx(LocalizedLink, { "aria-current": active ? "page" : undefined, className: className, href: href, onClick: onClick, children: content }));
|
|
20
|
+
return (_jsx(LocalizedLink, { "aria-current": active ? "page" : undefined, className: className, href: href, onClick: onClick, prefetch: prefetch, children: content }));
|
|
21
21
|
}
|
|
22
22
|
return (_jsx("a", { className: className, href: href, onClick: onClick, rel: "noopener noreferrer", target: "_blank", children: content }));
|
|
23
23
|
}
|
|
@@ -141,6 +141,6 @@ const MobileMenuState = ({ activeProduct, githubUrl, nav, ossProducts, showOss =
|
|
|
141
141
|
};
|
|
142
142
|
return (_jsxs(_Fragment, { children: [_jsx(MobileMenuButton, { controls: panelId, expanded: show, onClick: () => setShow(!show), ref: toggleRef }), _jsx("div", { className: cn("fixed inset-0 top-16 z-40 @min-[1024px]:hidden bg-background-200", show
|
|
143
143
|
? "pointer-events-auto opacity-100"
|
|
144
|
-
: "pointer-events-none opacity-0"), onClick: close }), _jsxs("div", { className: cn("fixed inset-x-0 top-16 bottom-0 z-40 @min-[1024px]:hidden overflow-y-auto bg-background-200 px-2", show ? "opacity-100" : "pointer-events-none invisible opacity-0"), id: panelId, inert: !show, onBlur: keepFocusInMenu, ref: panelRef, children: [_jsx("div", { className: "p-4", children: _jsx(SearchButton, { className: "w-full py-4.5", onClick: close }) }), _jsxs("nav", { className: "flex flex-col px-1", children: [nav.map((item) => "items" in item ? (_jsx(NavDropdownCollapsible, { dropdown: item, navItems: nav, onLinkClick: close }, item.label)) : (_jsx(NavLink, { active: isActive(item.href), external: item.href.startsWith("http"), href: item.href, onClick: close, children: item.label }, item.href))), githubUrl ? (_jsx(NavLink, { external: true, href: githubUrl, onClick: close, children: "GitHub" })) : null, _jsx(OssCollapsible, { onLinkClick: close, sections: ossSections })] }), _jsx("div", { className: "mt-2 flex justify-end px-4 py-4", children: _jsx(ThemeSwitcher, { small: true }) })] })] }));
|
|
144
|
+
: "pointer-events-none opacity-0"), onClick: close }), _jsxs("div", { className: cn("fixed inset-x-0 top-16 bottom-0 z-40 @min-[1024px]:hidden overflow-y-auto bg-background-200 px-2", show ? "opacity-100" : "pointer-events-none invisible opacity-0"), id: panelId, inert: !show, onBlur: keepFocusInMenu, ref: panelRef, children: [_jsx("div", { className: "p-4", children: _jsx(SearchButton, { className: "w-full py-4.5", onClick: close }) }), _jsxs("nav", { className: "flex flex-col px-1", children: [nav.map((item) => "items" in item ? (_jsx(NavDropdownCollapsible, { dropdown: item, navItems: nav, onLinkClick: close }, item.label)) : (_jsx(NavLink, { active: isActive(item.href), external: item.href.startsWith("http"), href: item.href, onClick: close, prefetch: show && item.prefetch !== false, children: item.label }, item.href))), githubUrl ? (_jsx(NavLink, { external: true, href: githubUrl, onClick: close, children: "GitHub" })) : null, _jsx(OssCollapsible, { onLinkClick: close, sections: ossSections })] }), _jsx("div", { className: "mt-2 flex justify-end px-4 py-4", children: _jsx(ThemeSwitcher, { small: true }) })] })] }));
|
|
145
145
|
};
|
|
146
146
|
export const MobileMenu = (props) => (_jsx(MobileMenuState, { ...props }, usePathname()));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { GeistdocsNavbarOssProduct } from "../../config";
|
|
3
3
|
export declare const DEFAULT_OSS_SECTION = "Open Source";
|
|
4
4
|
export declare const DEFAULT_OSS_PRODUCTS: GeistdocsNavbarOssProduct[];
|
|
5
5
|
/**
|
|
@@ -25,7 +25,11 @@ export declare function PanelLink({ active, product, }: {
|
|
|
25
25
|
*/
|
|
26
26
|
export declare function resolveOssProducts(products: GeistdocsNavbarOssProduct[] | undefined, activeProduct: string | undefined): GeistdocsNavbarOssProduct[];
|
|
27
27
|
type NavbarLogoProps = {
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The Vercel mark, rendered by the server navbar so its SVGs (the Labs
|
|
30
|
+
* wordmark is ~10 KB) stay out of this client module's bundle.
|
|
31
|
+
*/
|
|
32
|
+
brandMark: ReactNode;
|
|
29
33
|
className?: string;
|
|
30
34
|
href?: string;
|
|
31
35
|
} & ({
|
|
@@ -37,6 +41,6 @@ type NavbarLogoProps = {
|
|
|
37
41
|
logo: ReactNode;
|
|
38
42
|
variant?: "standard";
|
|
39
43
|
});
|
|
40
|
-
export declare function NavbarLogo({
|
|
44
|
+
export declare function NavbarLogo({ brandMark, className, href, ...props }: NavbarLogoProps): import("react/jsx-runtime").JSX.Element;
|
|
41
45
|
export {};
|
|
42
46
|
//# sourceMappingURL=navbar-logo.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar-logo.d.ts","sourceRoot":"","sources":["../../../src/internal/navbar/navbar-logo.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"navbar-logo.d.ts","sourceRoot":"","sources":["../../../src/internal/navbar/navbar-logo.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAIpE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAW9D,eAAO,MAAM,mBAAmB,gBAAgB,CAAC;AAEjD,eAAO,MAAM,oBAAoB,EAAE,yBAAyB,EAuF3D,CAAC;AAqBF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gNAC4K,CAAC;AAIhN;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,GACR,EAAE;IACD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,IAAI,CAAC,yBAAyB,EAAE,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CACzE,2CA+BA;AAwCD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,EACjD,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,yBAAyB,EAAE,CAI7B;AAED,KAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,CACA;IACE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,SAAS,CAAC;IAChB,WAAW,CAAC,EAAE,yBAAyB,EAAE,CAAC;IAC1C,OAAO,EAAE,KAAK,CAAC;CAChB,GACD;IACE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB,CACJ,CAAC;AAEF,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,SAAS,EACT,IAAU,EACV,GAAG,KAAK,EACT,EAAE,eAAe,2CA2MjB"}
|
|
@@ -9,7 +9,6 @@ import { LogoEveSvg } from "#geistdocs-assets/logos";
|
|
|
9
9
|
import { cn } from "#geistdocs-ui/utils";
|
|
10
10
|
import { LocalizedLink, useLocalizedHref } from "../localized-link";
|
|
11
11
|
import { NavigationMenu, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, } from "../ui/navigation-menu";
|
|
12
|
-
import { NavbarBrand } from "./navbar-brand";
|
|
13
12
|
import { useServerPanelMount } from "./use-server-panel-mount";
|
|
14
13
|
export const DEFAULT_OSS_SECTION = "Open Source";
|
|
15
14
|
export const DEFAULT_OSS_PRODUCTS = [
|
|
@@ -145,7 +144,7 @@ function OssFeaturedCard({ product }) {
|
|
|
145
144
|
export function resolveOssProducts(products, activeProduct) {
|
|
146
145
|
return (products ?? DEFAULT_OSS_PRODUCTS).filter((product) => product.id !== activeProduct && product.href !== activeProduct);
|
|
147
146
|
}
|
|
148
|
-
export function NavbarLogo({
|
|
147
|
+
export function NavbarLogo({ brandMark, className, href = "/", ...props }) {
|
|
149
148
|
const isOss = props.variant === "oss";
|
|
150
149
|
const ossProducts = isOss
|
|
151
150
|
? resolveOssProducts(props.ossProducts, props.activeProduct)
|
|
@@ -187,7 +186,7 @@ export function NavbarLogo({ brand, className, href = "/", ...props }) {
|
|
|
187
186
|
}
|
|
188
187
|
}, [pathname]);
|
|
189
188
|
useEffect(() => () => window.clearTimeout(pointerLeaveTimeoutRef.current), []);
|
|
190
|
-
return (_jsxs("span", { className: cn("flex items-center gap-2.5", className), children: [
|
|
189
|
+
return (_jsxs("span", { className: cn("flex items-center gap-2.5", className), children: [brandMark, _jsx("div", { className: "w-5 text-center text-gray-alpha-400 text-lg dark:text-gray-600", children: _jsx(IconSlashForward, { size: 20 }) }), isOss ? (_jsxs(_Fragment, { children: [_jsx(Link, { className: "flex @min-[1024px]:hidden items-center text-gray-1000", href: localizedHref, prefetch: true, children: props.logo }), _jsxs("div", { className: "@min-[1024px]:contents hidden", children: [_jsx(NavigationMenu, { "aria-label": "Product navigation", delayDuration: 0, onValueChange: (value) => {
|
|
191
190
|
if (value && suppressLogoHoverRef.current) {
|
|
192
191
|
return;
|
|
193
192
|
}
|
package/dist/mdx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../src/mdx.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAiC/C,OAAO,KAAK,EAAE,4BAA4B,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAK3F,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAAa,CAAC;AAC1C,MAAM,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;AAE/D,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;AAEnD,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,sBA6DD,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAC9B,aAAa,sBAAsB,KAClC,sBAA+D,CAAC;AAEnE,eAAO,MAAM,2BAA2B,GACtC,GAAG,eAAe,KAAK,CAAC,sBAAsB,GAAG,SAAS,CAAC,KAC1D,sBACkD,CAAC"}
|
package/dist/mdx.js
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import defaultMdxComponents from "fumadocs-ui/mdx";
|
|
3
3
|
import Link from "next/link";
|
|
4
|
-
import { Tabs } from "#geistdocs-ui/components/tabs";
|
|
5
4
|
import { cn } from "#geistdocs-ui/utils";
|
|
6
5
|
import { Blockquote } from "./components/blockquote";
|
|
7
6
|
import { Button } from "./components/button";
|
|
8
7
|
import { Callout, CalloutContainer, CalloutDescription, CalloutTitle, } from "./components/callout";
|
|
9
8
|
import { CodeBlock } from "./components/code-block";
|
|
10
|
-
import { CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, CompactCodeBlockTabs, } from "./components/code-block-tabs";
|
|
11
|
-
import { CopyPrompt } from "./components/copy-prompt";
|
|
12
9
|
import { Details, Summary } from "./components/details";
|
|
13
10
|
import { Heading } from "./components/heading";
|
|
14
11
|
import { Image } from "./components/image";
|
|
15
|
-
import { Mermaid } from "./components/mermaid";
|
|
16
12
|
import { Step, Steps } from "./components/steps";
|
|
17
13
|
import { Table } from "./components/table";
|
|
18
|
-
import { TabContent, TabsWithChildren } from "./components/tabs-with-children";
|
|
19
14
|
import { TypeTable } from "./components/type-table";
|
|
20
15
|
import { Video } from "./components/video";
|
|
16
|
+
import { CodeBlockTab, CodeBlockTabs, CodeBlockTabsList, CodeBlockTabsTrigger, CompactCodeBlockTabs, CopyPrompt, Mermaid, TabContent, Tabs, TabsWithChildren, } from "./internal/lazy-mdx-components";
|
|
21
17
|
import { LocalizedLink } from "./internal/localized-link";
|
|
22
18
|
import { geistShikiTheme as shikiTheme } from "./shiki-theme";
|
|
23
19
|
// The source-config exports live on @vercel/geistdocs/source-config. Importing
|
package/dist/navbar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../src/navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../src/navbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAShD,UAAU,WAAW;IACnB,MAAM,EAAE,IAAI,CACV,eAAe,EACb,IAAI,GACJ,QAAQ,GACR,MAAM,GACN,UAAU,GACV,KAAK,GACL,qBAAqB,GACrB,aAAa,GACb,cAAc,GACd,mBAAmB,GACnB,eAAe,CAClB,CAAC;CACH;AAKD,eAAO,MAAM,MAAM,GAAI,YAAY,WAAW,4CA8E7C,CAAC"}
|
package/dist/navbar.js
CHANGED
|
@@ -3,6 +3,7 @@ import { AskAIButton, SearchButton } from "./controls";
|
|
|
3
3
|
import { GitHubButton, getGithubRepoUrl } from "./internal/github-button";
|
|
4
4
|
import { DesktopMenu } from "./internal/navbar/desktop-menu";
|
|
5
5
|
import { MobileMenu } from "./internal/navbar/mobile-menu";
|
|
6
|
+
import { NavbarBrand } from "./internal/navbar/navbar-brand";
|
|
6
7
|
import { NavbarLogo } from "./internal/navbar/navbar-logo";
|
|
7
8
|
import { NavbarShell } from "./internal/navbar/navbar-shell";
|
|
8
9
|
// const SEARCH_BUTTON_CLASSES =
|
|
@@ -18,5 +19,6 @@ export const Navbar = ({ config }) => {
|
|
|
18
19
|
// The default product list lives in a "use client" module, so it is resolved
|
|
19
20
|
// and filtered inside the mobile menu.
|
|
20
21
|
const activeProduct = config.navbarActiveProduct;
|
|
21
|
-
|
|
22
|
+
const brandMark = (_jsx(NavbarBrand, { brand: config.navbarBrand, variant: variant }));
|
|
23
|
+
return (_jsx(NavbarShell, { children: _jsxs("div", { className: "@container mx-auto flex w-full max-w-[1448px] justify-between px-2", children: [_jsxs("div", { className: "flex select-none flex-row items-center", children: [isOss ? (_jsx(NavbarLogo, { activeProduct: activeProduct, brandMark: brandMark, className: "ml-4", href: config.logoHref, logo: config.logo, ossProducts: config.navbarOssProducts, variant: "oss" })) : (_jsx(NavbarLogo, { brandMark: brandMark, className: "ml-4", href: config.logoHref, logo: config.logo, variant: "standard" })), _jsx(DesktopMenu, { className: "@min-[1024px]:flex hidden", items: nav })] }), _jsxs("div", { className: "mr-4 flex flex-row items-center justify-end gap-2", children: [_jsx(SearchButton, { className: "@min-[1024px]:flex hidden w-36" }), _jsx(AskAIButton, { className: "@min-[768px]:flex hidden shrink-0", size: "small", variant: "secondary", children: askLabel }), _jsx(AskAIButton, { className: "@min-[768px]:hidden", size: "small", variant: "secondary", children: askLabel }), showGithub ? (_jsx(GitHubButton, { className: "@min-[768px]:inline-flex hidden shrink-0", github: config.github })) : null, _jsx(MobileMenu, { activeProduct: activeProduct, githubUrl: githubUrl, nav: nav, ossProducts: config.navbarOssProducts, showOss: isOss })] })] }) }));
|
|
22
24
|
};
|
package/docs/agents.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Docs
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 2.14.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 2.14.3-canary.9417d69 so agents can understand the installed package without web access.
|
|
4
4
|
They are generated from `apps/template/content/docs` during the package build.
|
|
5
5
|
|
|
6
6
|
## How to use these files
|
package/docs/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Geistdocs Package Documentation
|
|
2
2
|
|
|
3
|
-
These docs are bundled with `@vercel/geistdocs` 2.14.
|
|
3
|
+
These docs are bundled with `@vercel/geistdocs` 2.14.3-canary.9417d69.
|
|
4
4
|
They describe how to build package-backed Geistdocs sites and how to use the package APIs from generated project adapters.
|
|
5
5
|
|
|
6
6
|
## Documentation Index
|
|
@@ -1248,6 +1248,19 @@ Labs links to [vercel.com/labs](https://vercel.com/labs) and adapts to light and
|
|
|
1248
1248
|
|
|
1249
1249
|
For new projects, both CLIs accept `--brand labs`; omitting it or using `--brand vercel` preserves the defaults. See [Create a Labs starter](/docs/getting-started#create-a-labs-starter).
|
|
1250
1250
|
|
|
1251
|
+
### Skip prefetching a navbar link
|
|
1252
|
+
|
|
1253
|
+
Navbar links prefetch their page as soon as they are visible, so a click renders it instantly. Every page load downloads those pages, so set `prefetch: false` on a link to a large page most visitors skip:
|
|
1254
|
+
|
|
1255
|
+
```tsx title="geistdocs.tsx"
|
|
1256
|
+
export const nav = [
|
|
1257
|
+
{ label: "Docs", href: "/docs" },
|
|
1258
|
+
{ label: "Changelog", href: "/changelog", prefetch: false },
|
|
1259
|
+
];
|
|
1260
|
+
```
|
|
1261
|
+
|
|
1262
|
+
The page then loads when the link is clicked.
|
|
1263
|
+
|
|
1251
1264
|
### Group navbar links into a dropdown
|
|
1252
1265
|
|
|
1253
1266
|
A `nav` entry can group related links into a dropdown. Provide `items` instead of `href`. Each item needs a `label` and an `href`, and takes an optional `section`:
|
|
@@ -1268,6 +1281,19 @@ export const nav = [
|
|
|
1268
1281
|
|
|
1269
1282
|
On desktop, the group opens as a full-width panel below the navbar, following the vercel.com header pattern and matching the OSS products flyout. `section` values become column headings, preserving first-seen order; items without a `section` group into a column headed by the dropdown's own label. In the mobile menu, the group renders as a collapsible section. External URLs open in a new tab and show an external-link arrow.
|
|
1270
1283
|
|
|
1284
|
+
### Rename the search button
|
|
1285
|
+
|
|
1286
|
+
Set `search.buttonLabel` in `defineConfig` to change the text of the search buttons in the navbar, the mobile menu, and the mobile docs sidebar:
|
|
1287
|
+
|
|
1288
|
+
```tsx title="lib/geistdocs/config.tsx"
|
|
1289
|
+
export const config = defineConfig({
|
|
1290
|
+
// ...
|
|
1291
|
+
search: { buttonLabel: "search…" },
|
|
1292
|
+
});
|
|
1293
|
+
```
|
|
1294
|
+
|
|
1295
|
+
Blank values keep the default, "Search…". A `SearchButton` you render yourself takes a `label` prop that overrides the config.
|
|
1296
|
+
|
|
1271
1297
|
## `defineConfig`
|
|
1272
1298
|
|
|
1273
1299
|
`lib/geistdocs/config.tsx` converts your root exports into a package config. Most projects only need the generated defaults:
|
|
@@ -4281,7 +4307,7 @@ With eve 0.83 or newer, typing a follow-up also prepares the existing session ow
|
|
|
4281
4307
|
|
|
4282
4308
|
Prewarming requires [`GEISTDOCS_CHAT_SECRET`](#keep-eve-sessions-across-turns-with-geistdocs_chat_secret). The route verifies the latest answer's session tag against the signed cookie before preparing an existing session. Preparation failures, older agents without support, and expired or mismatched cookies fall back to the normal send path. Leave prewarming disabled when typing a draft should not allocate a durable session before the reader sends a message.
|
|
4283
4309
|
|
|
4284
|
-
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
4310
|
+
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. It reads both stream version 26 (eve 0.83 and older) and stream version 27 (eve 0.84 and newer), so the agent can upgrade across that boundary without a site change. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
4285
4311
|
|
|
4286
4312
|
Eve agent mode keeps the platform-owned behavior from proxy mode:
|
|
4287
4313
|
|
package/docs/manifest.json
CHANGED
package/docs/pages/ask-ai.md
CHANGED
|
@@ -342,7 +342,7 @@ With eve 0.83 or newer, typing a follow-up also prepares the existing session ow
|
|
|
342
342
|
|
|
343
343
|
Prewarming requires [`GEISTDOCS_CHAT_SECRET`](#keep-eve-sessions-across-turns-with-geistdocs_chat_secret). The route verifies the latest answer's session tag against the signed cookie before preparing an existing session. Preparation failures, older agents without support, and expired or mismatched cookies fall back to the normal send path. Leave prewarming disabled when typing a draft should not allocate a durable session before the reader sends a message.
|
|
344
344
|
|
|
345
|
-
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
345
|
+
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. It reads both stream version 26 (eve 0.83 and older) and stream version 27 (eve 0.84 and newer), so the agent can upgrade across that boundary without a site change. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
346
346
|
|
|
347
347
|
Eve agent mode keeps the platform-owned behavior from proxy mode:
|
|
348
348
|
|
|
@@ -109,6 +109,19 @@ Labs links to [vercel.com/labs](https://vercel.com/labs) and adapts to light and
|
|
|
109
109
|
|
|
110
110
|
For new projects, both CLIs accept `--brand labs`; omitting it or using `--brand vercel` preserves the defaults. See [Create a Labs starter](/docs/getting-started#create-a-labs-starter).
|
|
111
111
|
|
|
112
|
+
### Skip prefetching a navbar link
|
|
113
|
+
|
|
114
|
+
Navbar links prefetch their page as soon as they are visible, so a click renders it instantly. Every page load downloads those pages, so set `prefetch: false` on a link to a large page most visitors skip:
|
|
115
|
+
|
|
116
|
+
```tsx title="geistdocs.tsx"
|
|
117
|
+
export const nav = [
|
|
118
|
+
{ label: "Docs", href: "/docs" },
|
|
119
|
+
{ label: "Changelog", href: "/changelog", prefetch: false },
|
|
120
|
+
];
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
The page then loads when the link is clicked.
|
|
124
|
+
|
|
112
125
|
### Group navbar links into a dropdown
|
|
113
126
|
|
|
114
127
|
A `nav` entry can group related links into a dropdown. Provide `items` instead of `href`. Each item needs a `label` and an `href`, and takes an optional `section`:
|
|
@@ -129,6 +142,19 @@ export const nav = [
|
|
|
129
142
|
|
|
130
143
|
On desktop, the group opens as a full-width panel below the navbar, following the vercel.com header pattern and matching the OSS products flyout. `section` values become column headings, preserving first-seen order; items without a `section` group into a column headed by the dropdown's own label. In the mobile menu, the group renders as a collapsible section. External URLs open in a new tab and show an external-link arrow.
|
|
131
144
|
|
|
145
|
+
### Rename the search button
|
|
146
|
+
|
|
147
|
+
Set `search.buttonLabel` in `defineConfig` to change the text of the search buttons in the navbar, the mobile menu, and the mobile docs sidebar:
|
|
148
|
+
|
|
149
|
+
```tsx title="lib/geistdocs/config.tsx"
|
|
150
|
+
export const config = defineConfig({
|
|
151
|
+
// ...
|
|
152
|
+
search: { buttonLabel: "search…" },
|
|
153
|
+
});
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Blank values keep the default, "Search…". A `SearchButton` you render yourself takes a `label` prop that overrides the config.
|
|
157
|
+
|
|
132
158
|
## `defineConfig`
|
|
133
159
|
|
|
134
160
|
`lib/geistdocs/config.tsx` converts your root exports into a package config. Most projects only need the generated defaults:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/geistdocs",
|
|
3
3
|
"description": "Runtime and CLI for Geistdocs projects.",
|
|
4
|
-
"version": "2.14.
|
|
4
|
+
"version": "2.14.3-canary.9417d69",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -301,6 +301,10 @@
|
|
|
301
301
|
"./theme.css": "./theme.css",
|
|
302
302
|
"./package.json": "./package.json"
|
|
303
303
|
},
|
|
304
|
+
"scripts": {
|
|
305
|
+
"build": "rm -rf dist docs template && node ./scripts/bundle-template.mjs && node ./scripts/bundle-docs.mjs && tsc -p tsconfig.runtime.json && tsup --config tsup.config.cli.ts",
|
|
306
|
+
"dev": "tsc -p tsconfig.runtime.json --watch --preserveWatchOutput"
|
|
307
|
+
},
|
|
304
308
|
"dependencies": {
|
|
305
309
|
"@ai-sdk/react": "^3.0.134",
|
|
306
310
|
"@clack/prompts": "^0.11.0",
|
|
@@ -364,9 +368,5 @@
|
|
|
364
368
|
"react-dom": "^19.2.3",
|
|
365
369
|
"tsup": "^8.5.1",
|
|
366
370
|
"typescript": "^5.9.3"
|
|
367
|
-
},
|
|
368
|
-
"scripts": {
|
|
369
|
-
"build": "rm -rf dist docs template && node ./scripts/bundle-template.mjs && node ./scripts/bundle-docs.mjs && tsc -p tsconfig.runtime.json && tsup --config tsup.config.cli.ts",
|
|
370
|
-
"dev": "tsc -p tsconfig.runtime.json --watch --preserveWatchOutput"
|
|
371
371
|
}
|
|
372
|
-
}
|
|
372
|
+
}
|
|
@@ -340,7 +340,7 @@ With eve 0.83 or newer, typing a follow-up also prepares the existing session ow
|
|
|
340
340
|
|
|
341
341
|
Prewarming requires [`GEISTDOCS_CHAT_SECRET`](#keep-eve-sessions-across-turns-with-geistdocs_chat_secret). The route verifies the latest answer's session tag against the signed cookie before preparing an existing session. Preparation failures, older agents without support, and expired or mismatched cookies fall back to the normal send path. Leave prewarming disabled when typing a draft should not allocate a durable session before the reader sends a message.
|
|
342
342
|
|
|
343
|
-
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
343
|
+
The URL flows to `createChatRoute` through the config object you already pass in `app/api/chat/route.ts` — no route changes are required. Geistdocs speaks eve's session API directly: it starts or resumes a durable eve session, streams the agent's NDJSON events, and translates them into the same UI message stream the chat panel already renders. It reads both stream version 26 (eve 0.83 and older) and stream version 27 (eve 0.84 and newer), so the agent can upgrade across that boundary without a site change. With `GEISTDOCS_CHAT_SECRET` set, Geistdocs continues one eve session across turns by binding it to the reader's browser with a signed, httpOnly cookie.
|
|
344
344
|
|
|
345
345
|
Eve agent mode keeps the platform-owned behavior from proxy mode:
|
|
346
346
|
|
|
@@ -107,6 +107,19 @@ Labs links to [vercel.com/labs](https://vercel.com/labs) and adapts to light and
|
|
|
107
107
|
|
|
108
108
|
For new projects, both CLIs accept `--brand labs`; omitting it or using `--brand vercel` preserves the defaults. See [Create a Labs starter](/docs/getting-started#create-a-labs-starter).
|
|
109
109
|
|
|
110
|
+
### Skip prefetching a navbar link
|
|
111
|
+
|
|
112
|
+
Navbar links prefetch their page as soon as they are visible, so a click renders it instantly. Every page load downloads those pages, so set `prefetch: false` on a link to a large page most visitors skip:
|
|
113
|
+
|
|
114
|
+
```tsx title="geistdocs.tsx"
|
|
115
|
+
export const nav = [
|
|
116
|
+
{ label: "Docs", href: "/docs" },
|
|
117
|
+
{ label: "Changelog", href: "/changelog", prefetch: false },
|
|
118
|
+
];
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The page then loads when the link is clicked.
|
|
122
|
+
|
|
110
123
|
### Group navbar links into a dropdown
|
|
111
124
|
|
|
112
125
|
A `nav` entry can group related links into a dropdown. Provide `items` instead of `href`. Each item needs a `label` and an `href`, and takes an optional `section`:
|
|
@@ -127,6 +140,19 @@ export const nav = [
|
|
|
127
140
|
|
|
128
141
|
On desktop, the group opens as a full-width panel below the navbar, following the vercel.com header pattern and matching the OSS products flyout. `section` values become column headings, preserving first-seen order; items without a `section` group into a column headed by the dropdown's own label. In the mobile menu, the group renders as a collapsible section. External URLs open in a new tab and show an external-link arrow.
|
|
129
142
|
|
|
143
|
+
### Rename the search button
|
|
144
|
+
|
|
145
|
+
Set `search.buttonLabel` in `defineConfig` to change the text of the search buttons in the navbar, the mobile menu, and the mobile docs sidebar:
|
|
146
|
+
|
|
147
|
+
```tsx title="lib/geistdocs/config.tsx"
|
|
148
|
+
export const config = defineConfig({
|
|
149
|
+
// ...
|
|
150
|
+
search: { buttonLabel: "search…" },
|
|
151
|
+
});
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Blank values keep the default, "Search…". A `SearchButton` you render yourself takes a `label` prop that overrides the config.
|
|
155
|
+
|
|
130
156
|
## `defineConfig`
|
|
131
157
|
|
|
132
158
|
`lib/geistdocs/config.tsx` converts your root exports into a package config. Most projects only need the generated defaults:
|
package/template/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@streamdown/code": "^1.0.1",
|
|
18
18
|
"@vercel/agent-readability": "^0.7.0",
|
|
19
19
|
"@vercel/analytics": "^1.6.1",
|
|
20
|
-
"@vercel/geistdocs": "2.14.
|
|
20
|
+
"@vercel/geistdocs": "2.14.3-canary.9417d69",
|
|
21
21
|
"@vercel/speed-insights": "^1.3.1",
|
|
22
22
|
"ai": "^6.0.132",
|
|
23
23
|
"clsx": "^2.1.1",
|