forked from hanabi/hanabi.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
92 lines (90 loc) · 2.21 KB
/
docusaurus.config.js
File metadata and controls
92 lines (90 loc) · 2.21 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
const path = require("path");
module.exports = {
title: "The Hyphen-ated Conventions",
url: "https://hanabi.github.io",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "hanabi",
projectName: "hanabi.github.io",
themeConfig: {
// Vanilla components
navbar: {
title: "Hyphen-ated Conventions",
logo: {
alt: "My Site Logo",
src: "img/hyphenated.png",
},
items: [
{
to: "docs/beginner",
activeBasePath: "docs",
label: "Beginner",
position: "left",
},
{
to: "docs/learning-path",
activeBasePath: "docs",
label: "Learning Path",
position: "left",
},
{
to: "docs/reference",
activeBasePath: "docs",
label: "Reference",
position: "left",
},
{
to: "docs/variant-specific",
activeBasePath: "docs",
label: "Variant-Specific",
position: "left",
},
{
href: "https://github.com/hanabi/hanabi.github.io/",
label: "Repo",
position: "right",
},
{
href: "https://github.com/hanabi/hanabi.github.io/issues",
label: "Proposals",
position: "right",
},
],
},
// Extra settings
algolia: {
apiKey: "d78c09bd651631ef68e85a10a605d1e8",
indexName: "hanabi-conventions",
contextualSearch: false, // Only useful for versioned sites, e.g. docs for v1, v2
},
colorMode: {
defaultMode: "dark",
},
sidebarCollapsible: true,
hideableSidebar: true,
},
plugins: [path.resolve(__dirname, "image-generator")],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/hanabi/hanabi.github.io/edit/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
scripts: [
{
src: "https://kit.fontawesome.com/1932a73877.js",
crossorigin: "anonymous",
},
"/js/hotkey.js",
],
};