You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.6 KiB
63 lines
1.6 KiB
import { defineConfig } from 'vitepress'
|
|
|
|
export default defineConfig({
|
|
base: '/canvas-editor-docs/',
|
|
title: 'canvas-editor',
|
|
description: 'rich text editor by canvas/svg',
|
|
themeConfig: {
|
|
logo: '/favicon.png',
|
|
nav: [{
|
|
text: '指南',
|
|
link: '/guide/start',
|
|
activeMatch: '/guide/'
|
|
}, {
|
|
text: 'Demo',
|
|
link: 'https://hufe.club/canvas-editor'
|
|
}],
|
|
sidebar: [
|
|
{
|
|
text: '开始',
|
|
items: [
|
|
{ text: '入门', link: '/guide/start' },
|
|
{ text: '配置', link: '/guide/option' },
|
|
{ text: '数据结构', link: '/guide/schema' }
|
|
]
|
|
},
|
|
{
|
|
text: '命令',
|
|
items: [
|
|
{ text: '执行动作命令', link: '/guide/command-execute' },
|
|
{ text: '获取数据命令', link: '/guide/command-get' }
|
|
]
|
|
},
|
|
{
|
|
text: '监听',
|
|
items: [
|
|
{ text: '事件监听', link: '/guide/listener' }
|
|
]
|
|
},
|
|
{
|
|
text: '快捷键',
|
|
items: [
|
|
{ text: '内部快捷键', link: '/guide/shortcut-internal' },
|
|
{ text: '自定义快捷键', link: '/guide/shortcut-custom' },
|
|
]
|
|
},
|
|
{
|
|
text: '右键菜单',
|
|
items: [
|
|
{ text: '内部右键菜单', link: '/guide/contextmenu-internal' },
|
|
{ text: '自定义右键菜单', link: '/guide/contextmenu-custom' }
|
|
]
|
|
}
|
|
],
|
|
socialLinks: [{
|
|
icon: 'github',
|
|
link: 'https://github.com/Hufe921/canvas-editor'
|
|
}],
|
|
footer: {
|
|
message: 'Released under the MIT License.',
|
|
copyright: 'Copyright © 2021-present Hufe'
|
|
}
|
|
}
|
|
}) |