docs: update navigation style and fix issue

This commit is contained in:
none 2025-01-19 11:25:02 +08:00 committed by ReleTor
parent 8cc7734a92
commit 816e6fe7b2
55 changed files with 79 additions and 55 deletions

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! question "Since sing-box 1.11.0" !!! question "Since sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! question "自 sing-box 1.11.0 起" !!! question "自 sing-box 1.11.0 起"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! question "Since sing-box 1.11.0" !!! question "Since sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! question "自 sing-box 1.11.0 起" !!! question "自 sing-box 1.11.0 起"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! question "Since sing-box 1.11.0" !!! question "Since sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! question "自 sing-box 1.11.0 起" !!! question "自 sing-box 1.11.0 起"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.10.0" !!! quote "Changes in sing-box 1.10.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.10.0 中的更改" !!! quote "sing-box 1.10.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/alert-decagram status: changed
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/alert-decagram status: changed
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/alert-decagram status: changed
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/alert-decagram status: changed
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -8,6 +8,7 @@ sing-box 使用 JSON 作为配置文件格式。
{ {
"log": {}, "log": {},
"dns": {}, "dns": {},
"ntp": {},
"endpoints": [], "endpoints": [],
"inbounds": [], "inbounds": [],
"outbounds": [], "outbounds": [],
@ -22,6 +23,7 @@ sing-box 使用 JSON 作为配置文件格式。
|----------------|------------------------| |----------------|------------------------|
| `log` | [日志](./log/) | | `log` | [日志](./log/) |
| `dns` | [DNS](./dns/) | | `dns` | [DNS](./dns/) |
| `ntp` | [NTP](./ntp/) |
| `endpoints` | [端点](./endpoint/) | | `endpoints` | [端点](./endpoint/) |
| `inbounds` | [入站](./inbound/) | | `inbounds` | [入站](./inbound/) |
| `outbounds` | [出站](./outbound/) | | `outbounds` | [出站](./outbound/) |

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "Deprecated in sing-box 1.11.0" !!! failure "Deprecated in sing-box 1.11.0"
@ -8,7 +8,7 @@ icon: material/delete-clock
### Structure ### Structure
```json F ```json
{ {
"type": "block", "type": "block",
"tag": "block" "tag": "block"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "已在 sing-box 1.11.0 废弃" !!! failure "已在 sing-box 1.11.0 废弃"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/alert-decagram status: changed
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/alert-decagram status: changed
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "Deprecated in sing-box 1.11.0" !!! failure "Deprecated in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "已在 sing-box 1.11.0 废弃" !!! failure "已在 sing-box 1.11.0 废弃"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "Deprecated in sing-box 1.11.0" !!! failure "Deprecated in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "已在 sing-box 1.11.0 废弃" !!! failure "已在 sing-box 1.11.0 废弃"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "Deprecated in sing-box 1.8.0" !!! failure "Deprecated in sing-box 1.8.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "已在 sing-box 1.8.0 废弃" !!! failure "已在 sing-box 1.8.0 废弃"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "Deprecated in sing-box 1.8.0" !!! failure "Deprecated in sing-box 1.8.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! failure "已在 sing-box 1.8.0 废弃" !!! failure "已在 sing-box 1.8.0 废弃"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
# Route # Route

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
# 路由 # 路由

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
## Final actions ## Final actions

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
## 最终动作 ## 最终动作

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.10.0" !!! quote "Changes in sing-box 1.10.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.10.0 中的更改" !!! quote "sing-box 1.10.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! question "Since sing-box 1.10.0" !!! question "Since sing-box 1.10.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! question "自 sing-box 1.10.0 起" !!! question "自 sing-box 1.10.0 起"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.10.0" !!! quote "Changes in sing-box 1.10.0"
@ -74,7 +74,7 @@ Tag of rule-set.
==Required== ==Required==
List of [Headless Rule](../headless-rule/). List of [Headless Rule](./headless-rule/).
### Local or Remote Fields ### Local or Remote Fields

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.10.0 中的更改" !!! quote "sing-box 1.10.0 中的更改"
@ -74,7 +74,7 @@ icon: material/new-box
==必填== ==必填==
一组 [无头规则](../headless-rule/). 一组 [无头规则](./headless-rule/).
### 本地或远程字段 ### 本地或远程字段

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/new-box status: new
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! quote "Changes in sing-box 1.11.0" !!! quote "Changes in sing-box 1.11.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/delete-clock status: deprecated
--- ---
!!! quote "sing-box 1.11.0 中的更改" !!! quote "sing-box 1.11.0 中的更改"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/alert-decagram status: changed
--- ---
!!! quote "Changes in sing-box 1.10.0" !!! quote "Changes in sing-box 1.10.0"

View File

@ -1,5 +1,5 @@
--- ---
icon: material/alert-decagram status: changed
--- ---
!!! quote "sing-box 1.10.0 中的更改" !!! quote "sing-box 1.10.0 中的更改"

View File

@ -0,0 +1,20 @@
:root {
--md-status--changed: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"></path></svg>');
--md-status--deprecated: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 13h1.5v2.82l2.44 1.41-.75 1.3L15 16.69zm8 3c0 3.87-3.13 7-7 7-1.91 0-3.64-.76-4.9-2H8c-1.1 0-2-.9-2-2V7h12v2.29c2.89.86 5 3.54 5 6.71m-7-5c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m3-7v2H5V4h3.5l1-1h5l1 1z"></path></svg>');
--md-status--new: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 4c1.11 0 2 .89 2 2v12c0 1.11-.89 2-2 2H4c-1.11 0-2-.89-2-2V6c0-1.11.89-2 2-2zM8.5 15V9H7.25v3.5L4.75 9H3.5v6h1.25v-3.5L7.3 15zm5-4.74V9h-4v6h4v-1.25H11v-1.11h2.5v-1.26H11v-1.12zm7 3.74V9h-1.25v4.5h-1.12V10h-1.25v3.5h-1.13V9H14.5v5a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1"></path></svg>');
}
.md-status--changed::after {
mask-image: var(--md-status--changed);
-webkit-mask-image: var(--md-status--changed);
}
.md-status--deprecated::after {
mask-image: var(--md-status--deprecated);
-webkit-mask-image: var(--md-status--deprecated);
}
.md-status--new::after {
mask-image: var(--md-status--new);
-webkit-mask-image: var(--md-status--new);
}

View File

@ -188,6 +188,8 @@ extra:
- icon: fontawesome/brands/github - icon: fontawesome/brands/github
link: https://github.com/SagerNet/sing-box link: https://github.com/SagerNet/sing-box
generator: false generator: false
extra_css:
- stylesheets/extra.css
plugins: plugins:
- search - search
- i18n: - i18n: