docs: update CONTRIBUTING

This commit is contained in:
Hakadao
2024-09-02 11:18:18 +08:00
parent ae0a2f48f7
commit 0e29b3e52f
4 changed files with 89 additions and 9 deletions

View File

@@ -11,7 +11,10 @@
### 开发 (Chrome or Edge)
#### Chrome 或 Edge 的第一种方法 (推荐)
#### Chrome 或 Edge 的第一种方法
<details>
<summary>详细内容</summary>
1. 运行 pnpm 命令
@@ -31,8 +34,13 @@ pnpm start:chromium
2. 每次修改扩展程序,它都会重新加载,您可以通过刷新网页来查看更改
</details>
#### Chrome 或 Edge 的另外一种方法
<details>
<summary>详细内容</summary>
1. 运行 pnpm 命令
```bash
@@ -55,6 +63,8 @@ pnpm start:chromium
每次修改后,您需要单击 [Reload Extensions](https://chromewebstore.google.com/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid) 按钮并刷新页面以确保应用更改。
</details>
#### 构建 (Chrome or Edge)
要构建拓展程序,运行
@@ -67,7 +77,10 @@ pnpm build
### 开发 (Firefox)
#### Firefox 的第一种方法 (推荐)
#### Firefox 的第一种方法
<details>
<summary>详细内容</summary>
1. 运行 pnpm 命令
@@ -87,8 +100,13 @@ pnpm start:firefox
2. 每次修改扩展程序,它都会重新加载,您可以通过刷新网页来查看更改
</details>
#### Firefox 的另外一种方法
<details>
<summary>详细内容</summary>
1. 运行 pnpm 命令
```bash
@@ -105,6 +123,8 @@ pnpm dev
3. 在浏览器中加载生成的 `extension-firefox/` 文件夹
</details>
#### 构建 (Firefox)
要构建拓展程序,运行

View File

@@ -10,7 +10,10 @@
### 開發Chrome 或 Edge
#### Chrome 或 Edge 的第一種方法 (推薦)
#### Chrome 或 Edge 的第一種方法
<details>
<summary>詳細內容</summary>
1. 執行 pnpm 指令
@@ -30,8 +33,13 @@ pnpm start:chromium
2. 之後每次修改擴充功能,他都會重新載入內容,你可以透過重新整理頁面來查看變更內容
</details>
#### Chrome 或 Edge 的另外一種方法
<details>
<summary>詳細內容</summary>
1. 執行 pnpm 指令
```bash
@@ -54,6 +62,8 @@ pnpm dev
每次修改後,您需要點選 [Extensions Reloader](https://chromewebstore.google.com/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid) 按鈕,然後重新整理頁面,以確保更改生效。
</details>
#### 建置Chrome 或 Edge
建置此擴充功能,需要執行以下指令
@@ -66,7 +76,10 @@ pnpm build
### 開發Firefox
#### Firefox 的第一種方法 (推薦)
#### Firefox 的第一種方法
<details>
<summary>詳細內容</summary>
1. 執行 pnpm 命令
@@ -86,8 +99,13 @@ pnpm start:firefox
2. 之後每次修改擴充功能,它都會重新加載,你可以透過重新整理頁面來查看變更內容
</details>
#### Firefox 的另一種方法
<details>
<summary>詳細內容</summary>
1. 執行 pnpm 命令
```bash
@@ -104,6 +122,8 @@ pnpm dev
3. 然後在瀏覽器中使用 `extension-firefox/` 資料夾載入此擴充功能。
</details>
#### 構建Firefox
要構建擴展,運行

View File

@@ -10,7 +10,10 @@
### 開發Chrome 或 Edge
#### Chrome 或 Edge 嘅第一種方法 (推介)
#### Chrome 或 Edge 嘅第一種方法
<details>
<summary>詳細內容</summary>
1. 執行 pnpm 指令
@@ -30,8 +33,13 @@ pnpm start:chromium
2. 之後每次修改延伸功能,佢會重新載入,你可以 refresh 個網頁睇吓改變之後嘅效果
</details>
#### Chrome 或 Edge 嘅另外一種方法
<details>
<summary>詳細內容</summary>
1. 執行 pnpm 指令
```bash
@@ -54,6 +62,8 @@ pnpm dev
每一次執過 code 之後,你都要撳 [Extensions Reloader](https://chromewebstore.google.com/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid) 粒掣,然之後 refresh 個 page確保係有效果。
</details>
#### 建置Chrome 或 Edge
建置延伸功能,要執行下底嘅指令
@@ -66,7 +76,10 @@ pnpm build
### 開發Firefox
#### Firefox 嘅第一種方法 (推介)
#### Firefox 嘅第一種方法
<details>
<summary>詳細內容</summary>
1. 執行 pnpm 指令
@@ -86,8 +99,13 @@ pnpm start:firefox
2. 之後每次修改延伸功能,佢會重新載入,你可以 refresh 個網頁睇吓改變之後嘅效果
</details>
#### Firefox 嘅另外一種方法
<details>
<summary>詳細內容</summary>
1. 執行 pnpm 指令
```bash
@@ -104,7 +122,9 @@ pnpm dev
3. 喺瀏覽器度載入產生嘅 `extension-firefox/` 資料夾
#### 建立Firefox
</details>
#### 建置Firefox
建置延伸功能,要執行下底嘅指令

View File

@@ -10,7 +10,10 @@ This project is built using [Vite](https://vitejs.dev/), please make sure you ha
### Development (Chrome or Edge)
#### The First Method for Chrome or Edge (RECOMMENDED)
#### The First Method for Chrome or Edge
<details>
<summary>Show more</summary>
1. Run the pnpm command
@@ -30,8 +33,13 @@ pnpm start:chromium
2. Every time you change the extension, it will reload, and you can see the changes by refreshing the webpage
</details>
#### The Alternative Method for Chrome or Edge
<details>
<summary>Show more</summary>
1. Run the pnpm command
```bash
@@ -54,6 +62,8 @@ pnpm dev
After each modification, you need to click the [Reload Extensions](https://chromewebstore.google.com/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid) button and refresh the page to apply the changes.
</details>
#### Building (Chrome or Edge)
To build the extension, run
@@ -66,7 +76,10 @@ Then package it to the `extension` folder
### Development (Firefox)
#### The First Method for Firefox (RECOMMENDED)
#### The First Method for Firefox
<details>
<summary>Show more</summary>
1. Run the pnpm command
@@ -86,8 +99,13 @@ pnpm start:firefox
2. Every time you change the extension, it will reload, and you can see the changes by refreshing the webpage
</details>
#### The Alternative Method for Firefox
<details>
<summary>Show more</summary>
1. Run the pnpm command
```bash
@@ -104,6 +122,8 @@ pnpm dev
3. Load the generated `extension-firefox/` folder in the browser
</details>
#### Building (Firefox)
To build the extension, run