docs/start.md
276 lines · 6267 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::: tip Adding tooltips
131To learn, how to add tooltips, [click here](#tooltip).
132:::
133
134### Sheet
135
136::: tabs
137
138== System
139
140| Icon | Code | Desc |
141|-|-|-|
142| :win: | `:win:` | Windows |
143| :and: | `:and:` | Android |
144| :app: | `:app:` | iOS / iPadOS / macOS |
145| :lin: | `:lin:` | Linux |
146| :bsd: | `:bsd:` | FreeBSD |
147| :cmd: | `:cmd:` | CLI / TUI |
148| :ff: | `:ff:` | Firefox |
149| :cr: | `:cr:` | Chromium |
150| :web: | `:web:` | Web |
151
152== Type
153
154| Icon | Code | Desc |
155|-|-|-|
156| :strm: | `:strm:` | Stream |
157| :ddl: | `:ddl:` | Online / DDL |
158| :mag: | `:mag:` | Torrent / p2p |
159| :lcl: | `:lcl:` | Local File |
160| :batch: | `:bach:` | Batch Download |
161
162== Price
163
164| Icon | Code | Desc |
165|-|-|-|
166| :paid: | `:paid:` | Paid |
167| :sub: | `:sub:` | Subscription |
168| :coin: | `:coin:` | Coin / Point |
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| :help: | `:help:` | Help / Docs |
229| :yes: | `:yes:` | Supported |
230| :no: | `:no:` | Not supported |
231| :global: | `:global:` | Multilingual |
232
233:::
234
235
236## Tooltip
237
238Tooltip 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.
239
240
241```ts
242// Single line
243
244key: { content: "markdown" }
245
246// Single line with other variables
247
248key2: {
249 title: "key2",
250 icon: "i-material-symbols-info-i",
251 content: "content"
252 }
253
254// Multi line with other variables
255
256multiline: {
257 title: "multiline",
258 icon: "i-material-symbols-info-i",
259 content: `This is **markdown** with
260 - A bullet point
261 - Another bullet point`
262 }
263
264```
265
266There is also ^[inline tooltips](just like this). For this, you don't have to put them in index file.
267
268```md
269^[inline tooltips](just like this)
270```
271
272## Front matter
273
274::: tip Moved
275Check the front matter description [**here**](https://rentry.org/wotakufm).
276:::