Skip to content

Commit c8a356d

Browse files
committed
docs: fix ai path
1 parent af38ca5 commit c8a356d

File tree

8 files changed

+9
-7
lines changed

8 files changed

+9
-7
lines changed

docs/app/layout.config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const baseOptions: Partial<DocsLayoutProps & HomeLayoutProps> = {
4949
},
5050
{
5151
text: "AI",
52-
url: "/docs/ai",
52+
url: "/docs/features/ai",
5353
active: "nested-url",
5454
},
5555
{

docs/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Layout({ children }: { children: ReactNode }) {
2424
className="whitespace-break-spaces bg-[#fef6d5] text-black"
2525
>
2626
🚀 BlockNote AI is here!{" "}
27-
<a href="/docs/ai" className="italic underline">
27+
<a href="/docs/features/ai" className="italic underline">
2828
Access the early preview.
2929
</a>
3030
</Banner>

docs/content/docs/features/ai/getting-started.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: Getting Started
33
description: Add AI functionality to your BlockNote rich text editor
44
imageTitle: BlockNote AI
5-
path: /docs/ai/getting-started
65
---
76

87
# Getting Started with BlockNote AI

docs/content/docs/features/ai/index.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: AI Rich Text Editing
33
description: Add AI functionality to your BlockNote rich text editor
44
imageTitle: BlockNote AI
5-
path: /docs/ai
65
---
76

87
# BlockNote AI Integration

docs/content/docs/features/ai/reference.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: BlockNote AI Reference
33
description: Reference documentation for the BlockNote AI extension
44
imageTitle: BlockNote AI
5-
path: /docs/ai/reference
65
---
76

87
## `createAIExtension`

docs/next.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ const config = {
142142
destination: "/docs/features/ai/reference",
143143
permanent: true,
144144
},
145+
{
146+
source: "/docs/ai",
147+
destination: "/docs/features/ai",
148+
permanent: true,
149+
},
145150
{
146151
source: "/docs/styling-theming/overriding-css",
147152
destination: "/docs/react/styling-theming/overriding-css",

examples/09-ai/04-with-collaboration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ This example combines the AI extension with the ghost writer example to show how
77
- [Editor Setup](/docs/getting-started/editor-setup)
88
- [Changing the Formatting Toolbar](/docs/react/components/formatting-toolbar#changing-the-formatting-toolbar)
99
- [Changing Slash Menu Items](/docs/react/components/suggestion-menus#changing-slash-menu-items)
10-
- [Getting Stared with BlockNote AI](/docs/ai/setup)
10+
- [Getting Stared with BlockNote AI](/docs/features/ai/setup)

playground/src/examples.gen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@
16501650
"pathFromRoot": "examples/09-ai",
16511651
"slug": "ai"
16521652
},
1653-
"readme": "This example combines the AI extension with the ghost writer example to show how to use the AI extension in a collaborative environment.\n\n**Relevant Docs:**\n\n- [Editor Setup](/docs/getting-started/editor-setup)\n- [Changing the Formatting Toolbar](/docs/react/components/formatting-toolbar#changing-the-formatting-toolbar)\n- [Changing Slash Menu Items](/docs/react/components/suggestion-menus#changing-slash-menu-items)\n- [Getting Stared with BlockNote AI](/docs/ai/setup)"
1653+
"readme": "This example combines the AI extension with the ghost writer example to show how to use the AI extension in a collaborative environment.\n\n**Relevant Docs:**\n\n- [Editor Setup](/docs/getting-started/editor-setup)\n- [Changing the Formatting Toolbar](/docs/react/components/formatting-toolbar#changing-the-formatting-toolbar)\n- [Changing Slash Menu Items](/docs/react/components/suggestion-menus#changing-slash-menu-items)\n- [Getting Stared with BlockNote AI](/docs/features/ai/setup)"
16541654
}
16551655
]
16561656
},

0 commit comments

Comments
 (0)