-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: GitButler <[email protected]>
- Loading branch information
1 parent
7d7bbce
commit 04f6fc8
Showing
39 changed files
with
1,029 additions
and
1,153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"@assistant-ui/react-syntax-highlighter": patch | ||
"@assistant-ui/react-playground": patch | ||
"@assistant-ui/react-hook-form": patch | ||
"@assistant-ui/react-langgraph": patch | ||
"@tool-ui/weather": patch | ||
"@assistant-ui/react-markdown": patch | ||
"@assistant-ui/react-ai-sdk": patch | ||
"@assistant-ui/react": patch | ||
--- | ||
|
||
chore: update deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,9 @@ coverage | |
.next/ | ||
out/ | ||
|
||
# fumadocs | ||
.source | ||
|
||
# production | ||
build | ||
dist | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { createMDXSource } from "fumadocs-mdx"; | ||
import type { InferPageType } from "fumadocs-core/source"; | ||
import { loader } from "fumadocs-core/source"; | ||
import { meta, docs, blog as blogPosts } from "@/.source"; | ||
|
||
const utils = loader({ | ||
baseUrl: "/docs", | ||
source: createMDXSource(docs, meta), | ||
}); | ||
|
||
export const { getPages, getPage, pageTree } = utils; | ||
|
||
export const blog = loader({ | ||
baseUrl: "/blog", | ||
source: createMDXSource(blogPosts, []), | ||
}); | ||
|
||
export type BlogPage = InferPageType<typeof blog>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ const ClearChatButton = () => { | |
|
||
return <button onClick={handleClick}>Clear chat</button>; | ||
}; | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { | ||
defineConfig, | ||
defineDocs, | ||
defineCollections, | ||
frontmatterSchema, | ||
} from "fumadocs-mdx/config"; | ||
import { rehypeCodeDefaultOptions } from "fumadocs-core/mdx-plugins"; | ||
import { transformerTwoslash } from "fumadocs-twoslash"; | ||
import { transformerMetaHighlight } from "@shikijs/transformers"; | ||
import { z } from "zod"; | ||
|
||
export const { docs, meta } = defineDocs({ | ||
docs: { | ||
schema: frontmatterSchema, | ||
}, | ||
}); | ||
|
||
export const blog = defineCollections({ | ||
dir: "content/blog", | ||
schema: frontmatterSchema.extend({ | ||
author: z.string(), | ||
date: z.string().date().or(z.date()).optional(), | ||
}), | ||
type: "doc", | ||
}); | ||
|
||
export default defineConfig({ | ||
mdxOptions: { | ||
rehypeCodeOptions: { | ||
themes: { | ||
light: "catppuccin-latte", | ||
dark: "catppuccin-mocha", | ||
}, | ||
transformers: [ | ||
...(rehypeCodeDefaultOptions.transformers ?? []), | ||
|
||
transformerMetaHighlight(), | ||
transformerTwoslash({ | ||
twoslashOptions: { | ||
compilerOptions: { | ||
jsx: 1, // JSX preserve | ||
paths: { | ||
"@/*": ["./*"], | ||
}, | ||
}, | ||
}, | ||
}), | ||
], | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.