Skip to content

Commit 6fcdf7a

Browse files
committed
fix(docs): switch ai to swap out search tool since it's not working for now
1 parent ebbf12a commit 6fcdf7a

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

apps/docs/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
export const maxDuration = 30;
44

5-
export { POST } from "@/lib/chat/gemma/serverWithSearchTool";
5+
export { POST } from "@/lib/chat/gemma/serverWithLinksTool";

apps/docs/app/docs/[[...slug]]/page.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import {
1111
import type { Metadata } from "next";
1212
import { notFound } from "next/navigation";
1313
import { MarkdownCopyButton, ViewOptionsPopover } from "@/components/ai/page-actions";
14-
import { getMDXComponents } from "@/components/common";
1514
import { EditOnGithub } from "@/components/common/EditOnGithub";
15+
import { getMDXComponents } from "@/components/common/MdxComponents";
1616
import { HoverCard } from "@/components/ui";
1717
import { repoName, repoOwner } from "@/lib/github";
1818
import { createMetadata, defaultDescription } from "@/lib/metadata";
@@ -54,7 +54,9 @@ async function Page({ params }: PageProps<"/docs/[[...slug]]">) {
5454
<MDX
5555
components={getMDXComponents({
5656
...Twoslash,
57-
a: ({ children, href, ...restOfProps }) => {
57+
a: (innerProps) => {
58+
const { children, href, ...restOfProps } = innerProps;
59+
5860
const foundPage = source.getPageByHref(href ?? "", {
5961
dir: PathUtils.dirname(page.path),
6062
});
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export { IconBox } from "./IconBox";
22
export { Slot } from "./slot";
3-
export { getMDXComponents } from "./MdxComponents";

apps/docs/tailwind.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@
150150
font-family: var(--font-jetbrains-mono);
151151
} */
152152

153-
/* body {
154-
font-family: var(--font-geist-sans);
153+
body {
154+
/* font-family: var(--font-geist-sans); */
155155
line-height: 1.5;
156-
} */
156+
}
157157
}

0 commit comments

Comments
 (0)