docs/start.md
294 lines · 6673 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::: tip Deployment
87If you want to learn how to deploy the website online, read the [**official vitepress docs**](https://vitepress.dev/guide/deploy).
88:::
89
90## Icon
91Wotaku 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).
92
93### Writing Rules
94
95| Section | Style |
96|-|-|
97| In-line | `:package name-icon name:` |
98| Button | `:i-package name-icon name:` |
99| Typescript | `<span class="i-package-name:icon-name"></span>` |
100| Index.md | SVG Code |
101
102
103::: tip Using Alias
104Most 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.
105:::
106
107
108
109::: info Twitter emoji
110Twitter emoji is the default iconpack for wotaku. For twemoji, you don't have to mention twemoji. just icon name.
111:::
112
113### Commands
114
115| Job | CMD |
116|-|-|
117| Adding iconpack | `pnpm add -D @iconify-json/<packname>` |
118| Remove iconpack | `pnpm remove @iconify-json/<packname>` |
119
120You have to add the iconpack manually in `docs\.vitepress\configs\emoji.ts`. Otherwise it wont work. Follow the already added ones as example.
121
122
123
124### Rules
1251. Follow the order of the tabs in [**sheet**](#sheet)
1262. There will be no space between icons. Just at the beginning.
1273. Icons will be after main URL
1284. Then github/gitlab or similar source link button
1295. Then related buttons like Extensions, Alts, Proxies etc
1306. Unlike icons, there will be space between buttons (so that it is easy to click).
1317. If there is an icon for that button (example: GitHub), use [icon](URL). Otherwise normal button.
1328. Tooltip will always be at the end.
133
134::: tip Adding tooltips
135To learn, how to add tooltips, [click here](#tooltip).
136:::
137
138### Sheet
139
140::: tabs
141
142== Frequent
143| Icon | Code | Desc |
144|-|-|-|
145| :s: | `:s:` | Favorite |
146| :e: | `:e:` | Extension(s) |
147| :prx: | `:prx:` | Proxies |
148| :ero: | `:ero:` | Focuses on NSFW content |
149| :acc: | `:acc:` | Needs Account |
150| :help: | `:help:` | Help / Docs |
151| :more: | `:more:` | Related resources |
152
153== System
154
155| Icon | Code | Desc |
156|-|-|-|
157| :win: | `:win:` | Windows |
158| :and: | `:and:` | Android |
159| :app: | `:app:` | iOS / iPadOS / macOS |
160| :lin: | `:lin:` | Linux |
161| :bsd: | `:bsd:` | FreeBSD |
162| :cmd: | `:cmd:` | CLI / TUI |
163| :ff: | `:ff:` | Firefox |
164| :cr: | `:cr:` | Chromium |
165| :web: | `:web:` | Web |
166
167== Type
168
169| Icon | Code | Desc |
170|-|-|-|
171| :strm: | `:strm:` | Stream |
172| :ddl: | `:ddl:` | Online / DDL |
173| :mag: | `:mag:` | Torrent / p2p |
174| :lcl: | `:lcl:` | Local File |
175| :batch: | `:bach:` | Batch Download |
176| :sp: | `:sp:` | Single page mode |
177| :dp: | `:dp:` | Dual page mode |
178| :ls: | `:ls:` | Long-strip mode |
179
180== Price
181
182| Icon | Code | Desc |
183|-|-|-|
184| :paid: | `:paid:` | Paid |
185| :sub: | `:sub:` | Subscription |
186| :coin: | `:coin:` | Coin / Point |
187| :fm: | `:fm:` | Freemium |
188
189== Source
190
191| Icon | Code | Desc |
192|-|-|-|
193| :gh: | `:gh:` | GitHub |
194| :gl: | `:gl:` | GitLab |
195| :cb: | `:cb:` | Codeberg |
196| :kde: | `:kde:` | KDE |
197| :gn: | `:gn:` | GNOME |
198| :gt: | `:gt:` | Gitea |
199| :cs: | `:cs:` | Closed Source |
200
201== Platform
202
203| Icon | Code | Desc |
204|-|-|-|
205| :d: | `:d:` | Discord |
206| :f: | `:f:` | 4chan |
207| :x: | `:x:` | Twitter |
208| :tg: | `:tg:` | Telegram |
209| :mal: | `:mal:` | MyAnimeList |
210| :al: | `:al:` | AniList |
211| :k: | `:k:` | Kitsu |
212| :simkl: | `:simkl:` | SIMKL |
213
214== Storage
215
216| Icon | Code | Desc |
217|-|-|-|
218| :sgd: | `:sgd:` | Google Drive |
219| :sm: | `:sm:` | Mega |
220| :smf: | `:smf:` | Mediafire |
221| :host: | `:host:` | Host websites (specifically with speed paywall) |
222
223== Flag
224
225| Icon | Code | Desc |
226|-|-|-|
227| :fjp: | `:fjp:` | Japan |
228| :fkr: | `:fkr:` | South Korea |
229| :fcn: | `:fcn:` | China |
230
231== Code
232
233| Icon | Code | Desc |
234|-|-|-|
235| :js: | `:js:` | JavaScript |
236| :css: | `:css:` | CSS |
237| :py: | `:py:` | Python |
238| :dock: | `:dock:` | Docker |
239
240== Others
241
242| Icon | Code | Desc |
243|-|-|-|
244| :n: | `:n:` | Nightly / Preview / Dev builds |
245| :rss: | `:rss:` | RSS Feed |
246| :tf: | `:tf:` | Apple TestFlight |
247| :yes: | `:yes:` | Supported |
248| :no: | `:no:` | Not supported |
249| :global: | `:global:` | Multilingual |
250
251:::
252
253
254## Tooltip
255
256Tooltip 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.
257
258
259```ts
260// Single line
261
262key: { content: "markdown" }
263
264// Single line with other variables
265
266key2: {
267 title: "key2",
268 icon: "i-material-symbols-info-i",
269 content: "content"
270 }
271
272// Multi line with other variables
273
274multiline: {
275 title: "multiline",
276 icon: "i-material-symbols-info-i",
277 content: `This is **markdown** with
278 - A bullet point
279 - Another bullet point`
280 }
281
282```
283
284There is also ^[inline tooltips](just like this). For this, you don't have to put them in index file.
285
286```md
287^[inline tooltips](just like this)
288```
289
290## Front matter
291
292::: tip Moved
293Check the front matter description [**here**](https://rentry.org/wotakufm).
294:::