diff --git a/docs/configuration/dns/index.md b/docs/configuration/dns/index.md index 0756281dbf..75a96df74e 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 76c07b6a2c..b9cee1d8ff 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 1f04b2999d..941301ebc4 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 bf0a03e23a..f1bbeec1fb 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 af19131f62..c8d0c2dd99 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 219a5fd757..25accbcf17 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 e40333db35..7d1ef4fbdd 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 69ba2d09ce..f8d8fabc73 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 65bb692910..e18ea85b1f 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 918e7cbfe3..5172b4387a 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 7425143eb3..b6cc783c94 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 b3d8aeaf99..4d24558188 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 3b7332b064..01728f9bbf 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 5ad5d75d6e..2c99084feb 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 b6bf5c75f3..ffbba11408 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 c9bd844d41..cff4dfcace 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 6aeb4857f4..b639c72a28 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 f29120ccf2..aa686d3134 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 822478cea8..6c80e09576 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 3e28db8fc6..364ec92733 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 55d3bf8c2d..16749a2c42 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 d73360413e..5e8ae66371 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 3db2fefb0a..91ad4b2a8d 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 77063fb481..1da197db32 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 0c5a631e10..6f63f5f8d3 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 96c5dc7588..6f1c8ef1ad 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 c4e77c24f8..055eeb0952 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 a045574aa0..5dc04db7a8 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 eb7bbe2d10..24f482e52a 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 9a1b9dce03..77d04e71b8 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 7cec5b2086..fff38e9d71 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 1a1919e94b..6cc8ee98af 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 a224ddc4c5..a5a667c013 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 43954a78c9..0ba61824bb 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 8deab2f332..069ca252f0 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 fae52e8540..f6ca917d14 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 2f558f4e46..cc676ed1e7 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 40de038cb2..d0784ee5b9 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 4efa453814..85249ad76b 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 bda7379451..2f7ccd24dd 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 026f2e0bea..bc676e5b89 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 bdad22f0dc..99f42a7bee 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 c5281504f6..72931522aa 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 bed3fb5466..493b37fec3 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 083c06bd3a..adf6ec84b7 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 1dcc1d4470..18ab094b67 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 3dacaea7c8..08425ac4fa 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 5f654ae247..4503d73680 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 ab83c44c69..7acd87b02d 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 3e1b000f90..d1fb7fd6a6 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 4f8ca9d6a2..94425a931a 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 7a6c9d5e08..116b5b260a 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 b254e08389..c2ff733525 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 0000000000..be9fd4a303 --- /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 4854fa4a60..5721bc19b4 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: