This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
/
docusaurus.config.js
102 lines (99 loc) · 2.34 KB
/
docusaurus.config.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: '爱速搭',
tagline: '爱速搭文档',
url: 'https://baidu.gitee.io/',
baseUrl: '/aisuda-docs/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: '/img/favicon.png',
organizationName: 'aisuda', // Usually your GitHub org/user name.
projectName: 'aisuda-docs', // Usually your repo name.
themeConfig: {
navbar: {
title: '爱速搭',
logo: {
alt: 'Logo',
src: '/img/logo.png'
},
items: [
{
type: 'doc',
docId: '产品描述/简介',
position: 'left',
label: '使用手册'
},
{
type: 'doc',
docId: '快速入门/使用流程',
position: 'left',
label: '快速入门'
},
{
type: 'doc',
docId: '私有部署/私有部署安装',
position: 'left',
label: '私有部署'
},
{
type: 'doc',
docId: 'OpenAPI/介绍',
position: 'left',
label: 'API'
},
{
href: '/',
label: '返回首页',
position: 'right'
},
{
href: 'https://aisuda.bce.baidu.com/amis/',
label: 'amis 文档',
position: 'right'
}
]
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme
},
zoom: {
background: {
light: 'rgb(50, 50, 50)',
dark: 'rgb(50, 50, 50)'
},
config: {
margin: 70
}
}
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',
editUrl: 'https://github.com/aisuda/aisuda-docs/edit/main/'
},
theme: {
customCss: require.resolve('./src/css/custom.css')
}
}
]
],
plugins: [
require.resolve('docusaurus-plugin-image-zoom'),
[
require.resolve('@cmfcmf/docusaurus-search-local'),
{
indexBlog: false,
indexDocs: true,
indexDocSidebarParentCategories: 2,
language: 'zh'
}
]
]
};