This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
toc.constant.js
63 lines (60 loc) · 2.83 KB
/
toc.constant.js
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
const TOC_1 = [
{ title: '前言', slug: 'intro', depth: 1 },
{ title: '第一章: 基础知识', slug: '#', depth: 1 },
{ title: '前端开发的演变', slug: 'sc1lvc', depth: 2 },
{ title: '初始化项目', slug: 'wybhm9', depth: 2 },
{ title: '第一个组件', slug: 'fd5af7', depth: 2 },
{ title: '使用 Ant Design 组件', slug: 'agmsgo', depth: 2 },
{ title: '受控组件与非受控组件', slug: 'goozth', depth: 2 },
{ title: '第二章: 布局与路由', slug: 'chapter2', depth: 1 },
{ title: '基本布局', slug: 'layout', depth: 2 },
{ title: '侧边导航', slug: 'ghalng', depth: 2 },
{ title: '路由配置', slug: 'ipsba8', depth: 2 },
{ title: '第三章: 小试牛刀', slug: 'chapter3', depth: 1 },
{ title: '使用 model', slug: 'abl3ad', depth: 2 },
{ title: '搭建基于 model 的卡片列表页面', slug: 'dsl8ee', depth: 2 },
{ title: '在 model 中请求服务端数据', slug: 'ig6mzb', depth: 2 },
{ title: '模拟服务端数据', slug: 'kmmq56', depth: 2 },
{ title: '第四章: 复杂页面', slug: 'chapter4', depth: 1 },
{ title: '表格', slug: 'ndfx96', depth: 2 },
{ title: '表单', slug: 'up1dn3', depth: 2 },
{ title: '图表', slug: 'dk8xsp', depth: 2 },
{ title: '第五章: 进阶功能', slug: '#', depth: 1 },
{ title: '自定义样式', slug: 'customized_styles', depth: 2 },
{ title: '上传与下载', slug: 'wvbsue', depth: 2 },
{ title: '国际化', slug: 'aut0sr', depth: 2 },
{ title: 'React 的生命周期', slug: 'lifemethods', depth: 2 },
{ title: '权限', slug: 'auth', depth: 2 },
{ title: '单元测试', slug: 'unittest', depth: 2 },
{ title: '使用 TypeScript', slug: 'typescript', depth: 2 },
{ title: '附录', slug: '#', depth: 1 },
{ title: '你需要了解的 ES6 语法', slug: 'byllph', depth: 2 },
{ title: '深入理解 umi', slug: 'tydf0a', depth: 2 },
{ title: '关于我们', slug: 'about', depth: 2 }
]
const TOC_2 = [
{ title: '指南', slug: '#', depth: 1 },
{ title: '介绍', slug: 'intro', depth: 2 },
{ title: '快速上手', slug: 'getting-started', depth: 2 },
{ title: '导出第一个站点', slug: 'export-first-website', depth: 2 },
{ title: '配置', slug: 'config', depth: 1 }
]
const TOC_3 = [
{ title: '指南', slug: '#', depth: 1 },
{ title: '介绍', slug: 'intro', depth: 2 },
{ title: '快速上手', slug: 'getting-started', depth: 2 },
{ title: '生成主页', slug: 'generate-homepage', depth: 2 },
{ title: '缓存', slug: 'cache', depth: 2 },
{ title: '私有仓库', slug: 'private-repo', depth: 2 },
{ title: '配置', slug: 'config', depth: 1 },
{ title: '进阶', slug: '#', depth: 1 },
{ title: 'A', slug: 'a', depth: 1 },
{ title: 'B', slug: 'b', depth: 1 },
{ title: 'B-1', slug: 'b-1', depth: 2 },
{ title: 'C', slug: 'c', depth: 1 },
]
module.exports = [
TOC_1,
TOC_2,
TOC_3
]