docs/start.md

071a94a01b05d2c39ae697a613055d4ea49d04c2
wotaku/docs/start.md rendered · source · history · blame · raw

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