-
-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: embed editor in site landing page (#6158)
- Loading branch information
1 parent
ac022c0
commit e571861
Showing
10 changed files
with
215 additions
and
179 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
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,127 @@ | ||
import { DefaultTheme } from 'vitepress'; | ||
|
||
export const guide: DefaultTheme.NavItem[] = [ | ||
{ | ||
text: 'Getting Started', | ||
items: [ | ||
{ text: 'Overview', link: 'guide/overview' }, | ||
{ text: 'Quick Start', link: 'guide/quick-start' }, | ||
], | ||
}, | ||
{ | ||
text: 'Framework Tutorial', | ||
items: [ | ||
{ text: 'Component Types', link: 'guide/component-types' }, | ||
{ | ||
text: 'Working with Block Tree', | ||
// @ts-ignore | ||
link: 'guide/working-with-block-tree', | ||
items: [ | ||
{ | ||
text: 'Block Tree Basics', | ||
link: 'guide/working-with-block-tree#block-tree-basics', | ||
}, | ||
{ | ||
text: 'Block Tree in Editor', | ||
link: 'guide/working-with-block-tree#block-tree-in-editor', | ||
}, | ||
{ | ||
text: 'Selecting Blocks', | ||
link: 'guide/working-with-block-tree#selecting-blocks', | ||
}, | ||
{ | ||
text: 'Service and Commands', | ||
link: 'guide/working-with-block-tree#service-and-commands', | ||
}, | ||
{ | ||
text: 'Defining New Blocks', | ||
link: 'guide/working-with-block-tree#defining-new-blocks', | ||
}, | ||
], | ||
}, | ||
{ text: 'Data Synchronization', link: 'guide/data-synchronization' }, | ||
], | ||
}, | ||
{ | ||
text: 'API Walkthrough', | ||
items: [ | ||
{ | ||
text: '<code>block-std</code>', | ||
items: [ | ||
{ | ||
text: 'Block Spec', | ||
link: 'guide/block-spec', | ||
// @ts-ignore | ||
items: [ | ||
{ text: 'Block Schema', link: 'guide/block-schema' }, | ||
{ text: 'Block Service', link: 'guide/block-service' }, | ||
{ text: 'Block View', link: 'guide/block-view' }, | ||
{ text: 'Block Widgets', link: 'guide/block-widgets' }, | ||
], | ||
}, | ||
{ | ||
text: 'Selection', | ||
link: 'guide/selection', | ||
}, | ||
{ text: 'Event', link: 'guide/event' }, | ||
{ text: 'Command', link: 'guide/command' }, | ||
], | ||
}, | ||
{ | ||
text: '<code>store</code>', | ||
items: [ | ||
{ text: 'Page', link: 'guide/store#page' }, | ||
{ text: 'Workspace', link: 'guide/store#workspace' }, | ||
{ text: 'Slot', link: 'guide/slot' }, | ||
{ text: 'Adapter', link: 'guide/adapter' }, | ||
], | ||
}, | ||
{ | ||
text: '<code>inline</code>', | ||
link: 'guide/inline', | ||
}, | ||
{ | ||
text: '<code>lit</code>', | ||
link: 'guide/lit', | ||
}, | ||
], | ||
}, | ||
{ | ||
text: 'Developing BlockSuite', | ||
items: [ | ||
{ | ||
text: 'Building Packages', | ||
link: '//github.com/toeverything/blocksuite/blob/master/BUILDING.md', | ||
}, | ||
{ | ||
text: 'Running Tests', | ||
link: '//github.com/toeverything/blocksuite/blob/master/BUILDING.md#testing', | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
export const reference: DefaultTheme.NavItem[] = [ | ||
{ | ||
text: 'API Reference', | ||
items: [ | ||
{ text: '@blocksuite/store', link: 'api/@blocksuite/store/index' }, | ||
{ | ||
text: '@blocksuite/block-std', | ||
link: 'api/@blocksuite/block-std/index', | ||
}, | ||
{ text: '@blocksuite/lit', link: 'api/@blocksuite/lit/index' }, | ||
{ text: '@blocksuite/inline', link: 'api/@blocksuite/inline/index' }, | ||
{ | ||
text: '@blocksuite/presets', | ||
link: 'api/@blocksuite/presets/index', | ||
}, | ||
{ text: '@blocksuite/blocks', link: 'api/@blocksuite/blocks/index' }, | ||
], | ||
}, | ||
]; | ||
|
||
export const components: DefaultTheme.NavItem[] = [ | ||
{ text: '📝 DocEditor', link: 'components/doc-editor' }, | ||
{ text: '🎨 EdgelessEditor', link: 'components/edgeless-editor' }, | ||
]; |
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,18 @@ | ||
<template> | ||
<!-- TODO: switch to native components --> | ||
<iframe | ||
src="https://try-blocksuite.vercel.app/starter/?init" | ||
allow="clipboard-read; clipboard-write" | ||
></iframe> | ||
</template> | ||
|
||
<style scoped> | ||
iframe { | ||
border: none; | ||
margin: auto; | ||
width: 100%; | ||
margin-top: 20px; | ||
max-width: 1152px; | ||
height: 700px; | ||
} | ||
</style> |
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.