-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathastro.config.mjs
More file actions
321 lines (319 loc) · 12.2 KB
/
Copy pathastro.config.mjs
File metadata and controls
321 lines (319 loc) · 12.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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightBlog from 'starlight-blog';
import mdx from '@astrojs/mdx';
import { remarkAlert } from 'remark-github-blockquote-alert';
import { authors } from './src/authors.mjs';
const isProduction = process.env.CONTEXT === 'production' || !process.env.CONTEXT;
// https://astro.build/config
export default defineConfig({
site: 'https://www.music-assistant.io',
markdown: {
remarkPlugins: [remarkAlert],
},
integrations: [
starlight({
title: 'Music Assistant',
titleDelimiter: '-',
editLink: isProduction ? {
baseUrl: 'https://github.com/music-assistant/music-assistant.io/edit/main/',
} : {},
logo: {
light: './src/assets/ma-logo--dark.svg',
dark: './src/assets/ma-logo--light.svg',
replacesTitle: true,
},
favicon: '/favicon.svg',
pagination: false,
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/music-assistant',
},
{
icon: 'discord',
label: 'Discord',
href: 'https://discord.gg/kaVm8hGpne',
},
],
head: [
{
tag: 'meta',
attrs: {
name: 'robots',
content: (isProduction ? 'index, follow' : 'noindex, nofollow')
}
},
{
tag: 'script',
attrs: { type: 'application/ld+json' },
content: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'SoftwareApplication',
name: 'Music Assistant',
applicationCategory: 'MultimediaApplication',
operatingSystem: 'Linux',
description: 'Music library manager for your offline and online music sources',
url: 'https://www.music-assistant.io',
author: {
'@type': 'Organization',
name: 'Open Home Foundation',
url: 'https://www.openhomefoundation.org/',
},
}),
},
{
tag: "link",
attrs: {
rel: "icon",
href: "/favicon.svg",
},
},
{
tag: "script",
content: `document.addEventListener('keydown', function(e) {
if (e.key === '/' && !['INPUT', 'TEXTAREA', 'SELECT'].includes(document.activeElement?.tagName)) {
e.preventDefault();
document.querySelector('button[data-open-modal]')?.click();
}
});`,
},
{
tag: "meta",
attrs: {
property: "og:image",
content: "https://www.music-assistant.io/assets/banner.png",
},
},
{
tag: "meta",
attrs: {
name: "twitter:image",
content: "https://www.music-assistant.io/assets/banner.png",
},
},
{
tag: "meta",
attrs: {
name: "twitter:card",
content: "summary_large_image",
},
},
],
customCss: ['./src/styles/custom.css'],
plugins: [
starlightBlog({
title: 'Blog',
prefix: 'blog',
postCount: 10,
recentPostCount: 5,
authors,
}),
],
sidebar: [
{ label: 'Home', slug: 'index' },
{
label: 'Server Install and Configure',
collapsed: true,
items: [
{ label: 'Installation', slug: 'installation' },
{ label: 'First Run (Authentication)', slug: 'first-run' },
],
},
{
label: 'Settings',
collapsed: true,
items: [
{ label: 'Music Sources', slug: 'settings/music-provider-settings' },
{ label: 'Player Providers', slug: 'settings/player-provider' },
{ label: 'Metadata Providers', slug: 'metadata' },
{ label: 'Players', slug: 'settings/individual-player' },
{ label: 'Profile', slug: 'settings/profile' },
{ label: 'User Interface', slug: 'settings/user-interface' },
{ label: 'User Management', slug: 'settings/user-management' },
{ label: 'Remote Access', slug: 'settings/remote-access' },
{ label: 'System Settings', slug: 'settings/core' },
{ label: 'About', slug: 'settings/about' },
],
},
{
label: 'Home Assistant Integration',
collapsed: true,
items: [
{ label: 'Overview', slug: 'integration' },
{ label: 'Installation', slug: 'integration/installation' },
{ label: 'Announcements', slug: 'integration/announcements' },
{ label: 'Play Media Action', slug: 'faq/massplaymedia' },
{ label: 'Play Announcement Action', slug: 'faq/massannounce' },
{ label: 'Search Action', slug: 'faq/masssearch' },
{ label: 'Get Library Action', slug: 'faq/get_library' },
{ label: 'Get Queue Action', slug: 'faq/get_queue' },
{ label: 'Transfer Queue Action', slug: 'faq/masstransfer' },
{ label: 'Voice Control', slug: 'integration/voice' },
],
},
{
label: 'Usage',
collapsed: true,
items: [
{ label: 'General', slug: 'usage' },
{ label: 'UI', slug: 'ui' },
{ label: 'Audio Pipeline', slug: 'audiopipeline' },
{ label: 'Groups', slug: 'faq/groups' },
{ label: 'Genres', slug: 'genres' },
{ label: 'DSP Parametric EQ', slug: 'dsp/parametriceq' },
{ label: 'DSP Tone Controls', slug: 'dsp/tonecontrols' },
{ label: 'How Do I...', slug: 'faq/how-to' },
{ label: 'I Want To Stream To', slug: 'faq/stream-to' },
{ label: 'Technical Info', slug: 'faq/tech-info' },
{ label: 'Troubleshooting', slug: 'faq/troubleshooting' },
],
},
{
label: 'Music Sources',
collapsed: true,
items: [
{ label: 'Overview', slug: 'music-providers' },
{ label: 'Apple Music', slug: 'music-providers/apple-music' },
{ label: 'ARD Audiothek', slug: 'music-providers/ard-audiothek' },
{ label: 'Audible', slug: 'music-providers/audible' },
{ label: 'Audiobookshelf', slug: 'music-providers/audiobookshelf' },
{ label: 'Bandcamp', slug: 'music-providers/bandcamp' },
{ label: 'BBC Sounds', slug: 'music-providers/bbc-sounds' },
{ label: 'Builtin', slug: 'music-providers/builtin' },
{ label: 'Deezer', slug: 'music-providers/deezer' },
{ label: 'DI.fm Network', slug: 'music-providers/digitally-incorporated' },
{ label: 'Emby', slug: 'music-providers/emby' },
{ label: 'gPodder', slug: 'music-providers/gpodder' },
{ label: 'iBroadcast', slug: 'music-providers/ibroadcast' },
{ label: 'Internet Archive', slug: 'music-providers/internet-archive' },
{ label: 'iTunes Podcast Search', slug: 'music-providers/itunes-podcast' },
{ label: 'Jellyfin', slug: 'music-providers/jellyfin' },
{ label: 'KION Music', slug: 'music-providers/kion-music' },
{ label: 'Local Files', slug: 'music-providers/filesystem' },
{ label: 'Mother Earth Radio', slug: 'music-providers/motherearthradio' },
{ label: 'MusicMe', slug: 'music-providers/musicme' },
{ label: 'NetEase Cloud Music', slug: 'music-providers/netease-cloud-music' },
{ label: 'Nico Nico Video', slug: 'music-providers/niconico' },
{ label: 'Nugs.net', slug: 'music-providers/nugs' },
{ label: 'NTS Radio', slug: 'music-providers/nts' },
{ label: 'ORF Radiothek', slug: 'music-providers/radiothek' },
{ label: 'Pandora', slug: 'music-providers/pandora' },
{ label: 'Phish.in', slug: 'music-providers/phishin' },
{ label: 'Plex', slug: 'music-providers/plex' },
{ label: 'Podcast Index', slug: 'music-providers/podcast-index' },
{ label: 'Podcast RSS Feed', slug: 'music-providers/podcastfeed' },
{ label: 'QQ Music', slug: 'music-providers/qqmusic' },
{ label: 'Qobuz', slug: 'music-providers/qobuz' },
{ label: 'Radio Browser', slug: 'music-providers/radio-browser' },
{ label: 'Radio Paradise', slug: 'music-providers/radio-paradise' },
{ label: 'SiriusXM', slug: 'music-providers/siriusxm' },
{ label: 'SomaFM Radio', slug: 'music-providers/somafm-radio' },
{ label: 'SoundCloud', slug: 'music-providers/soundcloud' },
{ label: 'Spotify', slug: 'music-providers/spotify' },
{ label: 'Subsonic', slug: 'music-providers/subsonic' },
{ label: 'Tidal', slug: 'music-providers/tidal' },
{ label: 'TuneIn', slug: 'music-providers/tunein' },
{ label: 'Yandex Music', slug: 'music-providers/yandex-music' },
{ label: 'YouSee Musik', slug: 'music-providers/yousee-musik' },
{ label: 'YouTube Music', slug: 'music-providers/youtube-music' },
{ label: 'Zvuk Music', slug: 'music-providers/zvuk' },
],
},
{
label: 'Player Providers',
collapsed: true,
items: [
{ label: 'Overview', slug: 'player-support' },
{ label: 'AirPlay', slug: 'player-support/airplay' },
{ label: 'Alexa', slug: 'player-support/alexa' },
{ label: 'Bluesound', slug: 'player-support/bluesound' },
{ label: 'Dashie Kiosk', slug: 'player-support/dashie-kiosk' },
{ label: 'DLNA', slug: 'player-support/dlna' },
{ label: 'Fully Kiosk', slug: 'player-support/fully-kiosk' },
{ label: 'Google Cast', slug: 'player-support/google-cast' },
{ label: 'HEOS', slug: 'player-support/heos' },
{ label: 'Home Assistant', slug: 'player-support/ha' },
{ label: 'MSX Bridge', slug: 'player-support/msx-bridge' },
{ label: 'Music Player Daemon (MPD)', slug: 'player-support/mpd' },
{ label: 'MusicCast', slug: 'player-support/musiccast' },
{ label: 'Roku Media Assistant', slug: 'player-support/roku' },
{ label: 'Samsung WAM', slug: 'player-support/samsung-wam' },
{ label: 'Sendspin', slug: 'player-support/sendspin' },
{ label: 'Snapcast', slug: 'player-support/snapcast' },
{ label: 'Sonos', slug: 'player-support/sonos' },
{ label: 'Squeezelite', slug: 'player-support/squeezelite' },
{ label: 'WiiM', slug: 'player-support/wiim' },
],
},
{
label: 'Metadata Providers',
collapsed: true,
items: [
{ label: 'Overview', slug: 'metadata' },
{ label: 'Artwork', slug: 'metadata/artwork' },
{ label: 'Lyrics', slug: 'metadata/lyrics' },
{ label: 'Media Items', slug: 'metadata/media-items' },
{ label: 'LastFM Recommendations', slug: 'metadata-providers/lastfm-recommendations' },
],
},
{
label: 'Plugins',
collapsed: true,
items: [
{ label: 'AirPlay Receiver', slug: 'plugins/airplay-receiver' },
{ label: 'Ariacast Receiver', slug: 'plugins/ariacast-receiver' },
{ label: 'FastMCP Server', slug: 'plugins/fastmcp-server' },
{ label: 'Home Assistant', slug: 'ha-plugin' },
{ label: 'Hue Entertainment', slug: 'plugins/hue-entertainment' },
{ label: 'LastFM Scrobbler', slug: 'plugins/lastfm_scrobble' },
{ label: 'Listenbrainz Scrobbler', slug: 'plugins/listenbrainz_scrobble' },
{ label: 'Party', slug: 'plugins/party' },
{ label: 'Plex Connect', slug: 'plugins/plex-connect' },
{ label: 'Smart Playlist', slug: 'plugins/smart_playlist' },
{ label: 'Sonic Similarity', slug: 'plugins/sonic-similarity' },
{ label: 'Spotify Connect', slug: 'plugins/spotify-connect' },
{ label: 'Subsonic Scrobbler', slug: 'plugins/subsonic_scrobble' },
{ label: 'VBAN Receiver', slug: 'plugins/vban-receiver' },
{ label: 'Yandex Music Connect (Ynison)', slug: 'plugins/yandex-ynison' },
],
},
{
label: 'Audio Analysis Providers',
collapsed: true,
items: [
{ label: 'AcoustID Lookup', slug: 'audio-analysis/acoustid' },
{ label: 'Loudness Analysis', slug: 'audio-analysis/loudness-analysis' },
{ label: 'Smart Fades', slug: 'audio-analysis/smart-fades' },
{ label: 'Sonic Analysis', slug: 'audio-analysis/sonic-analysis' },
],
},
{ label: 'Desktop Companion App', slug: 'companion-app' },
{ label: 'Mobile Devices', slug: 'mobile' },
{ label: 'API', slug: 'api' },
{ label: 'Community Extensions', slug: 'community-extensions' },
{ label: 'Support', slug: 'support' },
{
label: 'I Want to Help / Donate',
collapsed: true,
items: [
{ label: 'Overview', slug: 'help' },
{ label: 'Translations', slug: 'help/lokalise' },
],
},
{ label: 'Release Cycle', slug: 'release' },
{ label: 'Blog', link: '/blog/' },
],
components: {
Head: './src/components/Head.astro',
PageTitle: './src/components/PageTitle.astro',
Footer: './src/components/Footer.astro',
ThemeProvider: './src/components/ThemeProvider.astro',
ThemeSelect: './src/components/ThemeSelect.astro',
}
}),
mdx(),
],
});