-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrspress.config.ts
More file actions
35 lines (34 loc) · 1.35 KB
/
Copy pathrspress.config.ts
File metadata and controls
35 lines (34 loc) · 1.35 KB
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
import * as path from 'node:path';
import { defineConfig } from 'rspress/config';
export default defineConfig({
root: path.join(__dirname, 'docs'),
// GitHub Pages 部署时以仓库名为 base 路径
base: '/react-cascading-input/',
title: 'react-cascading-input',
description: '支持 Canvas 连线的级联树形输入 React 组件',
themeConfig: {
nav: [
{ text: '指南', link: '/guide/getting-started' },
{ text: 'API', link: '/api/' },
{ text: 'GitHub', link: 'https://github.com/chenJJ-88/react-cascading-input' },
],
sidebar: {
'/': [
{
text: '指南',
items: [
{ text: '快速开始', link: '/guide/getting-started' },
{ text: '在线演示', link: '/guide/demo' },
{ text: '自定义渲染', link: '/guide/custom-render' },
{ text: '连线样式', link: '/guide/line-style' },
],
},
{
text: 'API',
items: [{ text: '组件 & 类型', link: '/api/' }],
},
],
},
socialLinks: [{ icon: 'github', mode: 'link', content: 'https://github.com/chenJJ-88/react-cascading-input' }],
},
});