docs/start.md
179 lines · 4281 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
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
139## Tooltip
140
141Tooltip 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.
142
143
144```ts
145// Single line
146
147key: { content: "markdown" }
148
149// Single line with other variables
150
151key2: {
152 title: "key2",
153 icon: "i-material-symbols-info-i",
154 content: "content"
155 }
156
157// Multi line with other variables
158
159multiline: {
160 title: "multiline",
161 icon: "i-material-symbols-info-i",
162 content: `This is **markdown** with
163 - A bullet point
164 - Another bullet point`
165 }
166
167```
168
169There is also ^[inline tooltips](just like this). For this, you don't have to put them in index file.
170
171```md
172^[inline tooltips](just like this)
173```
174
175## Front matter
176
177::: tip Moved
178Check the front matter description [**here**](https://rentry.org/wotakufm).
179:::