-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
152 lines (144 loc) · 3.51 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
152 lines (144 loc) · 3.51 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
import {themes as prismThemes} from 'prism-react-renderer';
const config = {
title: 'Multica 0.4.10 源码深度拆解',
tagline: '从协作入口到 Agent Runtime,沿真实源码还原一项任务的完整旅程',
url: 'https://hanqing.github.io',
baseUrl: '/multica-notes/',
organizationName: 'Hanqing',
projectName: 'multica-notes',
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenAnchors: 'throw',
favicon: 'img/favicon.svg',
future: {
v4: true,
},
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
},
markdown: {
format: 'md',
mermaid: true,
hooks: {
onBrokenMarkdownLinks: 'throw',
onBrokenMarkdownImages: 'throw',
},
},
themes: ['@docusaurus/theme-mermaid'],
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.js',
showLastUpdateAuthor: false,
showLastUpdateTime: false,
editUrl: 'https://github.com/Hanqing/multica-notes/edit/main/',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
sitemap: {
changefreq: 'weekly',
priority: 0.7,
},
},
],
],
themeConfig: {
metadata: [
{
name: 'keywords',
content: 'Multica, Agent, Daemon, Runtime, Docusaurus, 源码分析, 架构拆解',
},
],
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
title: 'Multica Notes',
logo: {
alt: 'Multica Notes',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: '完整拆解',
},
{
to: '/docs/附录A-源码导航与阅读路线',
label: '源码导航',
position: 'left',
},
{
href: 'https://github.com/multica-ai/multica/tree/v0.4.10',
label: 'Multica 源码',
position: 'right',
},
{
href: 'https://github.com/Hanqing/multica-notes',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: '阅读',
items: [
{
label: '从第一章开始',
to: '/docs/第01章-开篇-从Agent工具到托管Agent操作系统',
},
{
label: '源码导航',
to: '/docs/附录A-源码导航与阅读路线',
},
{
label: '术语与状态机',
to: '/docs/附录B-术语状态机与不变量速查',
},
],
},
{
title: '源码',
items: [
{
label: 'Multica v0.4.10',
href: 'https://github.com/multica-ai/multica/tree/v0.4.10',
},
{
label: '本站仓库',
href: 'https://github.com/Hanqing/multica-notes',
},
],
},
],
copyright: 'Multica 0.4.10 源码研究笔记 · 非官方文档',
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['bash', 'go', 'json', 'sql', 'toml'],
},
mermaid: {
theme: {
light: 'neutral',
dark: 'dark',
},
options: {
maxTextSize: 100000,
},
},
},
};
export default config;