-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-router.ts
72 lines (68 loc) · 2.77 KB
/
page-router.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import type { Section } from './component/Sidebar/Sidebar';
import whyMilkdown from './pages/guide/why-milkdown.md';
import gettingStarted from './pages/guide/getting-started.md';
import interactingWithEditor from './pages/guide/interacting-with-editor.md';
import styling from './pages/guide/styling.md';
import keyboardShortcuts from './pages/guide/keyboard-shortcuts.md';
import react from './pages/integrations/react.md';
import vue from './pages/integrations/vue.md';
import writingPlugins from './pages/plugins/writing-plugins.md';
import usingPlugins from './pages/plugins/using-plugins.md';
import nodeAndMark from './pages/plugins/node&mark.md';
import integratingPlugins from './pages/plugins/integrating-plugins.md';
import parser from './pages/plugins/parser.md';
import serializer from './pages/plugins/serializer.md';
import exampleCustomSyntax from './pages/plugins/example-custom-syntax.md';
import internalPlugins from './pages/plugins/internal-plugins.md';
export const pageRouter: Section[] = [
{
title: 'Guide',
items: [
{ title: 'Why Milkdown', link: '/why-milkdown', content: whyMilkdown },
{ title: 'Getting Started', link: '/getting-started', content: gettingStarted },
{
title: 'Interacting with Editor',
link: '/interacting-with-editor',
content: interactingWithEditor,
},
{
title: 'Styling',
link: '/styling',
content: styling,
},
{
title: 'Keyboard Shortcuts',
link: '/keyboard-shortcuts',
content: keyboardShortcuts,
},
],
},
{
title: 'Integrations',
items: [
{
title: 'React',
link: '/react',
content: react,
},
{
title: 'Vue',
link: '/vue',
content: vue,
},
],
},
{
title: 'Plugins',
items: [
{ title: 'Using Plugins', link: '/using-plugins', content: usingPlugins },
{ title: 'Integrating Plugins', link: '/integrating-plugins', content: integratingPlugins },
{ title: 'Node & Mark', link: '/node-and-mark', content: nodeAndMark },
{ title: 'Parser', link: '/parser', content: parser },
{ title: 'Serializer', link: '/serializer', content: serializer },
{ title: 'Example: Custom Syntax', link: '/example-custom-syntax', content: exampleCustomSyntax },
{ title: 'Writing Plugins', link: '/writing-plugins', content: writingPlugins },
{ title: 'Internal Plugins', link: '/internal-plugins', content: internalPlugins },
],
},
];