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