docs/start.md
284 lines · 7328 bytes
1---
2title: Start
3description: Getting started
4---
5
6# Getting started
7
8## Local
9
10:::tabs
11
12== Step 1
13
14### Installing prerequisites
151. :logos-git-icon: [Git](https://git-scm.com/)
162. :logos-nodejs-icon-alt: [Node JS](https://nodejs.org/en)
173. :logos-pnpm: [pnpm](https://pnpm.io/)
18
19Open powershell and run this:
20
21```bash
22# Download and install Chocolatey:
23powershell -c "irm https://community.chocolatey.org/install.ps1|iex"
24
25# Download and install Git:
26choco install git
27
28# Verify Git version:
29git -v
30
31# Download and install Node.js:
32choco install nodejs
33
34# Verify the Node.js version:
35node -v
36
37# Download and install pnpm:
38corepack enable pnpm
39
40# Verify pnpm version:
41pnpm -v
42
43```
44== Step 2
45
46### Cloning
47
48To clone the repository, open PowerShell in your desired folder and run:
49
50```bash
51git clone https://github.com/wotakumoe/wotaku.git
52cd wotaku
53```
54
55Alternatively, you can specify a directory without opening PowerShell in that location:
56
57```bash
58git clone https://github.com/wotakumoe/wotaku.git "C:\your\directory"
59cd "C:\your\directory\wotaku"
60```
61
62To clone the repository without its commit history (shallow clone):
63
64```bash
65git clone --depth 1 https://github.com/wotakumoe/wotaku.git
66cd wotaku
67```
68
69== Step 3
70
71### Installing dependencies
72
73```bash
74pnpm install
75
76```
77
78### Running in dev mode
79
80```bash
81pnpm docs:dev
82
83```
84:::
85
86## Icon
87Wotaku fetches icons using [**Iconfiy**](https://iconify.design/). To get the icon names, visit [**Iconify**](https://icon-sets.iconify.design/) or [**Icones**](https://icones.js.org/). All the added iconpacks are [**here**](https://github.com/wotakumoe/wotaku/blob/main/docs/.vitepress/configs/emoji.ts#L20).
88
89### Writing Rules
90
91| Section | Style |
92|-|-|
93| In-line | `:package name-icon name:` |
94| Button | `:i-package name-icon name:` |
95| Typescript | `<span class="i-package-name:icon-name"></span>` |
96| Index.md | SVG Code |
97
98
99::: tip Using Alias
100Most used icons have been shortened using Alias. You can find them in [sheet](#sheet). They work in-line, not inside button. You have to use the traditional method.
101:::
102
103
104
105::: info Twitter emoji
106Twitter emoji is the default iconpack for wotaku. For twemoji, you don't have to mention twemoji. just icon name.
107:::
108
109### Commands
110
111| Job | CMD |
112|-|-|
113| Adding iconpack | `pnpm add -D @iconify-json/<packname>` |
114| Remove iconpack | `pnpm remove @iconify-json/<packname>` |
115
116You have to add the iconpack manually in `docs\.vitepress\configs\emoji.ts`. Otherwise it wont work. Follow the already added ones as example.
117
118
119
120### Rules
1211. Follow the order of the tabs in [**sheet**](#sheet)
1222. There will be no space between icons. Just at the beginning.
1233. Icons will be after main URL
1244. Then github/gitlab or similar source link button
1255. Then related buttons like Extensions, Alts, Proxies etc
1266. Unlike icons, there will be space between buttons (so that it is easy to click).
1277. If there is an icon for that button (example: GitHub), use [icon](URL). Otherwise normal button.
1288. Tooltip will always be at the end.
129
130**Example**: [Anisong Database](https://anisongdb.com/) :win::app::web: [:gh:](https://github.com/xSardine/AMQ-Artists-DB) <Badge type="info" text="Alt" link="https://43d.github.io/player/#/" />==demo==
131
132::: tip Adding tooltips
133To learn, how to add tooltips, [click here](#tooltip).
134:::
135
136### Sheet
137
138::: tabs
139
140== System
141
142| Icon | Code | Desc |
143|-|-|-|
144| :win: | `:win:` | Windows |
145| :and: | `:and:` | Android |
146| :app: | `:app:` | iOS / iPadOS / macOS |
147| :lin: | `:lin:` | Linux |
148| :bsd: | `:bsd:` | FreeBSD |
149| :cmd: | `:cmd:` | CLI / TUI |
150| :ff: | `:ff:` | Firefox |
151| :cr: | `:cr:` | Chromium |
152| :web: | `:web:` | Web |
153
154== Type
155
156| Icon | Code | Desc |
157|-|-|-|
158| :strm: | `:strm:` | Stream |
159| :ddl: | `:ddl:` | Online / DDL |
160| :mag: | `:mag:` | Torrent / p2p |
161| :lcl: | `:lcl:` | Local File |
162| :batch: | `:bach:` | Batch Download |
163
164== Price
165
166| Icon | Code | Desc |
167|-|-|-|
168| :paid: | `:paid:` | Paid |
169| :fm: | `:fm:` | Freemium |
170
171== Source
172
173| Icon | Code | Desc |
174|-|-|-|
175| :gh: | `:gh:` | GitHub |
176| :gl: | `:gl:` | GitLab |
177| :cb: | `:cb:` | Codeberg |
178| :kde: | `:kde:` | KDE |
179| :gn: | `:gn:` | GNOME |
180| :gt: | `:gt:` | Gitea |
181| :cs: | `:cs:` | Closed Source |
182
183== Platform
184
185| Icon | Code | Desc |
186|-|-|-|
187| :d: | `:d:` | Discord |
188| :f: | `:f:` | 4chan |
189| :x: | `:x:` | Twitter |
190| :tg: | `:tg:` | Telegram |
191| :mal: | `:mal:` | MyAnimeList |
192| :al: | `:al:` | AniList |
193| :k: | `:k:` | Kitsu |
194| :simkl: | `:simkl:` | SIMKL |
195
196== Storage
197
198| Icon | Code | Desc |
199|-|-|-|
200| :sgd: | `:sgd:` | Google Drive |
201| :sm: | `:sm:` | Mega |
202| :smf: | `:smf:` | Mediafire |
203| :host: | `:host:` | Host websites (specifically with speed paywall) |
204
205== Flag
206
207| Icon | Code | Desc |
208|-|-|-|
209| :fjp: | `:fjp:` | Japan |
210| :fkr: | `:fkr:` | South Korea |
211| :fcn: | `:fcn:` | China |
212
213== Others
214
215| Icon | Code | Desc |
216|-|-|-|
217| :s: | `:s:` | Favorite |
218| :e: | `:e:` | Extension(s) |
219| :n: | `:n:` | Nightly / Preview / Dev builds |
220| :ero: | `:ero:` | Focuses on NSFW content |
221| :acc: | `:acc:` | Needs Account |
222| :rss: | `:rss:` | RSS Feed |
223| :prx: | `:prx:` | Proxies |
224| :tf: | `:tf:` | Apple TestFlight |
225| :js: | `:js:` | JavaScript |
226| :css: | `:css:` | CSS |
227| :more: | `:more:` | Related resources |
228| :yes: | `:yes:` | Supported |
229| :no: | `:no:` | Not supported |
230| :global: | `:global:` | Multilingual |
231
232:::
233
234
235## Tooltip
236
237Tooltip is used to give extra information. The information should be precise. No need of stating something obvious. Tooltip has two components. The key will be beside the URL in the markdown file and key data will be in `docs\.vitepress\configs\markdown\index.ts`. The key is case-sensitive.
238
239
240```
241// Single line
242
243key: { content: "markdown" }
244
245// Single line with other variables
246
247key2: {
248 title: "key2",
249 icon: "i-material-symbols-info-i",
250 content: "content"
251 }
252
253// Multi line with other variables
254
255multiline: {
256 title: "multiline",
257 icon: "i-material-symbols-info-i",
258 content: `This is **markdown** with
259 - A bullet point
260 - Another bullet point`
261 }
262
263```
264
265## Frontmatter
266
267For every markdown page, you have to add frontmatter. Otherwise, the build will fail.
268
269```
270title: Non-English
271description: Otaku resources for other regions
272customDescription: Discover anime, manga, and other related content for all the languages.
273outline: 2
274og:
275 image: https://files.catbox.moe/9wi4ma.png
276```
277
278| Variables | Description |
279|-------------------|-------------|
280| `title` | Sets the title of the homepage and is also used for Open Graph (OG) embeds when sharing links. |
281| `description` | Defines the OG description, though it is currently unused. It also works as a description for link embeds unless `customDescription` is specified. |
282| `customDescription` | Overrides the default OG description, providing a custom description for link embeds. |
283| `outline` | Determines the header levels shown in the outline. The default is `2`, but you can specify a range, e.g., `[2,3]`, to include multiple levels. |
284| `og` | Specifies a custom image for the OG link embed. By default, it uses the image set in `docs\.vitepress\configs\hooks\opengraph.ts`. If a custom OG image is needed for a specific page, it should be added in the front matter. The required resolution is `1800x900`. |