-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.ts
95 lines (87 loc) · 2.29 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
import { themes as prismThemes } from 'prism-react-renderer';
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
const config: Config = {
title: 'Aleksey Nemiro\'s knowledge base',
favicon: 'img/favicon.ico',
url: 'https://kb.nemiro.net',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
organizationName: 'alekseynemiro',
projectName: 'knowledgebase',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
plugins: [
[
require.resolve('docusaurus-lunr-search'),
{
languages: ['en', 'ru'],
},
],
],
presets: [
[
'classic',
{
docs: {
path: './base',
sidebarPath: './sidebars.ts',
routeBasePath: '/',
// editUrl: 'https://github.com/alekseynemiro/knowledgebase/tree/master',
},
theme: {
customCss: './styles.css',
},
gtag: {
trackingID: 'G-G587X9CKF1',
anonymizeIP: true,
},
} satisfies Preset.Options,
],
],
themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'ANKB',
logo: {
alt: 'Aleksey Nemiro\'s knowledge base',
src: 'img/logo.svg',
},
items: [
{
href: 'https://github.com/alekseynemiro/knowledgebase',
label: 'GitHub',
position: 'right',
},
/* TODO: localization
{
type: 'localeDropdown',
position: 'left',
},*/
],
},
footer: {
style: 'dark',
copyright: `Created by human for humans and machines.<br />Copyright © 2016-2025 Aleksey Nemiro.<br /><small>Built with Docusaurus on: ${new Date().toISOString()}</small>`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: [
'docker',
'csharp',
'css',
'powershell',
'scss',
],
},
} satisfies Preset.ThemeConfig,
};
export default config;