Skip to content

Commit cc9d514

Browse files
committed
docs: update
1 parent d53f8f3 commit cc9d514

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

docs/.vitepress/locale.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export function getLocaleConfig(lang: string) {
5252
text: `v${version}`,
5353
items: VERSIONS,
5454
},
55+
{
56+
text: 'llmstxt',
57+
link: 'https://reactjs-tiptap-editor.vercel.app/llms-full.txt',
58+
},
5559
];
5660

5761
const sidebar: DefaultTheme.SidebarItem[] = [

docs/extensions/CodeBlock/index.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ next:
1212

1313
## Usage
1414

15+
- First Install `prism-code-editor-lightweight` package:
16+
17+
```bash
18+
npm install prism-code-editor-lightweight
19+
# or
20+
yarn add prism-code-editor-lightweight
21+
or
22+
pnpm install prism-code-editor-lightweight
23+
```
24+
1525

1626
```tsx
1727
import { RichTextProvider } from 'reactjs-tiptap-editor'

docs/extensions/TextAlign/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { TextStyle } from '@tiptap/extension-text-style';
2828
import { ListItem } from '@tiptap/extension-list';
2929

3030
// Extension
31-
import { TextAlign, RichTextTextAlign } from 'reactjs-tiptap-editor/textalign'; // [!code ++]
31+
import { TextAlign, RichTextAlign } from 'reactjs-tiptap-editor/textalign'; // [!code ++]
3232
// ... other extensions
3333

3434

@@ -58,7 +58,7 @@ const extensions = [
5858
const RichTextToolbar = () => {
5959
return (
6060
<div className="flex items-center gap-2 flex-wrap border-b border-solid">
61-
<RichTextTextAlign /> {/* [!code ++] */}
61+
<RichTextAlign /> {/* [!code ++] */}
6262
</div>
6363
)
6464
}

docs/extensions/TextUnderline/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { TextStyle } from '@tiptap/extension-text-style';
2828
import { ListItem } from '@tiptap/extension-list';
2929

3030
// Extension
31-
import { TextUnderline, RichTextTextUnderline } from 'reactjs-tiptap-editor/textunderline'; // [!code ++]
31+
import { TextUnderline, RichTextUnderline } from 'reactjs-tiptap-editor/textunderline'; // [!code ++]
3232
// ... other extensions
3333

3434

@@ -58,7 +58,7 @@ const extensions = [
5858
const RichTextToolbar = () => {
5959
return (
6060
<div className="flex items-center gap-2 flex-wrap border-b border-solid">
61-
<RichTextTextUnderline /> {/* [!code ++] */}
61+
<RichTextUnderline /> {/* [!code ++] */}
6262
</div>
6363
)
6464
}

0 commit comments

Comments
 (0)