docs/.vitepress/configs/constants.ts

330f97c2c887ece6f1a2a9bfdd26f7b7a8f3c98c
wotaku/docs/.vitepress/configs/constants.ts

217 lines · 6347 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 const hostname: string = 'https://wotaku.wiki'
 11export const excludedFiles = ['t.md', 'sandbox.md']
 12
 13// @unocss-include
 14export const nav: DefaultTheme.NavItem[] = []
 15
 16export const sidebar: DefaultTheme.Sidebar = [
 17  {
 18    text: '<span class="i-lucide:earth"></span> Websites',
 19    link: '/websites'
 20  },
 21  {
 22    text: '<span class="i-lucide:box"></span> Software',
 23    link: '/software'
 24  },
 25  {
 26    text: '<span class="i-lucide:folder-open"></span> Misc-sites',
 27    link: '/misc'
 28  },
 29  {
 30    text: '<span class="i-lucide:wrench"></span> Tools',
 31    link: '/tools'
 32  },
 33  {
 34    text: '<span class="i-lucide:brush"></span> Art',
 35    link: '/art'
 36  },
 37  {
 38    text: '<span class="i-lucide:music"></span> Music',
 39    link: '/music'
 40  },
 41  {
 42    text: '<span class="i-lucide:gamepad-2"></span> Games',
 43    link: '/games'
 44  },
 45  {
 46    text: '<span class="i-lucide:map"></span> Non-English',
 47    link: '/nonen'
 48  },
 49  {
 50    text: '<span class="i-lucide:ban"></span> NSFW',
 51    link: '/nsfw'
 52  },
 53  {
 54    text: '<span class="i-lucide:package-2"></span> Merch',
 55    link: '/merch'
 56  },
 57  {
 58    text: '<span class="i-lucide:scroll-text"></span> Scanlation',
 59    link: '/scanlation'
 60  },
 61  {
 62    text: '<span class="i-twemoji-comet"></span> VTuber',
 63    link: '/vtuber'
 64  },
 65    {
 66    text:
 67      '<span class="mr-2 w-4 h-4 bg-cover i-lucide:puzzle"></span> Extensions',
 68    collapsed: true,
 69    link: '/ext',
 70    items: [
 71        { text: 'Mihon & Aniyomi', link: '/ext/mihon' },
 72          { text: 'Mangayomi', link: '/ext/mangayomi' },
 73          { text: 'iOS apps', link: '/ext/ios' },
 74          { text: 'Miscellaneous', link: '/ext/misc' }
 75    ]
 76  },
 77  {
 78    text:
 79      '<span class="mr-2 w-4 h-4 bg-cover i-lucide:book-key"></span> Guides',
 80    collapsed: true,
 81    link: '/guides',
 82    items: [
 83      {
 84        text: 'Anime',
 85        collapsed: true,
 86        items: [
 87          { text: 'Disc Ripping', link: '/guides/anime/discrip' },
 88          { text: 'Network Streaming', link: '/guides/anime/ns' }
 89        ]
 90      },
 91      {
 92        text: 'Manga',
 93        collapsed: true,
 94        items: [
 95          { text: 'Cubari guide', link: '/guides/manga/cubari' },
 96          { text: 'Digital Comic Info', link: '/guides/manga/comicinfo' },
 97          { text: 'Downloading Manga', link: '/guides/manga/mdl' },
 98          { text: 'JXL Manga Readers', link: '/guides/manga/jxl' },
 99          { text: 'Madokami', link: '/guides/manga/madokami' },
100          { text: 'Manga Image Editing', link: '/guides/manga/imagedit' },
101          { text: 'OPDS to E-reader', link: '/guides/manga/opds' }
102        ]
103      },
104      {
105        text: 'Music',
106        collapsed: true,
107        items: [
108          { text: 'Echo', link: '/guides/music/echo' },
109          { text: 'FB2K Synced Lyrics', link: '/guides/music/fb2klyrics' },
110          { text: 'Transcoding Audio', link: '/guides/music/transcoding' }
111        ]
112      },
113      {
114        text: 'Technical',
115        collapsed: true,
116        items: [
117          { text: 'Blocking Ads', link: '/guides/tech/adblock' },
118          { text: 'JDL2 Ad-removal', link: '/guides/tech/jdl' }
119        ]
120      }
121    ]
122  },
123  {
124    text:
125      '<span class="mr-2 w-4 h-4 bg-cover i-lucide:book-open"></span> Glossary',
126    collapsed: true,
127    link: '/glossary',
128    items: [
129      { text: 'General', link: '/glossary/general' },
130      { text: 'Anime', link: '/glossary/anime' },
131      { text: 'Manga', link: '/glossary/manga' },
132      { text: 'Audio', link: '/glossary/audio' },
133      { text: 'NSFW', link: '/glossary/nsfw' }
134    ]
135  },
136  {
137    text:
138      '<span class="mr-2 w-4 h-4 bg-cover i-lucide:magnet"></span> Torrenting',
139    collapsed: true,
140    link: '/torrenting',
141    items: [
142      { text: 'Getting Started', link: '/torrenting/start' },
143      { text: 'FAQs', link: '/torrenting/faq' },
144      { text: 'Glossary', link: '/torrenting/glossary' },
145      { text: 'Nyaa', link: '/torrenting/nyaa' },
146      { text: 'qBittorrent', link: '/torrenting/qbit' },
147      { text: `Trackers`, link: '/torrenting/trackers' }
148    ]
149  },
150    {
151    text:
152      '<span class="mr-2 w-4 h-4 bg-cover i-uil:letter-japanese-a"></span> Japan',
153    collapsed: true,
154    link: '/japan',
155    items: [
156      { text: 'Language', link: '/japan/language' },
157      { text: 'Immersion', link: '/japan/immersion' },
158      { text: 'Software', link: '/japan/software' },
159      { text: 'Culture', link: '/japan/culture' }
160    ]
161  },
162  {
163    text: '<span class="i-lucide:message-circle-question"></span> FAQs',
164    link: '/faq'
165  },
166  {
167    text: '<span class="i-lucide:messages-square"></span> Communities',
168    link: '/comms'
169  },
170  {
171    text: '<span class="i-lucide:heart-handshake"></span> Credits',
172    link: '/credits'
173  }
174]
175
176export const siteConfig = {
177  title: 'Wotaku',
178  description:
179    'Wotaku, your hub for all otaku interests. We list websites for Anime, Manga, Light Novels, Music, Games and Hentai, also Aniyomi and Mihon extensions.',
180  lang: 'en-US',
181  lastUpdated: true,
182  cleanUrls: true,
183  ignoreDeadLinks: true,
184  appearance: true,
185  titleTemplate: ':title • Wotaku.wiki by Duck',
186  head: [
187    ['meta', { name: 'theme-color', content: '#56b4fc' }],
188    ['meta', { name: 'og:type', content: 'website' }],
189    ['meta', { name: 'og:locale', content: 'en' }],
190    ['link', { rel: 'icon', href: '/asset/fav.svg' }],
191    // PWA
192    ['link', { rel: 'icon', href: '/asset/fav.svg', type: 'image/svg+xml' }],
193    ['link', { rel: 'alternate icon', href: '/asset/fav.svg' }],
194    ['link', { rel: 'mask-icon', href: '/asset/fav.svg', color: '#56b4fc' }],
195    // prettier-ignore
196    [
197      'meta',
198      {
199        name: 'keywords',
200        content:
201          'Anime, Anime Piracy, Manga, Manga Piracy, VTuber, Hentai, JPOP, Music, Japan, Learning Japanese, Weeb, Otaku'
202      }
203    ],
204    [
205      'link',
206      {
207        rel: 'apple-touch-icon',
208        href: '/asset/fav.svg',
209        sizes: '192x192'
210      }
211    ]
212  ],
213  srcExclude: ['README.md', 'sandbox/**/*.md'],
214  sitemap: {
215    hostname: hostname
216  }
217}