-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
docusaurus.config.js
81 lines (81 loc) · 2.15 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
module.exports = {
title: "Home Assistant Data Science Portal",
tagline: "The one stop shop to explore the data of your home",
url: "https://data.home-assistant.io",
baseUrl: "/",
favicon: "img/brand/favicon.png",
organizationName: "home-assistant", // Usually your GitHub org/user name.
projectName: "data.home-assistant", // Usually your repo name.
themeConfig: {
navbar: {
title: "Data Science",
logo: {
alt: "Home Assistant",
src: "img/brand/logo.svg",
srcDark: "img/brand/logo.svg",
},
items: [
{ to: "/docs/data", label: "Docs", position: "left" },
{ to: "/docs/quick-start", label: "Quick Start", position: "left" },
// { to: "/blog", label: "Blog", position: "left" },
],
},
footer: {
logo: {
alt: "Home Assistant",
src: "img/brand/logo-white.svg",
height: "30px",
href: "https://www.home-assistant.io",
},
style: "dark",
links: [
{
title: "Social",
items: [
// {
// label: "Blog",
// to: "blog",
// },
{
label: "GitHub",
href: "https://github.com/home-assistant/data.home-assistant",
},
{
label: "Twitter",
href: "https://twitter.com/hass_devs",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Home Assistant. Built with Docusaurus.`,
},
image: "img/default-social.png",
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl:
"https://github.com/home-assistant/data.home-assistant/edit/master/",
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
indexDocs: true,
indexBlog: true,
highlightSearchTermsOnTargetPage: true,
},
],
],
};