docs/.vitepress/configs/constants.ts
339 lines · 10255 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'
9import { x } from 'tinyexec'
10
11export const hostname: string = 'https://wotaku.wiki'
12export const excludedFiles = ['t.md']
13export const GIT_COMMIT =
14 /** Github actions commit hash */
15 process.env.GITHUB_SHA ??
16 /** Commit hash from git */
17 (await x('git', ['rev-parse', 'HEAD']).then((result) =>
18 result.stdout.trim()
19 )) ??
20 'dev'
21
22// @unocss-include
23export const nav: DefaultTheme.NavItem[] = [
24 {
25 text: 'Pages',
26 items: [
27 { text: 'Quick Start', link: '/qs' },
28 { text: 'FAQs', link: '/faq' },
29 { text: 'Websites', link: '/websites' },
30 { text: 'Software', link: '/software' },
31 { text: 'Misc-sites', link: '/misc' },
32 { text: 'Tools', link: '/tools' },
33 { text: 'Art', link: '/art' },
34 { text: 'Music', link: '/music' },
35 { text: 'Games', link: '/games' },
36 { text: 'Non-English', link: '/nonen' },
37 { text: 'NSFW', link: '/nsfw' },
38 { text: 'Merch', link: '/merch' },
39 { text: 'Scanlation', link: '/scanlation' },
40 { text: 'VTuber', link: '/vtuber' },
41 { text: 'Communities', link: '/comms' }
42 ]
43 },
44 {
45 text: 'Japan',
46 items: [
47 { text: 'Language', link: '/japan/language' },
48 { text: 'Immersion', link: '/japan/immersion' },
49 { text: 'Software', link: '/japan/software' },
50 { text: 'Culture', link: '/japan/culture' }
51 ]
52 },
53 {
54 text: 'Glossary',
55 items: [
56 { text: 'General', link: '/glossary/general' },
57 { text: 'Anime', link: '/glossary/anime' },
58 { text: 'Manga', link: '/glossary/manga' },
59 { text: 'Audio', link: '/glossary/audio' },
60 { text: 'NSFW', link: '/glossary/nsfw' }
61 ]
62 },
63 {
64 text: 'Torrenting',
65 items: [
66 { text: 'Getting Started', link: '/torrenting/start' },
67 { text: 'FAQs', link: '/torrenting/faq' },
68 { text: 'Glossary', link: '/torrenting/glossary' },
69 { text: 'qBittorrent', link: '/torrenting/qbit' },
70 { text: `Trackers`, link: '/torrenting/trackers' }
71 ]
72 },
73 {
74 text: 'Guides',
75 items: [
76 {
77 text: 'Anime',
78 items: [
79 { text: 'Disc Ripping', link: '/guides/anime/discrip' },
80 { text: 'Network Streaming', link: '/guides/anime/ns' }
81 ]
82 },
83 {
84 text: 'Manga',
85 items: [
86 { text: 'Cubari guide', link: '/guides/manga/cubari' },
87 { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' },
88 { text: 'Downloading Manga', link: '/guides/manga/mdl' },
89 { text: 'JXL Manga Readers', link: '/guides/manga/jxl' },
90 { text: 'Madokami', link: '/guides/manga/madokami' },
91 { text: 'Manga Image Editing', link: '/guides/manga/imagedit' },
92 { text: 'OPDS to E-reader', link: '/guides/manga/opds' }
93 ]
94 },
95 {
96 text: 'Extension Repos',
97 items: [
98 { text: 'Mihon & Aniyomi', link: '/guides/ext/mihon' },
99 { text: 'Mangayomi', link: '/guides/ext/mangayomi' },
100 { text: 'iOS apps', link: '/guides/ext/ios' },
101 { text: 'Miscellaneous', link: '/guides/ext/misc' }
102 ]
103 },
104 {
105 text: 'Music',
106 items: [
107 { text: 'Echo', link: '/guides/music/echo' },
108 { text: 'FB2K Synced Lyrics', link: '/guides/music/fb2klyrics' },
109 { text: 'Squidify', link: '/guides/music/squidify' },
110 { text: 'Transcoding Audio', link: '/guides/music/transcoding' }
111 ]
112 },
113 {
114 text: 'Technical',
115 items: [
116 { text: 'Blocking Ads', link: '/guides/tech/adblock' },
117 { text: 'IRC & XDCC', link: '/guides/tech/irc' },
118 { text: 'JDL2 Ad-removal', link: '/guides/tech/jdl' }
119 ]
120 }
121 ]
122 },
123 {
124 text: 'Preferences',
125 items: [
126 {
127 component: 'PreferenceRadio',
128 props: {
129 text: 'Floating Takodachi',
130 group: 'takodachi',
131 options: ['Enable', 'Disable'],
132 defaultOption: 'Disable'
133 }
134 }
135 ]
136 }
137]
138
139export const sidebar: DefaultTheme.Sidebar = [
140 {
141 text: '<span class="i-lucide:zap"></span> Quick Start',
142 link: '/qs'
143 },
144 {
145 text: '<span class="i-lucide:message-circle-question"></span> FAQs',
146 link: '/faq'
147 },
148 {
149 text: '<span class="i-lucide:earth"></span> Websites',
150 link: '/websites'
151 },
152 {
153 text: '<span class="i-lucide:box"></span> Software',
154 link: '/software'
155 },
156 {
157 text: '<span class="i-lucide:folder-open"></span> Misc-sites',
158 link: '/misc'
159 },
160 {
161 text: '<span class="i-lucide:wrench"></span> Tools',
162 link: '/tools'
163 },
164 {
165 text: '<span class="i-lucide:brush"></span> Art',
166 link: '/art'
167 },
168 {
169 text: '<span class="i-lucide:music"></span> Music',
170 link: '/music'
171 },
172 {
173 text: '<span class="i-lucide:gamepad-2"></span> Games',
174 link: '/games'
175 },
176 {
177 text: '<span class="i-lucide:map"></span> Non-English',
178 link: '/nonen'
179 },
180 {
181 text: '<span class="i-lucide:ban"></span> NSFW',
182 link: '/nsfw'
183 },
184 {
185 text: '<span class="i-lucide:package-2"></span> Merch',
186 link: '/merch'
187 },
188 {
189 text: '<span class="i-lucide:scroll-text"></span> Scanlation',
190 link: '/scanlation'
191 },
192 {
193 text: '<span class="i-twemoji-comet"></span> VTuber',
194 link: '/vtuber'
195 },
196 {
197 text: '<span class="i-uil:letter-japanese-a"></span> Japan',
198 collapsed: true,
199 items: [
200 { text: 'Language', link: '/japan/language' },
201 { text: 'Immersion', link: '/japan/immersion' },
202 { text: 'Software', link: '/japan/software' },
203 { text: 'Culture', link: '/japan/culture' }
204 ]
205 },
206 {
207 text: '<span class="i-lucide:book-open"></span> Glossary',
208 collapsed: true,
209 items: [
210 { text: 'General', link: '/glossary/general' },
211 { text: 'Anime', link: '/glossary/anime' },
212 { text: 'Manga', link: '/glossary/manga' },
213 { text: 'Audio', link: '/glossary/audio' },
214 { text: 'NSFW', link: '/glossary/nsfw' }
215 ]
216 },
217 {
218 text: '<span class="i-lucide:magnet"></span> Torrenting',
219 collapsed: true,
220 items: [
221 { text: 'Getting Started', link: '/torrenting/start' },
222 { text: 'FAQs', link: '/torrenting/faq' },
223 { text: 'Glossary', link: '/torrenting/glossary' },
224 { text: 'qBittorrent', link: '/torrenting/qbit' },
225 { text: `Trackers`, link: '/torrenting/trackers' }
226 ]
227 },
228 {
229 text: '<span class="i-lucide:book-key"></span> Guides',
230 collapsed: true,
231 items: [
232 {
233 text: 'Anime',
234 collapsed: true,
235 items: [
236 { text: 'Disc Ripping', link: '/guides/anime/discrip' },
237 { text: 'Network Streaming', link: '/guides/anime/ns' }
238 ]
239 },
240 {
241 text: 'Manga',
242 collapsed: true,
243 items: [
244 { text: 'Cubari guide', link: '/guides/manga/cubari' },
245 { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' },
246 { text: 'Downloading Manga', link: '/guides/manga/mdl' },
247 { text: 'JXL Manga Readers', link: '/guides/manga/jxl' },
248 { text: 'Madokami', link: '/guides/manga/madokami' },
249 { text: 'Manga Image Editing', link: '/guides/manga/imagedit' },
250 { text: 'OPDS to E-reader', link: '/guides/manga/opds' }
251 ]
252 },
253 {
254 text: 'Extension Repos',
255 collapsed: true,
256 items: [
257 { text: 'Mihon & Aniyomi', link: '/guides/ext/mihon' },
258 { text: 'Mangayomi', link: '/guides/ext/mangayomi' },
259 { text: 'iOS apps', link: '/guides/ext/ios' },
260 { text: 'Miscellaneous', link: '/guides/ext/misc' }
261 ]
262 },
263 {
264 text: 'Music',
265 collapsed: true,
266 items: [
267 { text: 'Echo', link: '/guides/music/echo' },
268 { text: 'FB2K Synced Lyrics', link: '/guides/music/fb2klyrics' },
269 { text: 'Squidify', link: '/guides/music/squidify' },
270 { text: 'Transcoding Audio', link: '/guides/music/transcoding' }
271 ]
272 },
273 {
274 text: 'Technical',
275 collapsed: true,
276 items: [
277 { text: 'Blocking Ads', link: '/guides/tech/adblock' },
278 { text: 'IRC & XDCC', link: '/guides/tech/irc' },
279 { text: 'JDL2 Ad-removal', link: '/guides/tech/jdl' }
280 ]
281 }
282 ]
283 },
284 {
285 text: '<span class="i-lucide:messages-square"></span> Communities',
286 link: '/comms'
287 },
288 {
289 text: '<span class="i-lucide:heart-handshake"></span> Credits',
290 link: '/credits'
291 },
292 {
293 text: '<span class="i-lucide:goal"></span> Getting Started',
294 link: '/start'
295 }
296]
297
298export const siteConfig = {
299 title: 'Wotaku',
300 description:
301 'Wotaku, the one-stop-shop for all your otaku interests. Here you can find websites for Anime, Manga, Light Novels, Music, Soundtracks, Games and Hentai. Our japanese learning section has books and videos about language, history and culture.',
302 lang: 'en-US',
303 lastUpdated: true,
304 cleanUrls: true,
305 ignoreDeadLinks: true,
306 appearance: true,
307 titleTemplate: ':title • Wotaku.wiki by Duck',
308 head: [
309 ['meta', { name: 'theme-color', content: '#56b4fc' }],
310 ['meta', { name: 'og:type', content: 'website' }],
311 ['meta', { name: 'og:locale', content: 'en' }],
312 ['link', { rel: 'icon', href: '/asset/fav.png' }],
313 // PWA
314 ['link', { rel: 'icon', href: '/asset/fav.png', type: 'image/svg+xml' }],
315 ['link', { rel: 'alternate icon', href: '/asset/fav.png' }],
316 ['link', { rel: 'mask-icon', href: '/asset/fav.png', color: '#56b4fc' }],
317 // prettier-ignore
318 [
319 "meta",
320 {
321 name: "keywords",
322 content:
323 "Anime, Anime Piracy, Manga, Manga Piracy, VTuber, Hentai, JPOP, Music, Japan, Learning Japanese, Weeb, Otaku",
324 },
325 ],
326 [
327 'link',
328 {
329 rel: 'apple-touch-icon',
330 href: '/asset/fav.png',
331 sizes: '192x192'
332 }
333 ]
334 ],
335 srcExclude: ['README.md', 'sandbox/**/*.md'],
336 sitemap: {
337 hostname: hostname
338 }
339}