docs/start.md

18a8f76cf518f02a0579a4d16de41983dcff2630
wotaku/docs/start.md rendered · source · history · blame · raw

286 lines · 6554 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| :src: | `:src:` | Source Code |
147| :cs: | `:cs:` | Closed Source |
148| :e: | `:e:` | Extension(s) |
149| :prx: | `:prx:` | Proxies |
150| :ero: | `:ero:` | Focuses on NSFW content |
151| :acc: | `:acc:` | Needs Account |
152| :help: | `:help:` | Help / Docs |
153| :more: | `:more:` | Related resources |
154
155== System
156
157| Icon | Code | Desc |
158|-|-|-|
159| :win: | `:win:` | Windows |
160| :and: | `:and:` | Android |
161| :app: | `:app:` | iOS / iPadOS / macOS |
162| :lin: | `:lin:` | Linux |
163| :bsd: | `:bsd:` | FreeBSD |
164| :cmd: | `:cmd:` | CLI / TUI |
165| :ff: | `:ff:` | Firefox |
166| :cr: | `:cr:` | Chromium |
167| :web: | `:web:` | Web |
168
169== Type
170
171| Icon | Code | Desc |
172|-|-|-|
173| :strm: | `:strm:` | Stream |
174| :ddl: | `:ddl:` | Online / DDL |
175| :mag: | `:mag:` | Torrent / p2p |
176| :lcl: | `:lcl:` | Local File |
177| :batch: | `:bach:` | Batch Download |
178| :sp: | `:sp:` | Single page mode |
179| :dp: | `:dp:` | Dual page mode |
180| :ls: | `:ls:` | Long-strip mode |
181
182== Price
183
184| Icon | Code | Desc |
185|-|-|-|
186| :paid: | `:paid:` | Paid |
187| :sub: | `:sub:` | Subscription |
188| :free: | `:free:` | Has free content |
189| :coin: | `:coin:` | Coin / Point |
190| :fm: | `:fm:` | Freemium |
191
192
193== Platform
194
195| Icon | Code | Desc |
196|-|-|-|
197| :d: | `:d:` | Discord |
198| :f: | `:f:` | 4chan |
199| :x: | `:x:` | Twitter |
200| :tg: | `:tg:` | Telegram |
201| :mal: | `:mal:` | MyAnimeList |
202| :al: | `:al:` | AniList |
203| :k: | `:k:` | Kitsu |
204| :simkl: | `:simkl:` | SIMKL |
205
206== Storage
207
208| Icon | Code | Desc |
209|-|-|-|
210| :sgd: | `:sgd:` | Google Drive |
211| :sm: | `:sm:` | Mega |
212| :smf: | `:smf:` | Mediafire |
213| :host: | `:host:` | Host websites (specifically with speed paywall) |
214
215== Flag
216
217| Icon | Code | Desc |
218|-|-|-|
219| :fjp: | `:fjp:` | Japan |
220| :fkr: | `:fkr:` | South Korea |
221| :fcn: | `:fcn:` | China |
222
223== Code
224
225| Icon | Code | Desc |
226|-|-|-|
227| :js: | `:js:` | JavaScript |
228| :css: | `:css:` | CSS |
229| :py: | `:py:` | Python |
230| :dock: | `:dock:` | Docker |
231
232== Others
233
234| Icon | Code | Desc |
235|-|-|-|
236| :n: | `:n:` | Nightly / Preview / Dev builds |
237| :rss: | `:rss:` | RSS Feed |
238| :tf: | `:tf:` | Apple TestFlight |
239| :yes: | `:yes:` | Supported |
240| :no: | `:no:` | Not supported |
241| :global: | `:global:` | Multilingual |
242
243:::
244
245
246## Tooltip
247
248Tooltip 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.
249
250
251```ts
252// Single line
253
254key: { content: "markdown" }
255
256// Single line with other variables
257
258key2: {
259   title: "key2",
260   icon: "i-material-symbols-info-i",
261   content: "content"
262   }
263
264// Multi line with other variables
265
266multiline: {
267   title: "multiline",
268   icon: "i-material-symbols-info-i",
269   content: `This is **markdown** with
270 - A bullet point
271 - Another bullet point`
272   }
273
274```
275
276There is also ^[inline tooltips](just like this). For this, you don't have to put them in index file.
277
278```md
279^[inline tooltips](just like this)
280```
281
282## Front matter
283
284::: tip Moved
285Check the front matter description [**here**](https://rentry.org/wotakufm).
286:::