Skip to content

Commit

Permalink
Merge pull request #3789 from udecode/docs/examples
Browse files Browse the repository at this point in the history
Docs/examples
  • Loading branch information
zbeyens authored Nov 19, 2024
2 parents 1e9b3c1 + e8d1ac0 commit 95bae9d
Show file tree
Hide file tree
Showing 440 changed files with 6,873 additions and 12,535 deletions.
3 changes: 1 addition & 2 deletions apps/www/content/docs/ai.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: AI
description: AI menu with commands, streaming responses in a preview or directly into the editor.
docs:
- route: https://pro.platejs.org/docs/examples/ai
title: AI
---

<ComponentPreview name="playground-demo" id="ai" />
<ComponentPreview name="ai-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/alignment.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: Alignment
description: Align your content to different positions.
docs:
- route: /docs/components/align-dropdown-menu
title: Align Dropdown Menu
---

<ComponentPreview name="playground-demo" id="align" />
<ComponentPreview name="align-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/autoformat.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Autoformat
description: Apply formatting automatically using shortcodes.
docs:
- route: /docs/basic-elements
title: Basic Elements
Expand All @@ -12,7 +11,7 @@ docs:
title: List
---

<ComponentPreview name="playground-demo" id="autoformat" />
<ComponentPreview name="autoformat-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/basic-elements.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Basic Elements
description: Enhance your editor with essential formatting elements.
docs:
- route: /docs/components/blockquote-element
title: Block Quote Element
Expand All @@ -14,7 +13,7 @@ docs:
title: Heading Element
---

<ComponentPreview name="playground-demo" id="basic-nodes" />
<ComponentPreview name="basic-elements-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/basic-marks.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: Basic Marks
description: Set of essential text formatting options.
docs:
- route: /docs/components/mark-toolbar-button
title: Mark Toolbar Button
---

<ComponentPreview name="playground-demo" id="basic-nodes" />
<ComponentPreview name="basic-marks-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/block-menu.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Block Menu
description: Provides quick access to block-specific actions.
docs:
- route: /docs/components/block-context-menu
title: Block Context Menu
Expand All @@ -13,7 +12,7 @@ docs:

---

<ComponentPreview name="playground-demo" id="block-menu" />
<ComponentPreview name="block-menu-demo" />

<PackageInfo>

Expand Down
10 changes: 4 additions & 6 deletions apps/www/content/docs/block-selection.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: Block Selection
description: Select and manipulate entire text blocks.
---

<ComponentPreview name="playground-demo" id="block-selection" />
<ComponentPreview name="block-selection-demo" />

<PackageInfo>

Expand Down Expand Up @@ -79,10 +78,9 @@ Default configuration:
BlockSelectionPlugin.configure({
options: {
areaOptions: {
boundaries: `#${editor.uid}`,
container: `#${editor.uid}`,
selectables: `#${editor.uid} .slate-selectable`,
},
boundaries: `#${editor.uid}`,
container: `#${editor.uid}`,
selectables: `#${editor.uid} .slate-selectable`,
},
},
});
Expand Down
1 change: 0 additions & 1 deletion apps/www/content/docs/callout.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Callout
description: Highlight important information or add special notes.
docs:
- route: https://pro.platejs.org/docs/components/callout-element
title: Callout Element
Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/caption.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: Caption
description: Add captions to your blocks.
docs:
- route: /docs/components/draggable
title: Draggable
---

<ComponentPreview name="playground-demo" id="media" />
<ComponentPreview name="media-demo" />

<PackageInfo>

Expand Down
1 change: 0 additions & 1 deletion apps/www/content/docs/collaboration.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Collaboration
description: Collaborate with others in a single document.
---

<Callout className="my-4">
Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/column.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
title: Column
description: Add Columns to your document.
docs:
- route: /docs/components/column-element
title: Column Element
- route: /docs/components/column-group-element
title: Column Group Element
---

<ComponentPreview name="playground-demo" id="column" />
<ComponentPreview name="column-demo" />

<PackageInfo>

Expand Down
1 change: 0 additions & 1 deletion apps/www/content/docs/combobox.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Combobox
description: Utilities for adding comboboxes to your editor.
---

The `TriggerComboboxPluginOptions` mixin configures your plugin to insert a combobox input element when the user types a specified trigger character.
Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/comments.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Comments
description: Add comments to text as marks.
docs:
- route: /docs/components/comment-leaf
title: Comment Leaf
Expand All @@ -10,7 +9,7 @@ docs:
title: Comments Popover
---

<ComponentPreview name="playground-demo" id="comment" />
<ComponentPreview name="comments-demo" />

<PackageInfo>

