This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
112 lines (99 loc) · 2.49 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
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
webpack: {
jsLoader: (isServer) => ({
loader: require.resolve('swc-loader'),
options: {
jsc: {
parser: {
syntax: 'typescript',
tsx: true,
},
target: 'es2017',
},
module: {
type: isServer ? 'commonjs' : 'es6',
},
},
}),
},
title: 'Black Dot',
favicon: 'img/favicon.ico',
url: 'https://black-dot-2024.github.io',
projectName: 'black-dot-wiki',
organizationName: 'Black-Dot-2024',
trailingSlash: false,
baseUrl: '/black-dot-wiki',
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'log',
onBrokenAnchors: 'log',
i18n: {
defaultLocale: 'es',
locales: ['es'],
},
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-mermaid'],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: './sidebars.js',
editUrl:
'https://github.com/Black-Dot-2024/black-dot-wiki/tree/main',
},
blog: false,
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/logo-bd.png',
navbar: {
hideOnScroll: true,
style: 'dark',
title: 'Black Dot',
logo: {
alt: 'Black Dot Logo',
src: 'img/svg-bd.svg',
},
items: [
{
href: 'https://github.com/Black-Dot-2024',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'light',
copyright: `Copyright © 2024 Black Dot. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
algolia: {
indexName: 'black-dot-2024io',
appId: '6KWYVW3922',
apiKey: '18b88590262a89cbb43440cd25c23c32',
debug: false,
contextualSearch: false,
},
}),
};
export default config;