-
-
Notifications
You must be signed in to change notification settings - Fork 963
/
docusaurus.config.js
166 lines (166 loc) · 4.38 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
module.exports = {
title: "Home Assistant Developer Docs",
tagline: "All you need to start developing",
url: "https://developers.home-assistant.io",
baseUrl: "/",
favicon: "img/favicon.png",
organizationName: "home-assistant",
projectName: "developers.home-assistant",
themeConfig: {
navbar: {
title: "Developers",
logo: {
alt: "Home Assistant",
src: "img/logo.svg",
srcDark: "img/logo.svg",
},
items: [
{
label: "Home Assistant",
position: "left",
items: [
{
label: "Overview",
to: "docs/architecture_index",
},
{
label: "Core",
to: "docs/development_index",
},
{ to: "docs/frontend", label: "Frontend" },
{ to: "docs/supervisor", label: "Supervisor" },
{ to: "docs/add-ons", label: "Add-ons" },
{ to: "docs/operating-system", label: "Operating System" },
{ to: "docs/voice/overview", label: "Voice" },
{ to: "docs/translations", label: "Translations" },
],
},
{ to: "docs/misc", label: "Misc", position: "left" },
{ to: "blog", label: "Blog", position: "left" },
],
},
footer: {
logo: {
alt: "Home Assistant",
src: "img/logo-white.svg",
height: "30px",
href: "https://www.home-assistant.io",
},
style: "dark",
links: [
{
title: "More Home Assistant",
items: [
{
label: "Homepage",
href: "https://www.home-assistant.io",
},
{
label: "Data Science Portal",
href: "https://data.home-assistant.io",
},
{
label: "Alerts",
href: "https://alerts.home-assistant.io",
},
{
label: "System Status",
href: "https://status.home-assistant.io/",
},
],
},
{
title: "Social",
items: [
{
label: "Blog",
to: "blog",
},
{
label: "GitHub",
href: "https://github.com/home-assistant",
},
{
label: "Twitter",
href: "https://twitter.com/hass_devs",
},
{
label: "Discord chat",
href: "https://www.home-assistant.io/join-chat",
},
],
},
{
title: "Other",
items: [
{
label: "Privacy",
href: "https://www.home-assistant.io/privacy/",
},
{
label: "Security",
href: "https://www.home-assistant.io/security/",
},
],
},
{
title: "Thanks",
items: [
{
html: `
<a href="https://www.netlify.com" target="_blank" rel="noreferrer noopener" aria-label="Deploys by Netlify">
<img src="https://www.netlify.com/v3/img/components/netlify-color-accent.svg" alt="Deploys by Netlify" />
</a>
`,
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Home Assistant. Built with Docusaurus.`,
},
image: "img/default-social.png",
mermaid: {
theme: { light: "neutral", dark: "forest" },
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl:
"https://github.com/home-assistant/developers.home-assistant/edit/master/",
showLastUpdateTime: true,
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
blog: {
postsPerPage: 10,
feedOptions: {
type: "all",
},
},
googleAnalytics: {
trackingID: "UA-57927901-3",
},
},
],
],
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
indexDocs: true,
indexBlog: true,
highlightSearchTermsOnTargetPage: true,
},
],
],
markdown: {
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],
};