Skip to content

Commit

Permalink
docs: update faq
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Mar 8, 2024
1 parent 2214d55 commit 9096868
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default defineConfig({
text: 'Others',
items: [
{ text: 'FAQ', link: '/others/faq' },
{ text: 'Q&A Convention ', link: '/others/issues' },
{
text: 'How To Ask',
link: '/others/how-to-ask'
Expand Down Expand Up @@ -80,6 +81,7 @@ export default defineConfig({
text: '其他',
items: [
{ text: '常见问题', link: '/zh-CN/others/faq' },
{ text: '问答公约', link: '/zh-CN/others/issues' },
{
text: '如何提问',
link: '/zh-CN/others/how-to-ask'
Expand Down
40 changes: 36 additions & 4 deletions others/faq.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,46 @@
# FAQ
# Frequently Asked Questions

This section contains frequently asked questions about _Clash Nyanpasu_.
If you have any questions, please check here first.
This section contains common questions about _Clash Nyanpasu_.
Please check here first if you have any questions.

## Application

### 1. macOS "Clash Nyanpasu" is damaged and can't be opened

Open the **Terminal** and run:
Open **Terminal** and run:

```bash
sudo xattr -r -d com.apple.quarantine /Applications/Clash\ Nyanpasu.app
```

### 2. Where is the Clash Nyanpasu application / logs directory?

There are currently two ways to directly open it:

- Right-click on the tray icon and choose **Open Dir - App Dir**. You can then open the application directory.
- Enter the main program interface, go to the **Settings page**, find the **Open App Dir** and click the button to open the application directory.

> Clash Core directory and Logs directory are also accessible in the same way.
In situations where you cannot access the tray or enter the main interface, you can directly enter the path to open it. (The clash core directory is in the installation directory)

#### Windows

::: info Tip
Starting from v1.5.1, Clash Nyanpasu supports customizing the application directory on Windows. If you have used this feature, please replace the path accordingly.
:::

- Application directory: `C:/Users/Username/.config/clash-nyanpasu`
- Logs directory: `C:/Users/Username/.config/clash-nyanpasu/logs`

#### macOS & Linux

- Application directory: `$HOME/.config/clash-nyanpasu`
- Logs directory: `$HOME/.config/clash-nyanpasu/logs`

### 3. How to modify the diary level?

- In the **Miscellaneous** option on the **Settings page**, you can find **App Logs Level** to modify the diary level, which takes effect immediately after saving.
- Find `verge.yaml` (later may be renamed to `nyanpasu.yaml`) in the **App Dir**, find `app_log_level` to modify the diary level, and restart the program after saving.

> Optional diary levels include: `trace`, `debug`, `info`, `warn`, `error`, or leave blank (no log recording).
4 changes: 1 addition & 3 deletions others/issues.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<! -- thanks https://github.com/Ehviewer-Overhauled/Ehviewer/issues/61 templates. -->
<!-- thanks https://github.com/Ehviewer-Overhauled/Ehviewer/issues/61 templates. -->

# Q&A Convention

Expand Down Expand Up @@ -37,5 +37,3 @@ No, I personally (keiko233) hate advertisements.
### What is the significance of this project?

If you're careful, you'll notice that this project has been around since before many Clash projects were discontinued, and it was initially intended for my (keiko233) own use, but some of the PRs I submitted to Verge were not accepted (merged) for unknown reasons. So I forked a copy and changed it for my own use, and I have nothing to do with what happened after that.

Translated with DeepL.com (free version)
32 changes: 32 additions & 0 deletions zh-CN/others/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,35 @@
```bash
sudo xattr -r -d com.apple.quarantine /Applications/Clash\ Nyanpasu.app
```

### 2. Clash Nyanpasu 应用/日记目录在哪里?

目前有两种方式可以直接打开:

- 右键托盘图标,选择 **打开目录 - 应用目录**。即可打开应用目录。
- 进入主程序节目,进入 **设置页**,找到 **应用目录** 并点击按钮,点击即可打开应用目录。

> 内核目录、日记目录也同样可以。
在无法访问托盘,无法进入主界面的情况,我们可以直接输入路径打开。(内核目录在安装目录下)

#### Windows

::: info 提示
自 v1.5.1 起,Clash Nyanpasu 支持在 Windows 上自定义应用目录,如果您使用了此功能,请自行替换路径。
:::

- 应用目录:`C:/Users/用户名/.config/clash-nyanpasu`
- 日记目录:`C:/Users/用户名/.config/clash-nyanpasu/logs`

#### macOS & Linux

- 应用目录:`$HOME/.config/clash-nyanpasu`
- 日记目录:`$HOME/.config/clash-nyanpasu/logs`

### 3. 如何修改日记等级?

-**设置页****杂项设置** 选项中,可以找到 **App 日记等级** 修改日记等级,保存后立即生效。
-**应用目录** 下找到 `verge.yaml`(之后可能更名为 `nyanpasu.yaml`),找到 `app_log_level` 修改日记等级,保存后需要重启程序。

> 可选的日记级别有:`trace``debug``info``warn``error`、留空(不记录日记)。

0 comments on commit 9096868

Please sign in to comment.