-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
92 lines (86 loc) · 2.82 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
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "2024: 独立开发的第一年,我的收获与成长",
favicon: "img/favicon.ico",
url: "https://indie2024.laike9m.com/",
baseUrl: "/",
projectName: "indie2024",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
i18n: {
defaultLocale: "zh-Hans",
locales: ["zh-Hans"],
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebar.js"),
routeBasePath: "/", // Makes docs the root
breadcrumbs: false, // Removes breadcrumbs for a cleaner book look
},
blog: false,
theme: {
customCss: "./src/css/custom.css",
},
},
],
],
themeConfig: {
navbar: {
title: "2024: 独立开发的第一年,我的收获与成长",
items: [], // Minimal navbar items
},
docs: {
sidebar: {
autoCollapseCategories: true, // Auto-collapse other categories
hideable: true,
},
},
footer: {
style: "dark",
links: [],
copyright: `Copyright © ${new Date().getFullYear()} <a href="https://laike9m.com">laike9m</a>`,
},
image: "https://indie2024.laike9m.com/img/ebook-cover.png", // 这将是你的默认社交媒体图片
metadata: [
// 基础 SEO
{
name: "description",
content:
"2024 年,我踏上了独立开发之旅。这短短一年让我有很多体悟,因此想以年终总结的形式记录一下。",
},
// Open Graph
{ property: "og:title", content: "2024: 独立开发的第一年,我的收获与成长" },
{
property: "og:description",
content:
"2024 年,我踏上了独立开发之旅。这短短一年让我有很多体悟,因此想以年终总结的形式记录一下。",
},
{ property: "og:type", content: "website" },
{
property: "og:image",
content: "https://indie2024.laike9m.com/img/ebook-cover.png",
},
// Twitter
{ name: "twitter:card", content: "summary_large_image" },
{ name: "twitter:title", content: "2024: 独立开发的第一年,我的收获与成长" },
{
name: "twitter:description",
content:
"2024 年,我踏上了独立开发之旅。这短短一年让我有很多体悟,因此想以年终总结的形式记录一下。",
},
{
name: "twitter:image",
content: "https://indie2024.laike9m.com/img/ebook-cover.png",
},
],
},
};
export default config;