Expand Down
4 changes: 2 additions & 2 deletions apps/www/content/docs/components/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Use the [CLI](https://platejs.org/docs/components/cli) to install the latest ver

### November 14 #16.7

Add `ToolbarSplitButton`, `ToolbarSplitButtonPrimary`, `ToolbarSplitButtonSecondary` in `toolbar.tsx`.
Refactor `media-toolbar-button.tsx` to use the new split button.
- `toolbar`: Add `ToolbarSplitButton`, `ToolbarSplitButtonPrimary`, `ToolbarSplitButtonSecondary`
- `media-toolbar-button`: use `ToolbarSplitButton`

### November 13 #16.6

Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions apps/www/content/docs/copilot.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
title: Copilot
description: Render AI suggestions ghost text as you type.
docs:
- route: /docs/components/ghost-text
title: Ghost Text
- route: https://pro.platejs.org/docs/components/ghost-text
title: Ghost Text
---

<ComponentPreview name="playground-demo" id="copilot" />
<ComponentPreview name="copilot-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/csv.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: Serializing CSV
description: Copy paste from CSV to Slate.
---

<ComponentPreview name="playground-demo" id="csv" />
<ComponentPreview name="csv-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/cursor-overlay.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: Cursor Overlay
description: A visual overlay for cursors and selections.
docs:
- route: /docs/components/cursor-overlay
title: Cursor Overlay
---

<ComponentPreview name="playground-demo" id="cursor-overlay" />
<ComponentPreview name="cursor-overlay-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/date.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: Date
description: Insert and format dates in your document.
docs:
- route: /docs/components/date-element
title: Date Element
---

<ComponentPreview name="playground-demo" id="date" />
<ComponentPreview name="date-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/dnd.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: Drag & Drop
description: Allows movement of blocks, such as paragraph or tables, within the editor.
docs:
- route: /docs/components/draggable
title: Draggable
---

<ComponentPreview name="playground-demo" id="dnd" />
<ComponentPreview name="dnd-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/docx.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: Serializing Docx
description: Copy paste from DOCX to Slate.
---

<ComponentPreview name="playground-demo" id="docx" />
<ComponentPreview name="docx-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/emoji.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Emoji
description: Insert emoji inline.
docs:
- route: /docs/combobox
title: Combobox
Expand All @@ -12,7 +11,7 @@ docs:
title: Emoji Toolbar Dropdown
---

<ComponentPreview name="playground-demo" id="emoji" />
<ComponentPreview name="emoji-demo" />

<PackageInfo>

Expand Down
1 change: 0 additions & 1 deletion apps/www/content/docs/equation.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Equation
description: Enables the insertion and rendering of LaTeX equations in your editor.
docs:
- route: https://pro.platejs.org/docs/components/equation-element
title: Equation Element
Expand Down
1 change: 0 additions & 1 deletion apps/www/content/docs/examples/editable-voids.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Editable Voids
description: Nest editors in void nodes.
---

<ComponentPreview name="editable-voids-demo" />
1 change: 0 additions & 1 deletion apps/www/content/docs/examples/hundreds-blocks.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Hundreds Blocks
description: Render an editor with 700 blocks.
---

<ComponentPreview name="hundreds-blocks-demo" />
1 change: 0 additions & 1 deletion apps/www/content/docs/examples/hundreds-editors.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Hundreds Editors
description: Render 300 editors.
---

<ComponentPreview name="hundreds-editors-demo" />
1 change: 0 additions & 1 deletion apps/www/content/docs/examples/iframe.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: IFrame
description: Rendering in iframes.
---

<ComponentPreview name="iframe-demo" />
3 changes: 1 addition & 2 deletions apps/www/content/docs/examples/preview-markdown.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Preview Markdown
description: Decorate texts with markdown preview.
---

<ComponentPreview name="preview-md-demo" />
<ComponentPreview name="preview-markdown-demo" />
1 change: 0 additions & 1 deletion apps/www/content/docs/examples/version-history.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: Version History
description: Show a diff of two different points in a Plate document's history.
---


Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/excalidraw.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
---
title: Excalidraw
description: Create drawings and diagrams as block nodes.
docs:
- route: /docs/components/excalidraw-element
title: Excalidraw Element
---

<ComponentPreview name="playground-demo" id="excalidraw" />
<ComponentPreview name="excalidraw-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/exit-break.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: Exit Break
description: Exit a large block using a shortcut.
---

<ComponentPreview name="playground-demo" id="exit-break" />
<ComponentPreview name="exit-break-demo" />

<PackageInfo>

Expand Down
2 changes: 1 addition & 1 deletion apps/www/content/docs/font.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ docs:
title: Color Dropdown Menu
---

<ComponentPreview name="playground-demo" id="font" />
<ComponentPreview name="font-demo" />

<PackageInfo>

Expand Down
3 changes: 1 addition & 2 deletions apps/www/content/docs/forced-layout.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
---
title: Forced Layout
description: Strict document structure.
---

{/* <ComponentPreview name="playground-demo" id="forced-layout" /> */}
{/* <ComponentPreview name="forced-layout-demo" /> */}

<PackageInfo>

Expand Down
Loading

0 comments on commit 95bae9d

Please sign in to comment.