-
Notifications
You must be signed in to change notification settings - Fork 128
/
docusaurus.config.js
106 lines (105 loc) · 3.45 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
103
104
105
106
const sidebars = require("./sidebars");
const metadata = require("./metadata");
module.exports = {
title: "Rancher文档",
tagline: "Run Kubernetes Everywhere",
baseUrl: "/",
url: "https://www.rancher.cn",
favicon: "img/favicon.ico",
themeConfig: {
algoliasearch: {
trackingID: "692a488c8d0d137240f1a940bde32441",
changefreq: "weekly",
priority: 0.5,
trailingSlash: false,
},
hideableSidebar: true,
prism: {
defaultLanguage: "bash",
},
baiduAnalytics: {
trackingID: "692a488c8d0d137240f1a940bde32441",
},
navbar: {
title: "Rancher",
logo: {
alt: "Rancher Logo",
src: "img/rancher-logo-cow-white.svg",
},
items: [
{
href: "https://docs.rancher.cn/",
label: "文档中心",
position: "left",
},
{
href: "https://www.rancher.cn/weixin/",
label: "微信",
position: "left",
},
{
href: "https://www.rancher.cn/",
label: "中国官网",
position: "right",
},
{
href: "https://forums.rancher.cn",
label: "中文论坛",
position: "right",
},
{
href:
"https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/",
label: "支持矩阵",
position: "right",
},
{
href: "https://www.rancher.cn/support/",
label: "技术支持",
position: "right",
},
{
href: "https://github.com/rancher/rancher",
label: "GitHub",
position: "right",
},
],
},
algolia: {
apiKey: "f790c2168867f49bb212aee8c224116d",
indexName: "rancher",
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} Rancher Labs, Inc. All Rights Reserved. 京ICP备2022035548号`,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl:
"https://github.com/cnrancher/docs-rancher2/edit/master/",
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
customFields: {
sidebars,
metadata,
stable: "版本说明 - v2.5.16",
baseCommit: "cd9ed7b74cc8111fecb05d2950c6948a83a6a595 - Jan 8, 2022",
k3sBaseCommit: "b7e435525e3b8efbd61a07565cedaad1aae34012 - Aug 29, 2022",
rke2Commit: "749c87a7da6482dec999df44f25578486158b21d - Aug 29, 2022",
rancherdesktopCommit:
"86cb51bfffd19cdad4bfb0a7ff65e3ae3701394b - Aug 29, 2022",
},
plugins: ["@docusaurus/plugin-baidu-analytics"],
};