-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
55 lines (53 loc) · 1.76 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
55 lines (53 loc) · 1.76 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
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'Folo 源码拆解',
tagline: '从信息流产品到跨端 Monorepo 的工程解剖',
favicon: 'img/favicon.svg',
url: 'https://hanqing.github.io',
baseUrl: '/folo-dev-notes/',
organizationName: 'Hanqing',
projectName: 'folo-dev-notes',
onBrokenLinks: 'throw',
i18n: {defaultLocale: 'zh-CN', locales: ['zh-CN']},
markdown: {mermaid: true},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
showLastUpdateTime: false,
remarkPlugins: [],
},
blog: false,
theme: {customCss: './src/css/custom.css'},
} satisfies Preset.Options,
],
],
themes: ['@docusaurus/theme-mermaid'],
themeConfig: {
navbar: {
title: 'Folo 源码拆解',
logo: {alt: 'Folo', src: 'img/favicon.svg'},
items: [
{type: 'docSidebar', sidebarId: 'tutorialSidebar', position: 'left', label: '阅读目录'},
{href: 'https://github.com/RSSNext/Folo', label: 'Folo 源码', position: 'right'},
{href: 'https://github.com/Hanqing/folo-dev-notes', label: 'GitHub', position: 'right'},
],
},
prism: {
additionalLanguages: ['bash', 'json', 'typescript', 'tsx', 'yaml', 'sql'],
},
mermaid: {theme: {light: 'neutral', dark: 'dark'}},
footer: {
style: 'dark',
links: [
{title: '源码', items: [{label: 'RSSNext/Folo', href: 'https://github.com/RSSNext/Folo'}]},
{title: '文档', items: [{label: '阅读指南', to: '/docs/'}]},
],
copyright: `Folo 源码拆解 · ${new Date().getFullYear()}`,
},
} satisfies Preset.ThemeConfig,
};
export default config;