-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathastro.config.mjs
More file actions
126 lines (126 loc) · 4.2 KB
/
Copy pathastro.config.mjs
File metadata and controls
126 lines (126 loc) · 4.2 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
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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import rehypeExternalLinks from 'rehype-external-links';
export default defineConfig({
site: 'https://espresense.com',
markdown: {
rehypePlugins: [
[rehypeExternalLinks, { target: '_blank', rel: ['noopener', 'noreferrer'] }],
],
},
redirects: {
'/beacons': '/devices',
'/beacons/android': '/android',
'/beacons/apple': '/apple',
'/beacons/other': '/other',
'/base-stations': '/nodes',
'/hardware': '/nodes',
'/install': '/firmware',
'/data-flow': '/troubleshooting/data-flow',
'/ids': '/troubleshooting/ids',
'/terminal': '/troubleshooting/terminal',
'/troubleshooting': '/troubleshooting/data-flow',
'/troubleshooting/rebooting': '/troubleshooting/reboot-loops',
'/integrations/home_assistant': '/integrations/home-assistant',
},
integrations: [
starlight({
title: 'ESPresense',
description: 'ESP32 based indoor positioning system',
logo: {
light: './src/assets/images/logo.svg',
dark: './src/assets/images/logo-dark.svg',
},
customCss: ['./src/styles/custom.css'],
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/ESPresense/ESPresense' },
{ icon: 'discord', label: 'Discord', href: 'https://discord.gg/jbqmn7V6n6' },
{ icon: 'rocket', label: 'Suggest Features', href: 'https://espresense.featurebase.app/' },
],
editLink: {
baseUrl: 'https://github.com/ESPresense/ESPresense.com/edit/main/',
},
head: [
{ tag: 'script', attrs: { src: 'https://analytics.ahrefs.com/analytics.js', 'data-key': '3gYSSnCtr/YAaiX2p0jWVQ', async: true } },
{ tag: 'script', attrs: { src: 'https://www.googletagmanager.com/gtag/js?id=G-5RPPLMZ514', async: true } },
{ tag: 'script', content: "window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-5RPPLMZ514',{anonymize_ip:true});" },
],
sidebar: [
{ label: 'Home', link: '/' },
{
label: 'Getting started',
items: [
{ slug: 'approach' },
{ slug: 'quick-start' },
{ slug: 'external-resources' },
],
},
{
label: 'Nodes',
items: [
{ slug: 'nodes', label: 'Overview' },
{ slug: 'firmware' },
{ slug: 'enclosures' },
],
},
{
label: 'Node Configuration',
items: [
{ slug: 'configuration/network' },
{ slug: 'configuration/settings' },
{ slug: 'configuration/hardware' },
{ slug: 'configuration/mqtt' },
{ slug: 'configuration/rest-api' },
],
},
{
label: 'Trackable Devices',
items: [
{ slug: 'devices', label: 'Overview' },
{ slug: 'android' },
{ slug: 'apple' },
{ slug: 'other' },
],
},
{
label: 'Companion',
items: [
{ slug: 'companion', label: 'Overview' },
{ slug: 'companion/installation' },
{ slug: 'companion/configuration' },
{ slug: 'companion/optimization' },
{ slug: 'companion/troubleshooting' },
{ slug: 'companion/faq' },
],
},
{
label: 'Integrations',
items: [
{ slug: 'integrations/home-assistant' },
{ slug: 'integrations/homebridge' },
{ slug: 'integrations/domoticz' },
],
},
{
label: 'Guides',
items: [
{ slug: 'guides/calibration' },
{ slug: 'guides/enrolling-devices' },
{ slug: 'guides/technical' },
],
},
{
label: 'Troubleshooting',
items: [
{ slug: 'troubleshooting/data-flow' },
{ slug: 'troubleshooting/ids' },
{ slug: 'troubleshooting/logs' },
{ slug: 'troubleshooting/reboot-loops' },
{ slug: 'troubleshooting/terminal' },
],
},
{ slug: 'credits' },
],
}),
],
});