-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
136 lines (120 loc) · 3.04 KB
/
docusaurus.config.ts
File metadata and controls
136 lines (120 loc) · 3.04 KB
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
import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
const config: Config = {
title: "H-Group Conventions",
tagline: undefined,
favicon: "img/favicon.ico",
url: "https://hanabi.github.io",
baseUrl: "/",
organizationName: "hanabi",
projectName: "hanabi.github.io",
onBrokenAnchors: "throw",
onBrokenLinks: "throw",
onDuplicateRoutes: "throw",
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
routeBasePath: "/", // Serve the docs at the site's root.
sidebarPath: "./sidebars.ts",
editUrl: "https://github.com/hanabi/hanabi.github.io/edit/main/",
},
theme: {
customCss: "./src/css/custom.css",
},
} satisfies Preset.Options,
],
],
themeConfig: {
navbar: {
title: "H-Group Conventions",
logo: {
alt: "H-Group Logo",
src: "img/logo.png",
},
items: [
{
to: "beginner",
activeBasePath: "docs",
label: "Beginner",
position: "left",
},
{
to: "learning-path",
activeBasePath: "docs",
label: "Learning Path",
position: "left",
},
{
to: "reference",
activeBasePath: "docs",
label: "Reference",
position: "left",
},
{
to: "variant-specific",
activeBasePath: "docs",
label: "Variant-Specific",
position: "left",
},
{
href: "https://github.com/hanabi/hanabi.github.io/",
className: "header-github-link",
position: "right",
},
{
href: "https://discord.gg/FADvkJp",
className: "header-discord-link",
position: "right",
},
],
},
docs: {
sidebar: {
hideable: true,
},
},
algolia: {
appId: "24AGYEOQ7J", // cspell:disable-line
apiKey: "7e647fd7de142915da9f459b345dfca4",
indexName: "hanabi-conventions",
contextualSearch: false, // Enabled by default; only useful for versioned sites.
},
colorMode: {
defaultMode: "dark",
},
} satisfies Preset.ThemeConfig,
// -------------------------
// Added fields from vanilla
// -------------------------
plugins: ["./plugins/hanabiDocusaurusPlugin/index.ts"],
scripts: [
// Font Awesome is used for the icons on the landing page.
// https://fontawesome.com/kits/1932a73877/setup
{
src: "https://kit.fontawesome.com/1932a73877.js",
crossorigin: "anonymous",
},
// We provide some keyboard shortcuts for easier navigation.
"/js/hotkey.js",
],
future: {
experimental_faster: true,
v4: true,
},
markdown: {
hooks: {
onBrokenMarkdownLinks: "throw",
},
// Enable Mermaid diagrams:
// https://docusaurus.io/docs/markdown-features/diagrams
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],
};
export default config;