docs/.vitepress/configs/constants.ts

6fb17543d94a32902b48680ada8fd8e33cdf4cb2
wotaku/docs/.vitepress/configs/constants.ts history · blame · raw

332 lines · 9981 bytes

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