-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdocusaurus.config.ts
142 lines (137 loc) · 3.97 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
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: 'Legacy Launcher Wiki',
tagline: 'Документация Legacy Launcher',
favicon: 'img/favicon.ico',
url: 'https://docs.llaun.ch',
baseUrl: '/',
organizationName: 'LegacyLauncher',
projectName: 'docs',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
trailingSlash: false,
i18n: {
defaultLocale: 'ru',
locales: ['en', 'ru'],
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
editUrl: (params: { locale: string; docPath: string; }) => {
const root = `https://github.com/LegacyLauncher/docs/edit/main`;
const { locale, docPath } = params;
return locale === 'ru' ?
`${root}/docs/${docPath}`
: `${root}/i18n/${locale}/docusaurus-plugin-content-docs/current/${docPath}`;
},
},
theme: {
customCss: './src/css/custom.css',
},
blog: false,
},
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Legacy Launcher Wiki',
logo: {
alt: 'Legacy Launcher logo',
src: 'img/logo.svg',
},
items: [
{
type: 'localeDropdown',
position: 'right',
},
{
'aria-label': 'GitHub',
'className': 'navbar--github-link',
'href': 'https://github.com/LegacyLauncher/docs',
'position': 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Ресурсы',
items: [
{
label: 'Наш сайт',
href: 'https://llaun.ch',
},
{
label: 'Исходные коды Вики',
href: 'https://github.com/LegacyLauncher/docs/',
},
],
},
{
title: 'Сообщество',
items: [
{
label: 'Группа ВК',
href: 'https://llaun.ch/vk',
},
{
label: 'Наш Discord',
href: 'https://llaun.ch/discord',
},
],
},
{
title: 'Партнеры',
items: [
{
label: 'Система скинов Ely.by',
href: 'https://ely.by',
},
],
},
],
copyright: '<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/">Text is available under the <a href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg"></a><br/>Additional terms may apply.</p>',
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
'bash',
'log',
'properties',
'json',
'ini',
'batch',
],
},
zoom: {
selector: '.markdown :not(em) > img',
config: {
container: {
top: 72,
left: 0,
right: 0,
bottom: 16,
},
}
},
} satisfies Preset.ThemeConfig,
plugins: [
[
'docusaurus-plugin-yandex-metrica',
{
counterID: '96541553',
}
],
'docusaurus-plugin-image-zoom',
],
};
export default config;