docs/.vitepress/configs/constants.ts
617 lines · 16348 bytes
1/**
2 * All Rights Reserved
3 *
4 * Copyright (c) 2025 taskylizard
5 *
6 * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7 */
8import type { DefaultTheme } from 'vitepress'
9
10export interface HomeCard {
11 id: string
12 icon: string
13 title: string
14 details: string
15 link: string
16 featured?: boolean
17 section?: string
18}
19
20// @unocss-include
21export const homeCards: HomeCard[] = [
22 {
23 id: 'websites',
24 icon: ':lucide-earth:',
25 title: 'Websites',
26 details: 'Websites for anime, manga, novels & tokusatsu',
27 link: '/websites',
28 featured: true
29 },
30 {
31 id: 'software',
32 icon: ':lucide-box:',
33 title: 'Software',
34 details: 'Software for every Operating System',
35 link: '/software',
36 featured: true
37 },
38 {
39 id: 'misc',
40 icon: ':lucide-folder-open:',
41 title: 'Misc-sites',
42 details: 'Various sites for database, info, tracking news & tools',
43 link: '/misc',
44 featured: true
45 },
46 {
47 id: 'tools',
48 icon: ':lucide-wrench:',
49 title: 'Tools',
50 details: 'Software to make life easier',
51 link: '/tools'
52 },
53 {
54 id: 'art',
55 icon: ':lucide-brush:',
56 title: 'Art',
57 details: 'Everything Art',
58 link: '/art'
59 },
60 {
61 id: 'music',
62 icon: ':lucide-music:',
63 title: 'Music',
64 details: 'Wotaku Music Megathread!',
65 link: '/music'
66 },
67 {
68 id: 'games',
69 icon: ':lucide-gamepad-2:',
70 title: 'Games',
71 details: 'Wotaku Games Megathread!',
72 link: '/games'
73 },
74 {
75 id: 'nonen',
76 icon: ':lucide-map:',
77 title: 'Non-English',
78 details: 'Otaku resources for other regions',
79 link: '/nonen'
80 },
81 {
82 id: 'nsfw',
83 icon: ':lucide-ban:',
84 title: 'NSFW',
85 details: 'hen...',
86 link: '/nsfw',
87 featured: true
88 },
89 {
90 id: 'merch',
91 icon: ':lucide-package-2:',
92 title: 'Merch',
93 details: 'Everything merch related!',
94 link: '/merch'
95 },
96 {
97 id: 'vtuber',
98 icon: ':comet:',
99 title: 'VTuber',
100 details: 'Sui-chan wa~',
101 link: '/vtuber'
102 },
103 {
104 id: 'ext',
105 icon: ':lucide-puzzle:',
106 title: 'Extensions',
107 details: 'Extensions for everything',
108 link: '/ext',
109 featured: true
110 },
111 {
112 id: 'guides',
113 icon: ':lucide-book-key:',
114 title: 'Guides',
115 details: 'Various technical guides and tutorials',
116 link: '/guides',
117 featured: true
118 },
119 {
120 id: 'glossary',
121 icon: ':lucide-book-open:',
122 title: 'Glossary',
123 details: 'Learn the most frequently used otaku terms',
124 link: '/glossary',
125 featured: true
126 },
127 {
128 id: 'torrenting',
129 icon: ':lucide-magnet:',
130 title: 'Torrenting',
131 details: 'All the basic how-tos about torrenting',
132 link: '/torrenting',
133 featured: true
134 },
135 {
136 id: 'japan',
137 icon: ':uil-letter-japanese-a:',
138 title: 'Japan',
139 details: 'Everything Japan on one page!',
140 link: '/japan'
141 },
142 {
143 id: 'faq',
144 icon: ':lucide-message-circle-question-mark:',
145 title: 'FAQs',
146 details: 'Frequently asked questions about manga and anime',
147 link: '/faq'
148 },
149 {
150 id: 'comms',
151 icon: ':lucide-messages-square:',
152 title: 'Communities',
153 details: 'More great otaku communities!',
154 link: '/comms'
155 },
156 {
157 id: 'credits',
158 icon: ':lucide-heart-handshake:',
159 title: 'Credits',
160 details: 'All the contributors of Wotaku',
161 link: '/credits'
162 },
163 {
164 id: 'ext-mihon',
165 icon: ':lucide-puzzle:',
166 title: 'Mihon & Aniyomi',
167 details: 'Mihon & Aniyomi-based extension repos',
168 link: '/ext/mihon',
169 section: 'Extensions'
170 },
171 {
172 id: 'ext-mangayomi',
173 icon: ':lucide-puzzle:',
174 title: 'Mangayomi',
175 details: 'Mangayomi-based extension repos',
176 link: '/ext/mangayomi',
177 section: 'Extensions'
178 },
179 {
180 id: 'ext-ios',
181 icon: ':lucide-puzzle:',
182 title: 'iOS Extensions',
183 details: 'iOS anime and manga repos',
184 link: '/ext/ios',
185 section: 'Extensions'
186 },
187 {
188 id: 'ext-misc',
189 icon: ':lucide-puzzle:',
190 title: 'Misc Extensions',
191 details: 'Extension repos for other apps',
192 link: '/ext/misc',
193 section: 'Extensions'
194 },
195 {
196 id: 'glossary-general',
197 icon: ':lucide-book-open:',
198 title: 'General Glossary',
199 details: 'Basic otaku-related terms',
200 link: '/glossary/general',
201 section: 'Glossary'
202 },
203 {
204 id: 'glossary-anime',
205 icon: ':lucide-book-open:',
206 title: 'Anime Glossary',
207 details: 'Season, release and production terms',
208 link: '/glossary/anime',
209 section: 'Glossary'
210 },
211 {
212 id: 'glossary-manga',
213 icon: ':lucide-book-open:',
214 title: 'Manga Glossary',
215 details: 'Panel, release and scanlation terms',
216 link: '/glossary/manga',
217 section: 'Glossary'
218 },
219 {
220 id: 'glossary-audio',
221 icon: ':lucide-book-open:',
222 title: 'Audio Glossary',
223 details: 'Audio files, software and hardware terms',
224 link: '/glossary/audio',
225 section: 'Glossary'
226 },
227 {
228 id: 'glossary-nsfw',
229 icon: ':lucide-book-open:',
230 title: 'NSFW Glossary',
231 details: 'Things Jesus wouldn\'t want you to know',
232 link: '/glossary/nsfw',
233 section: 'Glossary'
234 },
235 {
236 id: 'guides-discrip',
237 icon: ':lucide-book-key:',
238 title: 'Disc Ripping',
239 details: 'Guide on how to rip Discs and conversions to MKV and ISO formats',
240 link: '/guides/anime/discrip',
241 section: 'Guides'
242 },
243 {
244 id: 'guides-cubari',
245 icon: ':lucide-book-key:',
246 title: 'Cubari Guide',
247 details: 'How to proxy comics through Cubari.moe',
248 link: '/guides/manga/cubari',
249 section: 'Guides'
250 },
251 {
252 id: 'guides-comicinfo',
253 icon: ':lucide-book-key:',
254 title: 'Digital Comic Info',
255 details: 'Information about digital comic publishers & resolutions',
256 link: '/guides/manga/comicinfo',
257 section: 'Guides'
258 },
259 {
260 id: 'guides-mdl',
261 icon: ':lucide-book-key:',
262 title: 'Downloading Manga',
263 details: 'How to download manga on PC',
264 link: '/guides/manga/mdl',
265 section: 'Guides'
266 },
267 {
268 id: 'guides-jxl',
269 icon: ':lucide-book-key:',
270 title: 'JXL Manga Readers',
271 details: 'Manga readers with JPEG XL / JXL support for Android, iOS & PC',
272 link: '/guides/manga/jxl',
273 section: 'Guides'
274 },
275 {
276 id: 'guides-madokami',
277 icon: ':lucide-book-key:',
278 title: 'Madokami Guide',
279 details: 'The joining and downloading guide for Madokami',
280 link: '/guides/manga/madokami',
281 section: 'Guides'
282 },
283 {
284 id: 'guides-imagedit',
285 icon: ':lucide-book-key:',
286 title: 'Manga Image Editing',
287 details: 'ImageMagick guide for grayscaling, leveling, and optimizing',
288 link: '/guides/manga/imagedit',
289 section: 'Guides'
290 },
291 {
292 id: 'guides-opds',
293 icon: ':lucide-book-key:',
294 title: 'OPDS E-reader',
295 details: 'How to self-host your library to your Kindle',
296 link: '/guides/manga/opds',
297 section: 'Guides'
298 },
299 {
300 id: 'guides-transcoding',
301 icon: ':lucide-book-key:',
302 title: 'Transcoding Audio',
303 details: 'Basic guide for transcoding audio files',
304 link: '/guides/music/transcoding',
305 section: 'Guides'
306 },
307 {
308 id: 'guides-adblock',
309 icon: ':lucide-book-key:',
310 title: 'Adblocking & Privacy',
311 details: 'Adblocking solutions for every device & VPN listing',
312 link: '/guides/tech/adblock',
313 section: 'Guides'
314 },
315 {
316 id: 'guides-jdl',
317 icon: ':lucide-book-key:',
318 title: 'JDL2 Ad-Removal',
319 details: 'Remove banner & pop-up ads from JDownloader2',
320 link: '/guides/tech/jdl',
321 section: 'Guides'
322 },
323 {
324 id: 'torrenting-start',
325 icon: ':lucide-magnet:',
326 title: 'Getting Started',
327 details: 'Basic how-to torrent guide to get you started',
328 link: '/torrenting/start',
329 section: 'Torrenting'
330 },
331 {
332 id: 'torrenting-faq',
333 icon: ':lucide-magnet:',
334 title: 'Torrenting FAQs',
335 details: 'Common questions about torrenting',
336 link: '/torrenting/faq',
337 section: 'Torrenting'
338 },
339 {
340 id: 'torrenting-glossary',
341 icon: ':lucide-magnet:',
342 title: 'Torrent Glossary',
343 details: 'All the basic torrent related terms',
344 link: '/torrenting/glossary',
345 section: 'Torrenting'
346 },
347 {
348 id: 'torrenting-nyaa',
349 icon: ':lucide-magnet:',
350 title: 'Nyaa',
351 details: 'A tutorial for navigating nyaa',
352 link: '/torrenting/nyaa',
353 section: 'Torrenting'
354 },
355 {
356 id: 'torrenting-qbit',
357 icon: ':lucide-magnet:',
358 title: 'qBittorrent',
359 details: 'Various how-tos for qBittorrent',
360 link: '/torrenting/qbit',
361 section: 'Torrenting'
362 },
363 {
364 id: 'torrenting-trackers',
365 icon: ':lucide-magnet:',
366 title: 'Trackers',
367 details: 'List of public and private trackers',
368 link: '/torrenting/trackers',
369 section: 'Torrenting'
370 },
371 {
372 id: 'japan-language',
373 icon: ':uil-letter-japanese-a:',
374 title: 'Learning Japanese',
375 details: 'Japanese language learning resources',
376 link: '/japan/language',
377 section: 'Japan'
378 },
379 {
380 id: 'japan-immersion',
381 icon: ':uil-letter-japanese-a:',
382 title: 'Immersion',
383 details: 'Media to help you learn Japanese',
384 link: '/japan/immersion',
385 section: 'Japan'
386 },
387 {
388 id: 'japan-software',
389 icon: ':uil-letter-japanese-a:',
390 title: 'Japan Software',
391 details: 'Software to help you learn Japanese',
392 link: '/japan/software',
393 section: 'Japan'
394 },
395 {
396 id: 'japan-culture',
397 icon: ':uil-letter-japanese-a:',
398 title: 'Culture',
399 details: 'Learn all about Japanese culture, history & customs',
400 link: '/japan/culture',
401 section: 'Japan'
402 }
403]
404
405export const hostname: string = 'https://wotaku.wiki'
406export const excludedFiles = ['t.md', 'sandbox.md']
407
408// @unocss-include
409export const nav: DefaultTheme.NavItem[] = []
410
411export const sidebar: DefaultTheme.Sidebar = [
412 {
413 text: '<span class="i-lucide:earth"></span> Websites',
414 link: '/websites'
415 },
416 {
417 text: '<span class="i-lucide:box"></span> Software',
418 link: '/software'
419 },
420 {
421 text: '<span class="i-lucide:folder-open"></span> Misc-sites',
422 link: '/misc'
423 },
424 {
425 text: '<span class="i-lucide:wrench"></span> Tools',
426 link: '/tools'
427 },
428 {
429 text: '<span class="i-lucide:brush"></span> Art',
430 link: '/art'
431 },
432 {
433 text: '<span class="i-lucide:music"></span> Music',
434 link: '/music'
435 },
436 {
437 text: '<span class="i-lucide:gamepad-2"></span> Games',
438 link: '/games'
439 },
440 {
441 text: '<span class="i-lucide:map"></span> Non-English',
442 link: '/nonen'
443 },
444 {
445 text: '<span class="i-lucide:ban"></span> NSFW',
446 link: '/nsfw'
447 },
448 {
449 text: '<span class="i-lucide:package-2"></span> Merch',
450 link: '/merch'
451 },
452 {
453 text: '<span class="i-twemoji-comet"></span> VTuber',
454 link: '/vtuber'
455 },
456 {
457 text:
458 '<span class="mr-2 w-4 h-4 bg-cover i-lucide:puzzle"></span> Extensions',
459 collapsed: true,
460 link: '/ext',
461 items: [
462 { text: 'Mihon & Aniyomi', link: '/ext/mihon' },
463 { text: 'Mangayomi', link: '/ext/mangayomi' },
464 { text: 'iOS apps', link: '/ext/ios' },
465 { text: 'Miscellaneous', link: '/ext/misc' }
466 ]
467 },
468 {
469 text:
470 '<span class="mr-2 w-4 h-4 bg-cover i-lucide:book-key"></span> Guides',
471 collapsed: true,
472 link: '/guides',
473 items: [
474 {
475 text: 'Anime',
476 collapsed: true,
477 items: [
478 { text: 'Disc Ripping', link: '/guides/anime/discrip' },
479 ]
480 },
481 {
482 text: 'Manga',
483 collapsed: true,
484 items: [
485 { text: 'Cubari guide', link: '/guides/manga/cubari' },
486 { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' },
487 { text: 'Downloading Manga', link: '/guides/manga/mdl' },
488 { text: 'JXL Manga Readers', link: '/guides/manga/jxl' },
489 { text: 'Madokami', link: '/guides/manga/madokami' },
490 { text: 'Manga Image Editing', link: '/guides/manga/imagedit' },
491 { text: 'OPDS to E-reader', link: '/guides/manga/opds' }
492 ]
493 },
494 {
495 text: 'Music',
496 collapsed: true,
497 items: [
498 { text: 'Transcoding Audio', link: '/guides/music/transcoding' }
499 ]
500 },
501 {
502 text: 'Technical',
503 collapsed: true,
504 items: [
505 { text: 'Blocking Ads', link: '/guides/tech/adblock' },
506 { text: 'JDL2 Ad-removal', link: '/guides/tech/jdl' }
507 ]
508 }
509 ]
510 },
511 {
512 text:
513 '<span class="mr-2 w-4 h-4 bg-cover i-lucide:book-open"></span> Glossary',
514 collapsed: true,
515 link: '/glossary',
516 items: [
517 { text: 'General', link: '/glossary/general' },
518 { text: 'Anime', link: '/glossary/anime' },
519 { text: 'Manga', link: '/glossary/manga' },
520 { text: 'Audio', link: '/glossary/audio' },
521 { text: 'NSFW', link: '/glossary/nsfw' }
522 ]
523 },
524 {
525 text:
526 '<span class="mr-2 w-4 h-4 bg-cover i-lucide:magnet"></span> Torrenting',
527 collapsed: true,
528 link: '/torrenting',
529 items: [
530 { text: 'Getting Started', link: '/torrenting/start' },
531 { text: 'FAQs', link: '/torrenting/faq' },
532 { text: 'Glossary', link: '/torrenting/glossary' },
533 { text: 'Nyaa', link: '/torrenting/nyaa' },
534 { text: 'qBittorrent', link: '/torrenting/qbit' },
535 { text: `Trackers`, link: '/torrenting/trackers' }
536 ]
537 },
538 {
539 text:
540 '<span class="mr-2 w-4 h-4 bg-cover i-uil:letter-japanese-a"></span> Japan',
541 collapsed: true,
542 link: '/japan',
543 items: [
544 { text: 'Language', link: '/japan/language' },
545 { text: 'Immersion', link: '/japan/immersion' },
546 { text: 'Software', link: '/japan/software' },
547 { text: 'Culture', link: '/japan/culture' }
548 ]
549 },
550 {
551 text: '<span class="i-lucide:message-circle-question"></span> FAQs',
552 link: '/faq'
553 },
554 {
555 text: '<span class="i-lucide:messages-square"></span> Communities',
556 link: '/comms'
557 },
558 {
559 text: '<span class="i-lucide:heart-handshake"></span> Credits',
560 link: '/credits'
561 }
562]
563
564export const siteConfig = {
565 title: 'Wotaku',
566 description:
567 'Wotaku, your hub for all otaku interests. We list websites for Anime, Manga, Light Novels, Music, Games and Hentai, also Aniyomi and Mihon extensions.',
568 lang: 'en-US',
569 lastUpdated: true,
570 cleanUrls: true,
571 ignoreDeadLinks: true,
572 appearance: true,
573 titleTemplate: ':title • Wotaku.wiki by Duck',
574 head: [
575 // Apply the "Effects" preference before first paint to avoid a flash of
576 // effects. Effects are off by default; the class strips blur/transitions.
577 [
578 'script',
579 {},
580 `(function(){try{if(localStorage.getItem('preference-effects')!=='on')document.documentElement.classList.add('effects-disabled')}catch(e){document.documentElement.classList.add('effects-disabled')}})()`
581 ],
582 [
583 'script',
584 {},
585 `(function(){try{var m={ayanami:'rei',asuka:'asuka',miku:'miku',inanis:'ina',amelia:'ame',baelz:'bae',irys:'irys',suisei:'suisei'};var a=localStorage.getItem('preference-accent-color')||'ayanami';var n;if(a==='fubuki'){var p=localStorage.getItem('vitepress-theme-appearance')||'auto';var d=p==='dark'||(p!=='light'&&window.matchMedia('(prefers-color-scheme: dark)').matches);n=d?'fubuki':'kuro'}else{n=m[a]||'rei'}document.documentElement.style.setProperty('--wk-sidebar-banner','url(/sidebar/'+n+'.avif)')}catch(e){}})()`
586 ],
587 ['meta', { name: 'theme-color', content: '#56b4fc' }],
588 ['meta', { name: 'og:type', content: 'website' }],
589 ['meta', { name: 'og:locale', content: 'en' }],
590 ['link', { rel: 'icon', href: '/asset/fav.svg' }],
591 // PWA
592 ['link', { rel: 'icon', href: '/asset/fav.svg', type: 'image/svg+xml' }],
593 ['link', { rel: 'alternate icon', href: '/asset/fav.svg' }],
594 ['link', { rel: 'mask-icon', href: '/asset/fav.svg', color: '#56b4fc' }],
595 // prettier-ignore
596 [
597 'meta',
598 {
599 name: 'keywords',
600 content:
601 'Anime, Anime Piracy, Manga, Manga Piracy, VTuber, Hentai, JPOP, Music, Japan, Learning Japanese, Weeb, Otaku'
602 }
603 ],
604 [
605 'link',
606 {
607 rel: 'apple-touch-icon',
608 href: '/asset/fav.svg',
609 sizes: '192x192'
610 }
611 ]
612 ],
613 srcExclude: ['README.md', 'sandbox/**/*.md'],
614 sitemap: {
615 hostname: hostname
616 }
617}