forked from CachyOS/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
610 lines (606 loc) · 20.5 KB
/
Copy pathastro.config.mjs
File metadata and controls
610 lines (606 loc) · 20.5 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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import react from '@astrojs/react';
import tailwindcss from '@tailwindcss/vite';
import starlightKbd from 'starlight-kbd';
import lunaria from '@lunariajs/starlight';
import lunariaConfig from './lunaria.config.json';
const locales = {
root: lunariaConfig.defaultLocale,
...lunariaConfig.locales.reduce((acc, locale) => {
// @ts-expect-error Can't add types for accumulator
acc[locale.lang] = {
label: locale.label,
lang: locale.lang,
};
return acc;
}, {}),
};
const routeMiddleware = ['./src/middleware/ignore-fallback.ts'];
const plugins = [
starlightKbd({
globalPicker: false,
types: [{ id: 'linux', label: 'Linux', default: true }],
}),
];
if (import.meta.env.PROD) {
routeMiddleware.push('./src/middleware/outdated.ts');
plugins.push(
lunaria({
route: '/localization',
})
);
}
const site = 'https://wiki.cachyos.org/';
// https://astro.build/config
export default defineConfig({
site,
vite: {
plugins: [tailwindcss()],
},
integrations: [
react(),
starlight({
locales,
plugins,
routeMiddleware,
lastUpdated: true,
customCss: ['./src/tailwind.css'],
title: 'CachyOS',
logo: {
src: '/src/assets/logo.svg',
},
editLink: {
baseUrl: 'https://github.com/cachyos/wiki/edit/next/',
},
expressiveCode: {
themes: ['ayu-dark', 'light-plus'],
},
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/cachyos',
},
{
icon: 'twitter',
label: 'Twitter',
href: 'https://twitter.com/cachyos',
},
{
icon: 'discord',
label: 'Discord',
href: 'https://discord.gg/cachyos-862292009423470592',
},
{
icon: 'mastodon',
label: 'Mastodon',
href: 'https://fosstodon.org/@CachyOS',
},
],
head: [
{
tag: 'meta',
attrs: {
property: 'og:image',
content: site + 'og.jpg?v=1',
},
},
{
tag: 'meta',
attrs: {
property: 'twitter:image',
content: site + 'og.jpg?v=1',
},
},
],
sidebar: [
{
label: 'Getting Started',
translations: {
cs: 'Začínáme',
de: 'Erste Schritte',
es: 'Empezando',
et: 'Alustamine',
id: 'Memulai',
pl: 'Zaczynamy',
ru: 'Начало работы',
sk: 'Začíname',
},
items: [
{
label: 'Why CachyOS?',
translations: {
cs: 'Proč CachyOS?',
de: 'Warum CachyOS?',
es: '¿Por qué CachyOS?',
et: 'Miks CachyOS?',
id: 'Mengapa CachyOS?',
pl: 'Dlaczego CachyOS?',
ru: 'Почему CachyOS?',
sk: 'Prečo CachyOS?',
},
link: 'cachyos_basic/why_cachyos',
},
{
label: 'Downloading CachyOS',
translations: {
cs: 'Stažení CachyOS',
de: 'CachyOS herunterladen',
es: 'Descargando CachyOS',
et: 'CachyOS allalaadimine',
id: 'Mengunduh CachyOS',
pl: 'Pobieranie CachyOS',
ru: 'Загрузка CachyOS',
sk: 'Sťahovanie CachyOS',
},
link: 'cachyos_basic/download',
},
{
label: 'ISO Changelogs',
autogenerate: { directory: 'cachyos_basic/changelogs' },
},
{
label: 'FAQ',
translations: {
cs: 'Často kladené otázky',
de: 'Häufig gestellte Fragen',
es: 'Preguntas frecuentes',
pl: 'Najczęściej zadawane pytania',
ru: 'Часто задаваемые вопросы',
sk: 'Najčastejšie kladené otázky',
},
link: 'cachyos_basic/faq',
},
],
},
{
label: 'Installation',
translations: {
cs: 'Instalace',
de: 'Installation',
es: 'Instalación',
pl: 'Instalacja',
ru: 'Установка',
sk: 'Inštalácia',
},
items: [
{
label: 'Requirements & Preinstall Setup',
translations: {
cs: 'Požadavky CachyOS a předinstalační příprava',
de: 'Anforderungen und Vorinstallationsvorbereitung',
es: 'Requisitos y preparación previa a la instalación',
pl: 'Wymagania i przygotowanie do instalacji',
ru: 'Требования и подготовка к установке',
sk: 'Požiadavky CachyOS a inštalačné médium',
},
link: 'installation/installation_prepare',
},
{
label: 'Boot Managers',
translations: {
cs: 'Správci zavádění',
de: 'Boot-Manager',
es: 'Gestores de arranque',
pl: 'Boot menedżer',
ru: 'Boot менеджер',
sk: 'Boot manažéry',
},
link: 'installation/boot_managers',
},
{
label: 'Filesystem',
translations: {
cs: 'Souborový systém',
de: 'Dateisystem',
es: 'Sistema de archivos',
pl: 'System plików',
ru: 'Файловая система',
sk: 'Súborový systém',
},
link: 'installation/filesystem',
},
{
label: 'Desktop Environments',
translations: {
cs: 'Desktop prostředí',
de: 'Desktop-Umgebungen',
es: 'Entornos de escritorio',
pl: 'Środowiska graficzne',
ru: 'Окружения рабочего стола',
sk: 'Desktopové prostredia',
},
link: 'installation/desktop_environments',
},
{
label: 'Guides',
translations: {
cs: 'Průvodce',
de: 'Anleitungen',
es: 'Guías',
pl: 'Przewodniki',
ru: 'Руководства',
sk: 'Príručky',
},
items: [
{
label: 'Desktop Edition',
translations: {
cs: 'Desktop verze',
de: 'Desktop Edition',
es: 'Edición de escritorio',
pl: 'Wersja desktop',
ru: 'Настольная версия',
sk: 'Desktop verzia',
},
link: 'installation/installation_on_root',
},
{
label: 'Handheld Edition',
translations: {
cs: 'Handheld verze',
de: 'Handheld Edition',
es: 'Edición para dispositivos portátiles',
pl: 'Wersja handheld',
ru: 'Ручная версия',
sk: 'Handheld verzia',
},
link: 'installation/installation_handheld',
},
{
label: 'T2 MacBook',
link: 'installation/installation_t2macbook',
},
],
},
],
},
{
label: 'CachyOS Features',
translations: {
cs: 'Funkce CachyOS',
de: 'CachyOS Funktionen',
es: 'Funciones de CachyOS',
pl: 'Funkcje CachyOS',
ru: 'Возможности CachyOS',
sk: 'Funkcie CachyOS',
},
items: [
{
label: 'CachyOS chroot Helper (cachy-chroot)',
link: 'features/cachy_chroot',
translations: {
cs: 'Pomůcka pro chroot CachyOS (cachy-chroot)',
de: 'CachyOS chroot-Helfer (cachy-chroot)',
es: 'CachyOS chroot asistente (cachy-chroot)',
pl: 'CachyOS chroot menedżer (cachy-chroot)',
ru: 'CachyOS chroot помощник (cachy-chroot)',
sk: 'Pomôcka pre chroot CachyOS (cachy-chroot)',
},
},
{
label: 'CachyOS Hardware Detection (chwd)',
link: 'features/chwd',
translations: {
cs: 'Detekce hardwaru CachyOS (chwd)',
de: 'CachyOS Hardware-Erkennung (chwd)',
es: 'CachyOS detección de hardware (chwd)',
pl: 'CachyOS Wykrywanie sprzętu (chwd)',
ru: 'CachyOS Обнаружение оборудования (chwd)',
sk: 'Detekcia hardvéru CachyOS (chwd)',
},
},
{
label: 'CachyOS Kernel',
translations: {
cs: 'Jádro CachyOS',
de: 'CachyOS-Kernel',
es: 'Núcleo CachyOS',
pl: 'Jądro CachyOS',
ru: 'Ядро CachyOS',
sk: 'Jadro CachyOS',
},
link: 'features/kernel',
},
{
label: 'Kernel Manager',
translations: {
cs: 'Správce jader',
de: 'Kernel-Manager',
es: 'Gestor de núcleos',
ru: 'Менеджер ядер',
sk: 'Správca jadra',
},
link: 'features/kernel_manager',
},
{
label: 'CachyOS Settings',
translations: {
cs: 'Nastavení CachyOS',
de: 'CachyOS-Einstellungen',
es: 'Ajustes de CachyOS',
pl: 'Ustawienia CachyOS',
ru: 'Настройки CachyOS',
sk: 'Nastavenia CachyOS',
},
link: 'features/cachyos_settings',
},
{
label: 'Optimized Repositories',
translations: {
cs: 'Optimalizované repozitáře',
de: 'Optimierte Repositories',
es: 'Repositorios optimizados',
pl: 'Zoptymalizowane repozytoria',
ru: 'Оптимизированные репозитории',
sk: 'Optimalizované repozitáre',
},
link: 'features/optimized_repos',
},
],
},
{
label: 'Configuration',
translations: {
cs: 'Nastavení',
de: 'Konfiguration',
es: 'Configuración',
pl: 'Konfiguracja',
ru: 'Конфигурация',
sk: 'Konfigurácia',
},
items: [
{
label: 'Secure Boot Setup',
translations: {
cs: 'Nastavení zabezpečeného spouštění',
de: 'Secure Boot-Einrichtung',
es: 'Configuración de arranque seguro',
pl: 'Konfiguracja Secure Boot',
ru: 'Настройка Secure Boot',
sk: 'Nastavenie zabezpečeného spúšťania',
},
link: 'configuration/secure_boot_setup',
},
{
label: 'Post Install Recommendations',
translations: {
cs: 'Návrhy po instalaci',
de: 'Post-Install-Raten',
es: 'Recomendaciones post-instalación',
pl: 'Rekomendacje po instalacji',
ru: 'Рекомендации после установки',
sk: 'Rekomendácie po inštalácii',
},
link: 'configuration/post_install_setup',
},
{
label: 'Boot Manager Configuration',
translations: {
cs: 'Konfigurace správce spouštění',
de: 'Boot-Manager-Konfiguration',
es: 'Configuración del gestor de arranque',
pl: 'Konfiguracja Boot Managera',
ru: 'Конфигурация Boot менеджера',
sk: 'Konfigurácia Boot manažéra',
},
link: 'configuration/boot_manager_configuration',
},
{
label: 'Dual GPU',
translations: {
cs: 'Dvojité GPU',
de: 'Doppelte GPU',
es: 'GPU dual',
pl: 'Dwie GPU',
ru: 'Двойная GPU',
sk: 'Dvojité GPU',
},
link: 'configuration/dual_gpu',
},
{
label: 'Gaming',
link: 'configuration/gaming',
translations: {
cs: 'Hraní her',
de: 'Gaming',
es: 'Juegos',
pl: 'Gry',
ru: 'Игры',
sk: 'Hranie hier',
},
},
{
label: 'General System Tweaks',
translations: {
cs: 'Obecné úpravy systému',
de: 'Allgemeine Systemanpassungen',
es: 'Ajustes generales del sistema',
pl: 'Ogólne poprawki systemowe',
ru: 'Общие настройки системы',
sk: 'Všeobecné systémové úpravy',
},
link: 'configuration/general_system_tweaks',
},
{
label: 'sched-ext Tutorial',
translations: {
cs: 'sched-ext Tutoriál',
de: 'sched-ext Anleitung',
es: 'Tutorial de sched-ext',
pl: 'sched-ext Poradnik',
ru: 'Руководство по sched-ext',
sk: 'sched-ext návod',
},
link: 'configuration/sched-ext',
},
{
label: 'Automounting Additional Drives',
translations: {
cs: 'Automatické připojování dalších disků',
de: 'Automatisches Einhängen zusätzlicher Laufwerke',
es: 'Montaje automático de unidades adicionales',
pl: 'Automatyczne montowanie dodatkowych dysków',
ru: 'Автоматическое монтирование дополнительных дисков',
sk: 'Automatické pripájanie ďalších diskov',
},
link: 'configuration/automount_with_fstab',
},
{
label: 'Enabling Hardware Acceleration in Google Chrome',
translations: {
cs: 'Povolení hardwarové akcelerace v Google Chrome',
de: 'Hardware-Beschleunigung in Google Chrome aktivieren',
es: 'Habilitar la aceleración por hardware en Google Chrome',
pl: 'Włączanie akceleracji sprzętowej w Google Chrome',
ru: 'Включение аппаратного ускорения в Google Chrome',
sk: 'Povolenie hardvérovej akcelerácie v Google Chrome',
},
link: 'configuration/enabling_hardware_acceleration_in_google_chrome',
},
{
label: 'Desktop Environments',
autogenerate: { directory: 'configuration/desktop_environments' },
},
],
},
{
label: 'Support',
translations: {
cs: 'Podpora',
de: 'Unterstützung',
es: 'Soporte',
pl: 'Wsparcie',
ru: 'Поддержка',
sk: 'Podpora',
},
items: [
{
label: 'Donation',
translations: {
cs: 'Dobrovolné příspěvky',
de: 'Spende',
es: 'Donación',
pl: 'Darowizna',
ru: 'Пожертвования',
sk: 'Darcovstvo',
},
link: 'support/donation',
},
{
label: 'Submitting Bugs',
translations: {
cs: 'Nahlášení chyb',
de: 'Fehlerberichte einreichen',
es: 'Envío de errores',
pl: 'Zgłaszanie błędów',
ru: 'Отправка сообщений об ошибках',
sk: 'Odoslanie chýb',
},
link: 'support/submitting_bugs',
},
{
label: 'Submitting Package Requests',
translations: {
cs: 'Žádosti o balíčky',
de: 'Paketanforderungen einreichen',
es: 'Envío de solicitudes de paquetes',
pl: 'Zgłaszanie próśb o pakiety',
ru: 'Запросы на добавление пакетов',
sk: 'Odoslanie požiadaviek na balíčky',
},
link: 'support/submitting_package_requests',
},
{
label: 'Social',
translations: {
cs: 'Sociální sítě',
de: 'Soziale Medien',
es: 'Redes sociales',
pl: 'Media społecznościowe',
ru: 'Социальные сети',
sk: 'Sociálne siete',
},
link: 'support/social',
},
],
},
{
label: 'Policy',
translations: {
cs: 'Podmínky',
de: 'Regeln',
es: 'Política',
pl: 'Zasady',
ru: 'Правила',
sk: 'Politika',
},
items: [
{
label: 'Community Rules',
translations: {
cs: 'Pravidla komunity',
de: 'Gemeinschaftsregeln',
es: 'Reglas de la comunidad',
id: 'Peraturan Komunitas',
pl: 'Zasady społeczności',
ru: 'Правила сообщества',
sk: 'Pravidlá komunity',
},
link: 'policy/community-rules',
},
{
label: 'Code of Conduct',
translations: {
cs: 'Kodex chování',
de: 'Verhaltenskodex',
es: 'Código de conducta',
pl: 'Kodeks postępowania',
ru: 'Кодекс поведения',
sk: 'Kódex správania',
},
link: 'policy/code_of_conduct',
},
{
label: 'Terms of Service',
translations: {
cs: 'Obchodní podmínky',
de: 'Nutzungsbedingungen',
es: 'Términos de servicio',
pl: 'Warunki korzystania z usługi',
ru: 'Условия обслуживания',
sk: 'Podmienky služby',
},
link: 'policy/terms_of_service',
},
{
label: 'Privacy Policy',
translations: {
cs: 'Zásady ochrany osobních údajů',
de: 'Datenschutz-Bestimmungen',
es: 'Política de privacidad',
pl: 'Polityka prywatności',
ru: 'Политика конфиденциальности',
sk: 'Zásady ochrany osobných údajov',
},
link: 'policy/privacy_policy',
},
{
label: 'Repository Policy',
translations: {
cs: 'Repozitářní politika',
de: 'Repository Regeln',
es: 'Política de repositorios',
pl: 'Polityka repozytoriów',
ru: 'Правила репозитория',
sk: 'Politika repozitárov',
},
link: 'policy/repository_policy',
},
],
},
],
}),
],
});