-
Notifications
You must be signed in to change notification settings - Fork 12
/
docusaurus.config.js
121 lines (121 loc) · 3.26 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
const math = require('remark-math');
const katex = require('rehype-katex');
module.exports = {
title: 'Деливери менеджер',
tagline: 'Кто это, задачи, обязанности, как им стать, карта развития',
url: 'https://tinkoff.github.io',
baseUrl: '/dm-knowledgebase/',
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'Tinkoff', // Usually your GitHub org/user name.
projectName: 'dm-knowledgebase', // Usually your repo name.
trailingSlash: false,
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
themeConfig: {
mermaid: {
theme: { light: 'base', dark: 'dark' },
options: {
flowchart: {
curve: 'monotoneX',
},
themeVariables: {
'primaryColor': '#E6E9F6',
'primaryTextColor': '#000000',
'primaryBorderColor': '#E6E9F6',
'lineColor': '#5E73E1'
}
}
},
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 4,
},
docs: {
sidebar: {
hideable: true,
},
},
navbar: {
title: 'DM Knowledge Base',
logo: {
alt: 'База знаний профессии Деливери менеджер',
src: 'img/logo.svg',
},
items: [{
type: 'doc',
docId: 'profession/about',
position: 'left',
label: 'Документация',
},
{ to: 'blog', label: 'Блог', position: 'left' },
{
type: 'docsVersionDropdown',
position: 'right',
dropdownActiveClassDisabled: true,
},
{
href: 'https://github.com/Tinkoff/dm-knowledgebase',
label: 'Репозиторий',
position: 'right',
},
],
},
footer: {
style: 'light',
copyright: `© 2006-${new Date().getFullYear()} АО «Тинькофф Банк»`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
lastVersion: 'current',
versions: {
current: {
label: '⚡ 1.0.0',
//banner: 'unreleased',
},
},
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/Tinkoff/dm-knowledgebase/edit/main/',
remarkPlugins: [math],
rehypePlugins: [katex],
showLastUpdateAuthor: true,
},
gtag: {
trackingID: 'G-CNJ52NL21B',
anonymizeIP: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
stylesheets: [{
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
type: 'text/css',
integrity: 'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
crossorigin: 'anonymous',
}, ],
plugins: [
[
require.resolve('docusaurus-lunr-search'),
{
languages: ['ru', 'en'],
},
],
],
};