diff --git a/docs/configuration/dns/index.md b/docs/configuration/dns/index.md index 0756281d..75a96df7 100644 --- a/docs/configuration/dns/index.md +++ b/docs/configuration/dns/index.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/dns/index.zh.md b/docs/configuration/dns/index.zh.md index 76c07b6a..b9cee1d8 100644 --- a/docs/configuration/dns/index.zh.md +++ b/docs/configuration/dns/index.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/dns/rule.md b/docs/configuration/dns/rule.md index 1f04b299..941301eb 100644 --- a/docs/configuration/dns/rule.md +++ b/docs/configuration/dns/rule.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/dns/rule.zh.md b/docs/configuration/dns/rule.zh.md index bf0a03e2..f1bbeec1 100644 --- a/docs/configuration/dns/rule.zh.md +++ b/docs/configuration/dns/rule.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/dns/rule_action.md b/docs/configuration/dns/rule_action.md index af19131f..c8d0c2dd 100644 --- a/docs/configuration/dns/rule_action.md +++ b/docs/configuration/dns/rule_action.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! question "Since sing-box 1.11.0" diff --git a/docs/configuration/dns/rule_action.zh.md b/docs/configuration/dns/rule_action.zh.md index 219a5fd7..25accbcf 100644 --- a/docs/configuration/dns/rule_action.zh.md +++ b/docs/configuration/dns/rule_action.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! question "自 sing-box 1.11.0 起" diff --git a/docs/configuration/endpoint/index.md b/docs/configuration/endpoint/index.md index e40333db..7d1ef4fb 100644 --- a/docs/configuration/endpoint/index.md +++ b/docs/configuration/endpoint/index.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! question "Since sing-box 1.11.0" diff --git a/docs/configuration/endpoint/index.zh.md b/docs/configuration/endpoint/index.zh.md index 69ba2d09..f8d8fabc 100644 --- a/docs/configuration/endpoint/index.zh.md +++ b/docs/configuration/endpoint/index.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! question "自 sing-box 1.11.0 起" diff --git a/docs/configuration/endpoint/wireguard.md b/docs/configuration/endpoint/wireguard.md index 65bb6929..e18ea85b 100644 --- a/docs/configuration/endpoint/wireguard.md +++ b/docs/configuration/endpoint/wireguard.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! question "Since sing-box 1.11.0" diff --git a/docs/configuration/endpoint/wireguard.zh.md b/docs/configuration/endpoint/wireguard.zh.md index 918e7cbf..5172b438 100644 --- a/docs/configuration/endpoint/wireguard.zh.md +++ b/docs/configuration/endpoint/wireguard.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! question "自 sing-box 1.11.0 起" diff --git a/docs/configuration/experimental/clash-api.md b/docs/configuration/experimental/clash-api.md index 7425143e..b6cc783c 100644 --- a/docs/configuration/experimental/clash-api.md +++ b/docs/configuration/experimental/clash-api.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.10.0" diff --git a/docs/configuration/experimental/clash-api.zh.md b/docs/configuration/experimental/clash-api.zh.md index b3d8aeaf..4d245581 100644 --- a/docs/configuration/experimental/clash-api.zh.md +++ b/docs/configuration/experimental/clash-api.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.10.0 中的更改" diff --git a/docs/configuration/inbound/hysteria2.md b/docs/configuration/inbound/hysteria2.md index 3b7332b0..01728f9b 100644 --- a/docs/configuration/inbound/hysteria2.md +++ b/docs/configuration/inbound/hysteria2.md @@ -1,5 +1,5 @@ --- -icon: material/alert-decagram +status: changed --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/inbound/hysteria2.zh.md b/docs/configuration/inbound/hysteria2.zh.md index 5ad5d75d..2c99084f 100644 --- a/docs/configuration/inbound/hysteria2.zh.md +++ b/docs/configuration/inbound/hysteria2.zh.md @@ -1,5 +1,5 @@ --- -icon: material/alert-decagram +status: changed --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/inbound/tun.md b/docs/configuration/inbound/tun.md index b6bf5c75..ffbba114 100644 --- a/docs/configuration/inbound/tun.md +++ b/docs/configuration/inbound/tun.md @@ -1,5 +1,5 @@ --- -icon: material/alert-decagram +status: changed --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/inbound/tun.zh.md b/docs/configuration/inbound/tun.zh.md index c9bd844d..cff4dfca 100644 --- a/docs/configuration/inbound/tun.zh.md +++ b/docs/configuration/inbound/tun.zh.md @@ -1,5 +1,5 @@ --- -icon: material/alert-decagram +status: changed --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/index.zh.md b/docs/configuration/index.zh.md index 6aeb4857..b639c72a 100644 --- a/docs/configuration/index.zh.md +++ b/docs/configuration/index.zh.md @@ -8,6 +8,7 @@ sing-box 使用 JSON 作为配置文件格式。 { "log": {}, "dns": {}, + "ntp": {}, "endpoints": [], "inbounds": [], "outbounds": [], @@ -22,6 +23,7 @@ sing-box 使用 JSON 作为配置文件格式。 |----------------|------------------------| | `log` | [日志](./log/) | | `dns` | [DNS](./dns/) | +| `ntp` | [NTP](./ntp/) | | `endpoints` | [端点](./endpoint/) | | `inbounds` | [入站](./inbound/) | | `outbounds` | [出站](./outbound/) | diff --git a/docs/configuration/outbound/block.md b/docs/configuration/outbound/block.md index f29120cc..aa686d31 100644 --- a/docs/configuration/outbound/block.md +++ b/docs/configuration/outbound/block.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "Deprecated in sing-box 1.11.0" @@ -8,7 +8,7 @@ icon: material/delete-clock ### Structure -```json F +```json { "type": "block", "tag": "block" diff --git a/docs/configuration/outbound/block.zh.md b/docs/configuration/outbound/block.zh.md index 822478ce..6c80e095 100644 --- a/docs/configuration/outbound/block.zh.md +++ b/docs/configuration/outbound/block.zh.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "已在 sing-box 1.11.0 废弃" diff --git a/docs/configuration/outbound/direct.md b/docs/configuration/outbound/direct.md index 3e28db8f..364ec927 100644 --- a/docs/configuration/outbound/direct.md +++ b/docs/configuration/outbound/direct.md @@ -1,5 +1,5 @@ --- -icon: material/alert-decagram +status: changed --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/outbound/direct.zh.md b/docs/configuration/outbound/direct.zh.md index 55d3bf8c..16749a2c 100644 --- a/docs/configuration/outbound/direct.zh.md +++ b/docs/configuration/outbound/direct.zh.md @@ -1,5 +1,5 @@ --- -icon: material/alert-decagram +status: changed --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/outbound/dns.md b/docs/configuration/outbound/dns.md index d7336041..5e8ae663 100644 --- a/docs/configuration/outbound/dns.md +++ b/docs/configuration/outbound/dns.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "Deprecated in sing-box 1.11.0" diff --git a/docs/configuration/outbound/dns.zh.md b/docs/configuration/outbound/dns.zh.md index 3db2fefb..91ad4b2a 100644 --- a/docs/configuration/outbound/dns.zh.md +++ b/docs/configuration/outbound/dns.zh.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "已在 sing-box 1.11.0 废弃" diff --git a/docs/configuration/outbound/hysteria2.md b/docs/configuration/outbound/hysteria2.md index 77063fb4..1da197db 100644 --- a/docs/configuration/outbound/hysteria2.md +++ b/docs/configuration/outbound/hysteria2.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/outbound/hysteria2.zh.md b/docs/configuration/outbound/hysteria2.zh.md index 0c5a631e..6f63f5f8 100644 --- a/docs/configuration/outbound/hysteria2.zh.md +++ b/docs/configuration/outbound/hysteria2.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/outbound/wireguard.md b/docs/configuration/outbound/wireguard.md index 96c5dc75..6f1c8ef1 100644 --- a/docs/configuration/outbound/wireguard.md +++ b/docs/configuration/outbound/wireguard.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "Deprecated in sing-box 1.11.0" diff --git a/docs/configuration/outbound/wireguard.zh.md b/docs/configuration/outbound/wireguard.zh.md index c4e77c24..055eeb09 100644 --- a/docs/configuration/outbound/wireguard.zh.md +++ b/docs/configuration/outbound/wireguard.zh.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "已在 sing-box 1.11.0 废弃" diff --git a/docs/configuration/route/geoip.md b/docs/configuration/route/geoip.md index a045574a..5dc04db7 100644 --- a/docs/configuration/route/geoip.md +++ b/docs/configuration/route/geoip.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "Deprecated in sing-box 1.8.0" diff --git a/docs/configuration/route/geoip.zh.md b/docs/configuration/route/geoip.zh.md index eb7bbe2d..24f482e5 100644 --- a/docs/configuration/route/geoip.zh.md +++ b/docs/configuration/route/geoip.zh.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "已在 sing-box 1.8.0 废弃" diff --git a/docs/configuration/route/geosite.md b/docs/configuration/route/geosite.md index 9a1b9dce..77d04e71 100644 --- a/docs/configuration/route/geosite.md +++ b/docs/configuration/route/geosite.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "Deprecated in sing-box 1.8.0" diff --git a/docs/configuration/route/geosite.zh.md b/docs/configuration/route/geosite.zh.md index 7cec5b20..fff38e9d 100644 --- a/docs/configuration/route/geosite.zh.md +++ b/docs/configuration/route/geosite.zh.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! failure "已在 sing-box 1.8.0 废弃" diff --git a/docs/configuration/route/index.md b/docs/configuration/route/index.md index 1a1919e9..6cc8ee98 100644 --- a/docs/configuration/route/index.md +++ b/docs/configuration/route/index.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- # Route diff --git a/docs/configuration/route/index.zh.md b/docs/configuration/route/index.zh.md index a224ddc4..a5a667c0 100644 --- a/docs/configuration/route/index.zh.md +++ b/docs/configuration/route/index.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- # 路由 diff --git a/docs/configuration/route/rule.md b/docs/configuration/route/rule.md index 43954a78..0ba61824 100644 --- a/docs/configuration/route/rule.md +++ b/docs/configuration/route/rule.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/route/rule.zh.md b/docs/configuration/route/rule.zh.md index 8deab2f3..069ca252 100644 --- a/docs/configuration/route/rule.zh.md +++ b/docs/configuration/route/rule.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/route/rule_action.md b/docs/configuration/route/rule_action.md index fae52e85..f6ca917d 100644 --- a/docs/configuration/route/rule_action.md +++ b/docs/configuration/route/rule_action.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- ## Final actions diff --git a/docs/configuration/route/rule_action.zh.md b/docs/configuration/route/rule_action.zh.md index 2f558f4e..cc676ed1 100644 --- a/docs/configuration/route/rule_action.zh.md +++ b/docs/configuration/route/rule_action.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- ## 最终动作 diff --git a/docs/configuration/route/sniff.md b/docs/configuration/route/sniff.md index 40de038c..d0784ee5 100644 --- a/docs/configuration/route/sniff.md +++ b/docs/configuration/route/sniff.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.10.0" diff --git a/docs/configuration/route/sniff.zh.md b/docs/configuration/route/sniff.zh.md index 4efa4538..85249ad7 100644 --- a/docs/configuration/route/sniff.zh.md +++ b/docs/configuration/route/sniff.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.10.0 中的更改" diff --git a/docs/configuration/rule-set/adguard.md b/docs/configuration/rule-set/adguard.md index bda73794..2f7ccd24 100644 --- a/docs/configuration/rule-set/adguard.md +++ b/docs/configuration/rule-set/adguard.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! question "Since sing-box 1.10.0" diff --git a/docs/configuration/rule-set/adguard.zh.md b/docs/configuration/rule-set/adguard.zh.md index 026f2e0b..bc676e5b 100644 --- a/docs/configuration/rule-set/adguard.zh.md +++ b/docs/configuration/rule-set/adguard.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! question "自 sing-box 1.10.0 起" diff --git a/docs/configuration/rule-set/headless-rule.md b/docs/configuration/rule-set/headless-rule.md index bdad22f0..99f42a7b 100644 --- a/docs/configuration/rule-set/headless-rule.md +++ b/docs/configuration/rule-set/headless-rule.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/rule-set/headless-rule.zh.md b/docs/configuration/rule-set/headless-rule.zh.md index c5281504..72931522 100644 --- a/docs/configuration/rule-set/headless-rule.zh.md +++ b/docs/configuration/rule-set/headless-rule.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/rule-set/index.md b/docs/configuration/rule-set/index.md index bed3fb54..493b37fe 100644 --- a/docs/configuration/rule-set/index.md +++ b/docs/configuration/rule-set/index.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.10.0" @@ -74,7 +74,7 @@ Tag of rule-set. ==Required== -List of [Headless Rule](../headless-rule/). +List of [Headless Rule](./headless-rule/). ### Local or Remote Fields diff --git a/docs/configuration/rule-set/index.zh.md b/docs/configuration/rule-set/index.zh.md index 083c06bd..adf6ec84 100644 --- a/docs/configuration/rule-set/index.zh.md +++ b/docs/configuration/rule-set/index.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.10.0 中的更改" @@ -74,7 +74,7 @@ icon: material/new-box ==必填== -一组 [无头规则](../headless-rule/). +一组 [无头规则](./headless-rule/). ### 本地或远程字段 diff --git a/docs/configuration/rule-set/source-format.md b/docs/configuration/rule-set/source-format.md index 1dcc1d44..18ab094b 100644 --- a/docs/configuration/rule-set/source-format.md +++ b/docs/configuration/rule-set/source-format.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/rule-set/source-format.zh.md b/docs/configuration/rule-set/source-format.zh.md index 3dacaea7..08425ac4 100644 --- a/docs/configuration/rule-set/source-format.zh.md +++ b/docs/configuration/rule-set/source-format.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/shared/dial.md b/docs/configuration/shared/dial.md index 5f654ae2..4503d736 100644 --- a/docs/configuration/shared/dial.md +++ b/docs/configuration/shared/dial.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/shared/dial.zh.md b/docs/configuration/shared/dial.zh.md index ab83c44c..7acd87b0 100644 --- a/docs/configuration/shared/dial.zh.md +++ b/docs/configuration/shared/dial.zh.md @@ -1,5 +1,5 @@ --- -icon: material/new-box +status: new --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/shared/listen.md b/docs/configuration/shared/listen.md index 3e1b000f..d1fb7fd6 100644 --- a/docs/configuration/shared/listen.md +++ b/docs/configuration/shared/listen.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! quote "Changes in sing-box 1.11.0" diff --git a/docs/configuration/shared/listen.zh.md b/docs/configuration/shared/listen.zh.md index 4f8ca9d6..94425a93 100644 --- a/docs/configuration/shared/listen.zh.md +++ b/docs/configuration/shared/listen.zh.md @@ -1,5 +1,5 @@ --- -icon: material/delete-clock +status: deprecated --- !!! quote "sing-box 1.11.0 中的更改" diff --git a/docs/configuration/shared/tls.md b/docs/configuration/shared/tls.md index 7a6c9d5e..116b5b26 100644 --- a/docs/configuration/shared/tls.md +++ b/docs/configuration/shared/tls.md @@ -1,5 +1,5 @@ --- -icon: material/alert-decagram +status: changed --- !!! quote "Changes in sing-box 1.10.0" diff --git a/docs/configuration/shared/tls.zh.md b/docs/configuration/shared/tls.zh.md index b254e083..c2ff7335 100644 --- a/docs/configuration/shared/tls.zh.md +++ b/docs/configuration/shared/tls.zh.md @@ -1,5 +1,5 @@ --- -icon: material/alert-decagram +status: changed --- !!! quote "sing-box 1.10.0 中的更改" diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 00000000..be9fd4a3 --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,20 @@ +:root { + --md-status--changed: url('data:image/svg+xml;charset=utf-8,'); + --md-status--deprecated: url('data:image/svg+xml;charset=utf-8,'); + --md-status--new: url('data:image/svg+xml;charset=utf-8,'); +} + +.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); +} diff --git a/mkdocs.yml b/mkdocs.yml index 4854fa4a..5721bc19 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -188,6 +188,8 @@ extra: - icon: fontawesome/brands/github link: https://github.com/SagerNet/sing-box generator: false +extra_css: + - stylesheets/extra.css plugins: - search - i18n: