-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.ts
118 lines (109 loc) · 2.74 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
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: 'Raya-Prime',
tagline: 'Простой и многофунциональный бот для разных задач и условий',
favicon: 'img/favicon.ico',
url: 'https://rayaprime.iwool.dev',
baseUrl: '/',
organizationName: 'imperailwool',
projectName: 'rayaprime-docs',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
plugins: [
[
require.resolve("docusaurus-lunr-search"),
{
languages: ['ru', 'en'],
enableHighlight: true
}
]
],
i18n: {
defaultLocale: 'ru',
locales: ['ru'], // TODO: en
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
},
blog: {
showReadingTime: true,
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'Raya-Prime',
logo: {
alt: 'Raya-Prime',
src: 'img/logo.svg',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docs',
position: 'left',
label: 'Документация',
},
//{to: '/blog', label: 'Блог', position: 'left'},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Документация',
items: [
{
label: 'Начать изучать',
to: '/docs/intro',
},
],
},
{
title: 'Разработчики',
items: [
{
label: 'imperialwool',
href: 'https://iwool.dev',
},
{
label: 'whoeevee',
href: 'https://github.com/whoeevee',
},
],
},
{
title: 'Ещё',
items: [
{
label: 'Блог',
to: '/blog',
},
{
label: 'Телеграм канал',
href: 'https://t.me/podvaljoey',
},
],
},
],
copyright: `Персонаж принадлежит Storytelling Team. Проект разрабатывается 2020-${new Date().getFullYear()}. Сделано с помощью Docusaurus.`,
},
prism: {
theme: prismThemes.vsLight,
darkTheme: prismThemes.vsDark,
},
} satisfies Preset.ThemeConfig,
};
export default config;