-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocusaurus.config.ts
159 lines (152 loc) · 3.54 KB
/
docusaurus.config.ts
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
153
154
155
156
157
158
159
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: '0mods site',
tagline: 'The website for 0mods\'s project\'s and not only :)',
favicon: 'img/favicon.ico',
url: 'https://0mods.team',
baseUrl: '/',
organizationName: '0mods',
projectName: '0mods_site',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'ignore',
onBrokenAnchors: 'warn',
plugins: ['@docusaurus/theme-mermaid', "@docusaurus/theme-live-codeblock"],
markdown: {
mermaid: true
},
i18n: {
defaultLocale: 'en-US',
locales: ['en-US', 'ru-RU'],
path: 'i18n',
localeConfigs: {
'en-US': {
label: 'English',
direction: 'ltr',
htmlLang: 'en-US',
calendar: 'gregory',
path: 'en',
},
'ru-RU': {
label: 'Русский',
direction: 'ltr',
htmlLang: 'ru-RU',
calendar: 'gregory',
path: 'ru',
},
},
},
presets: [
[
'classic',
{
docs: {
routeBasePath: '/docs',
sidebarPath: './sidebars.ts',
editUrl:
'https://github.com/0mods/docsweb/edit/main/',
},
blog: {
showReadingTime: true,
},
theme: {
customCss: './src/css/suite.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
algolia: {
appId: 'S11JTLUN4G',
apiKey: 'f5ae02919fe4c00ba622ff8d88e9ce08',
indexName: '0mods',
contextualSearch: false,
},
liveCodeBlock: {
playgroundPosition: 'bottom',
},
navbar: {
hideOnScroll: true,
title: '0mods',
items: [
{
to: '/docs',
label: 'Docs',
position: 'left'
},
{
to: '/blog',
label: 'Blog',
position: 'left'
},
{
to: 'http://maven.0mods.team/',
label: 'Maven',
position: 'left'
},
{
to: 'https://kotlinlang.org/docs/basic-syntax.html',
label: 'KotlinScript',
position: 'left'
},
{
href: 'https://github.com/0mods/docsweb',
position: 'right',
className: 'header-github-link',
"aria-label": "GitHub Repository",
},
{
type: 'localeDropdown',
position: 'right'
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'HollowEngine',
to: '/docs/hollowengine',
},
],
},
{
title: 'Community',
items: [
{
label: 'HollowEngine Discord',
href: 'https://discord.gg/qKpPhkwGCY'
},
{
label: '0mods Discord',
href: 'https://discord.gg/YCj7JBNVAt',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/0mods/docsweb',
},
{
label: 'Blog',
href: '/blog'
},
],
},
],
copyright: `Copyright © 2023-${new Date().getFullYear()} HollowHorizon and AlgorithmLX.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;