forked from home-assistant/developers.home-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
83 lines (83 loc) · 2.28 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
module.exports = {
title: 'Home Assistant Developer Docs',
tagline: 'All you need to start developing for Home Assistant',
url: 'https://developers.home-assistant.io',
baseUrl: '/',
favicon: 'img/favicon.png',
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
themeConfig: {
googleAnalytics: {
trackingID: 'UA-57927901-3',
},
navbar: {
title: 'Developer Docs',
logo: {
alt: 'Home Assistant',
src: 'img/logo-pretty.svg',
},
links: [
{to: 'docs/architecture_index', label: 'Architecture', position: 'left'},
{to: 'docs/frontend_index', label: 'Frontend', position: 'left'},
{to: 'docs/development_index', label: 'Backend', position: 'left'},
{to: 'docs/misc', label: 'Misc', position: 'left'},
{to: 'blog', label: 'Blog', position: 'left'},
],
},
footer: {
logo: {
alt: 'Home Assistant',
src: 'img/logo-white.svg',
href: 'https://www.home-assistant.io',
},
style: 'dark',
links: [
{
title: 'Social',
items: [
{
label: 'Blog',
to: 'blog',
},
{
label: 'GitHub',
href: 'https://github.com/home-assistant/developers.home-assistant',
},
{
label: 'Twitter',
href: 'https://twitter.com/hass_devs',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Home Assistant, Inc. Built with Docusaurus.`,
},
image: 'img/default-social.png',
algolia: {
apiKey: 'd0245452c36b10cec4b8b5bad04e06fc',
indexName: 'home-assistant-dev',
algoliaOptions: {}
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/home-assistant/developers.home-assistant/edit/master/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
blog: {
postsPerPage: 10,
feedOptions: {
type: 'all',
},
},
},
],
],
};