-
Notifications
You must be signed in to change notification settings - Fork 146
/
docusaurus.config.ts
123 lines (109 loc) · 2.75 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
119
120
121
122
123
import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
import path from "node:path";
import url from "node:url";
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
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",
onBrokenMarkdownLinks: "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.
searchParameters: {},
},
colorMode: {
defaultMode: "dark",
},
} satisfies Preset.ThemeConfig,
// -------------------------
// Added fields from vanilla
// -------------------------
plugins: ["./image-generator/index.ts"],
scripts: [
{
src: "https://kit.fontawesome.com/1932a73877.js",
crossorigin: "anonymous",
},
"/js/hotkey.js",
],
};
export default config;