-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocusaurus.config.js
147 lines (143 loc) · 4.6 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
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
require('dotenv').config();
require('dotenv-defaults').config();
const path = require("path");
module.exports = {
title: "Starwhale",
tagline: "An MLOps/LLMOps Platform",
url: process.env.URL,
baseUrl: process.env.BASE_URL,
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: process.env.ORG,
projectName: "starwhale",
i18n: {
defaultLocale: process.env.DEFAULT_LOCALE,
locales: ['en', 'zh'],
localeConfigs: {
en: {
label: 'English',
direction: 'ltr',
htmlLang: 'en-US',
calendar: 'gregory',
},
zh: {
label: '简体中文',
direction: 'ltr',
htmlLang: 'zh-CN',
calendar: 'gregory',
}
},
},
themeConfig: {
prism: {
theme: require("prism-react-renderer/themes/dracula"),
darkTheme: require("prism-react-renderer/themes/duotoneDark"),
additionalLanguages: ["ini"],
},
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: false,
},
zoomSelector: ".markdown :not(em) > img",
announcementBar: {
id: "supportus",
content:
'If you like <b>Starwhale</b>, <a target="_blank" rel="noopener noreferrer" href="https://github.com/star-whale/starwhale">give us a star on GitHub!</a> 🌺',
isCloseable: true,
},
navbar: {
style: "dark",
hideOnScroll: true,
title: " ",
logo: {
alt: "Starwhale",
src: "img/starwhale-white.png",
href: "/",
},
items: [
{
type: "docsVersionDropdown",
position: "right",
dropdownActiveClassDisabled: true,
},
{
to: "https://github.com/star-whale/starwhale",
position: "right",
className: "header-ico header-ico--github",
"aria-label": "GitHub repository",
label: "Github",
},
{
to: "https://starwhale.slack.com",
position: "right",
className: "header-ico header-ico--slack",
"aria-label": "Slack Channel",
label: "Slack",
},
{
to: "blog",
position: "right",
className: "header-ico header-ico--blog",
"aria-label": "Starwhale Blog",
label: "Blog",
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {
style: "light",
copyright: `Copyright © ${new Date().getFullYear()} Starwhale, Inc. All rights reserved. `,
links: [],
},
custom: {
footerSocials: [],
},
},
customFields: {
email: "[email protected]",
description:
"Starwhale is an MLOps/LLMOps platform to manage machine learning projects, models and datasets.",
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/star-whale/docs/tree/main",
versions: {
current: {
label: "WIP",
badge: true,
banner: "unreleased",
path: "/next",
}
}
},
blog: {
blogTitle: "Starwhale Blog",
postsPerPage: 'ALL',
blogSidebarTitle: 'All posts',
blogSidebarCount: 'ALL',
},
theme: {
customCss: require.resolve("./src/css/custom.scss"),
},
gtag: {
trackingID: "none",
anonymizeIP: true,
},
},
],
],
plugins: [
"docusaurus-plugin-sass",
path.resolve(__dirname, "src/zoom-plugin"),
],
};