docs/start.md
274 lines · 6195 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| :fm: | `:fm:` | Freemium |
168
169== Source
170
171| Icon | Code | Desc |
172|-|-|-|
173| :gh: | `:gh:` | GitHub |
174| :gl: | `:gl:` | GitLab |
175| :cb: | `:cb:` | Codeberg |
176| :kde: | `:kde:` | KDE |
177| :gn: | `:gn:` | GNOME |
178| :gt: | `:gt:` | Gitea |
179| :cs: | `:cs:` | Closed Source |
180
181== Platform
182
183| Icon | Code | Desc |
184|-|-|-|
185| :d: | `:d:` | Discord |
186| :f: | `:f:` | 4chan |
187| :x: | `:x:` | Twitter |
188| :tg: | `:tg:` | Telegram |
189| :mal: | `:mal:` | MyAnimeList |
190| :al: | `:al:` | AniList |
191| :k: | `:k:` | Kitsu |
192| :simkl: | `:simkl:` | SIMKL |
193
194== Storage
195
196| Icon | Code | Desc |
197|-|-|-|
198| :sgd: | `:sgd:` | Google Drive |
199| :sm: | `:sm:` | Mega |
200| :smf: | `:smf:` | Mediafire |
201| :host: | `:host:` | Host websites (specifically with speed paywall) |
202
203== Flag
204
205| Icon | Code | Desc |
206|-|-|-|
207| :fjp: | `:fjp:` | Japan |
208| :fkr: | `:fkr:` | South Korea |
209| :fcn: | `:fcn:` | China |
210
211== Others
212
213| Icon | Code | Desc |
214|-|-|-|
215| :s: | `:s:` | Favorite |
216| :e: | `:e:` | Extension(s) |
217| :n: | `:n:` | Nightly / Preview / Dev builds |
218| :ero: | `:ero:` | Focuses on NSFW content |
219| :acc: | `:acc:` | Needs Account |
220| :rss: | `:rss:` | RSS Feed |
221| :prx: | `:prx:` | Proxies |
222| :tf: | `:tf:` | Apple TestFlight |
223| :js: | `:js:` | JavaScript |
224| :css: | `:css:` | CSS |
225| :more: | `:more:` | Related resources |
226| :help: | `:help:` | Help / Docs |
227| :yes: | `:yes:` | Supported |
228| :no: | `:no:` | Not supported |
229| :global: | `:global:` | Multilingual |
230
231:::
232
233
234## Tooltip
235
236Tooltip 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.
237
238
239```ts
240// Single line
241
242key: { content: "markdown" }
243
244// Single line with other variables
245
246key2: {
247 title: "key2",
248 icon: "i-material-symbols-info-i",
249 content: "content"
250 }
251
252// Multi line with other variables
253
254multiline: {
255 title: "multiline",
256 icon: "i-material-symbols-info-i",
257 content: `This is **markdown** with
258 - A bullet point
259 - Another bullet point`
260 }
261
262```
263
264There is also ^[inline tooltips](just like this). For this, you don't have to put them in index file.
265
266```md
267^[inline tooltips](just like this)
268```
269
270## Front matter
271
272::: tip Moved
273Check the front matter description [**here**](https://rentry.org/wotakufm).
274:::