Skip to content

Commit

Permalink
docs: enhance readability and consistency in README and build script
Browse files Browse the repository at this point in the history
Updated rule set names in README for better readability and consistency,
ensuring all rule set titles are formatted uniformly. Adjusted the build
script to reflect these changes, maintaining alignment between documentation
and code.
  • Loading branch information
liblaf committed Aug 9, 2024
1 parent ae1b1f2 commit a03f86b
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 68 deletions.
122 changes: 61 additions & 61 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# sing-box Rules

| Name | Download Link |
| ------------------- | ----------------------------------------------------------------------------------------------------- |
| πŸ“΅ RuleSet:ADs | [rule-set/ads.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/ads.srs) |
| πŸ”’ RuleSet:Private | [rule-set/private.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/private.srs) |
| πŸ‡¨πŸ‡³ RuleSet:CN | [rule-set/cn.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/cn.srs) |
| πŸ€– RuleSet:AI | [rule-set/ai.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/ai.srs) |
| 🍟 RuleSet:Emby | [rule-set/emby.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/emby.srs) |
| ☁️ RuleSet:Download | [rule-set/download.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/download.srs) |
| πŸ“Ί RuleSet:Media | [rule-set/media.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/media.srs) |
| πŸ“΅ GeoSite:ADs | [geosite/ads.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/geosite/ads.srs) |
| πŸ”’ GeoSite:Private | [geosite/private.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/geosite/private.srs) |
| πŸ‡¨πŸ‡³ GeoSite:CN | [geosite/private.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/geosite/cn.srs) |

- `GeoSite:*` does not contain `IP-CIDR` rules, useful for DNS Rule.
- [statistics](https://github.com/liblaf/sing-box-rules/blob/rule-sets/README.md).
| Name | Download Link |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| [πŸ“΅ RuleSet: ADs](#-ruleset-ads) | [rule-set/ads.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/ads.srs) |
| [πŸ”’ RuleSet: Private](#-ruleset-private) | [rule-set/private.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/private.srs) |
| [πŸ‡¨πŸ‡³ RuleSet: CN](#-ruleset-cn) | [rule-set/cn.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/cn.srs) |
| [πŸ€– RuleSet: AI](#-ruleset-ai) | [rule-set/ai.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/ai.srs) |
| [🍟 RuleSet: Emby](#-ruleset-emby) | [rule-set/emby.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/emby.srs) |
| [☁️ RuleSet: Download](#-ruleset-download) | [rule-set/download.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/download.srs) |
| [πŸ“Ί RuleSet: Media](#-ruleset-media) | [rule-set/media.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/rule-set/media.srs) |
| [πŸ“΅ GeoSite: ADs](#-ruleset-ads) | [geosite/ads.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/geosite/ads.srs) |
| [πŸ”’ GeoSite: Private](#-ruleset-private) | [geosite/private.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/geosite/private.srs) |
| [πŸ‡¨πŸ‡³ GeoSite: CN](#-ruleset-cn) | [geosite/private.srs](https://github.com/liblaf/sing-box-rules/raw/rule-sets/geosite/cn.srs) |

- `GeoSite: *` does not contain `IP-CIDR` rules, useful for DNS Rule.
- [statistics](https://github.com/liblaf/sing-box-rules/blob/rule-sets/README.md)

## Optimization

[optimization results](https://github.com/liblaf/sing-box-rules/blob/rule-sets/README.md).
[optimization results](https://github.com/liblaf/sing-box-rules/blob/rule-sets/README.md)

- remove duplicate rules
- merge `DOMAIN` with `DOMAIN-SUFFIX`
Expand All @@ -27,80 +27,80 @@
- merge `DOMAIN-SUFFIX` with `DOMAIN-KEYWORD`
- merge `IP-CIDR`

### πŸ“΅ RuleSet:ADs
### πŸ“΅ RuleSet: ADs

- include:
- [`blackmatrix7/Advertising.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Advertising)
- [`DustinWin/geosite-all.db`](https://github.com/DustinWin/ruleset_geodata): `ads`
- [`MetaCubeX/geosite.db`](https://github.com/MetaCubeX/meta-rules-dat): `*-ads` | `*-ads-all` | `*@ads`
- [blackmatrix7/Advertising.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Advertising)
- [DustinWin/geosite-all.db](https://github.com/DustinWin/ruleset_geodata): `ads`
- [MetaCubeX/geosite.db](https://github.com/MetaCubeX/meta-rules-dat): `*-ads` | `*-ads-all` | `*@ads`

### πŸ”’ RuleSet:Private
### πŸ”’ RuleSet: Private

- include:
- [`blackmatrix7/Lan.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Lan)
- [`DustinWin/geoip-all.db`](https://github.com/DustinWin/ruleset_geodata): `private`
- [`DustinWin/geosite-all.db`](https://github.com/DustinWin/ruleset_geodata): `private`
- [`MetaCubeX/geoip.db`](https://github.com/MetaCubeX/meta-rules-dat): `private`
- [`MetaCubeX/geosite.db`](https://github.com/MetaCubeX/meta-rules-dat): `private`
- [blackmatrix7/Lan.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Lan)
- [DustinWin/geoip-all.db](https://github.com/DustinWin/ruleset_geodata): `private`
- [DustinWin/geosite-all.db](https://github.com/DustinWin/ruleset_geodata): `private`
- [MetaCubeX/geoip.db](https://github.com/MetaCubeX/meta-rules-dat): `private`
- [MetaCubeX/geosite.db](https://github.com/MetaCubeX/meta-rules-dat): `private`
- exclude:
- [πŸ“΅ RuleSet:ADs](#-rulesetads)
- [πŸ“΅ RuleSet: ADs](#-ruleset-ads)

### πŸ‡¨πŸ‡³ RuleSet:CN
### πŸ‡¨πŸ‡³ RuleSet: CN

- include:
- [`blackmatrix7/ChinaMax.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/ChinaMax)
- [`blackmatrix7/Direct.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Direct)
- [`blackmatrix7/NTPService.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/NTPService)
- [`DustinWin/geoip-all.db`](https://github.com/DustinWin/ruleset_geodata): `cn`
- [`DustinWin/geosite-all.db`](https://github.com/DustinWin/ruleset_geodata): `cn`
- [`MetaCubeX/geoip.db`](https://github.com/MetaCubeX/meta-rules-dat): `cn`
- [`MetaCubeX/geosite.db`](https://github.com/MetaCubeX/meta-rules-dat): `*-cn` | `*-ntp*` | `*@cn` | `cn`
- [blackmatrix7/ChinaMax.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/ChinaMax)
- [blackmatrix7/Direct.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Direct)
- [blackmatrix7/NTPService.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/NTPService)
- [DustinWin/geoip-all.db](https://github.com/DustinWin/ruleset_geodata): `cn`
- [DustinWin/geosite-all.db](https://github.com/DustinWin/ruleset_geodata): `cn`
- [MetaCubeX/geoip.db](https://github.com/MetaCubeX/meta-rules-dat): `cn`
- [MetaCubeX/geosite.db](https://github.com/MetaCubeX/meta-rules-dat): `*-cn` | `*-ntp*` | `*@cn` | `cn`
- exclude:
- [πŸ“΅ RuleSet:ADs](#-rulesetads)
- [πŸ”’ RuleSet:Private](#-rulesetprivate)
- [πŸ“΅ RuleSet: ADs](#-ruleset-ads)
- [πŸ”’ RuleSet: Private](#-ruleset-private)

### πŸ€– RuleSet:AI
### πŸ€– RuleSet: AI

- include:
- [`blackmatrix7/Claude.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Claude)
- [`blackmatrix7/Copilot.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Copilot)
- [`blackmatrix7/Gemini.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Gemini)
- [`blackmatrix7/OpenAI.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/OpenAI)
- [`DustinWin/geosite-all.db`](https://github.com/DustinWin/ruleset_geodata): `ai`
- [`MetaCubeX/geosite.db`](https://github.com/MetaCubeX/meta-rules-dat): `openai`
- [blackmatrix7/Claude.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Claude)
- [blackmatrix7/Copilot.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Copilot)
- [blackmatrix7/Gemini.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Gemini)
- [blackmatrix7/OpenAI.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/OpenAI)
- [DustinWin/geosite-all.db](https://github.com/DustinWin/ruleset_geodata): `ai`
- [MetaCubeX/geosite.db](https://github.com/MetaCubeX/meta-rules-dat): `openai`
- exclude:
- [πŸ“΅ RuleSet:ADs](#-rulesetads)
- [πŸ“΅ RuleSet: ADs](#-ruleset-ads)

### 🍟 RuleSet:Emby
### 🍟 RuleSet: Emby

- include:
- [`NotSFC/Emby.json`](https://github.com/NotSFC/rulelist/blob/main/sing-box/Emby/Emby.json)
- [NotSFC/Emby.json](https://github.com/NotSFC/rulelist/blob/main/sing-box/Emby/Emby.json)

### ☁️ RuleSet:Download
### ☁️ RuleSet: Download

πŸ”΄ latency insensitive, 🟒 high bandwidth

- include:
- [`blackmatrix7/Developer.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Developer)
- [`blackmatrix7/Download.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Download)
- [`blackmatrix7/OneDrive.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/OneDrive)
- [`liblaf/download.json`](https://github.com/liblaf/sing-box-rules/blob/main/custom/download.json)
- [`MetaCubeX/geosite.db`](https://github.com/MetaCubeX/meta-rules-dat): `category-dev` | `onedrive`
- [blackmatrix7/Developer.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Developer)
- [blackmatrix7/Download.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/Download)
- [blackmatrix7/OneDrive.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/OneDrive)
- [liblaf/download.json](https://github.com/liblaf/sing-box-rules/blob/main/custom/download.json)
- [MetaCubeX/geosite.db](https://github.com/MetaCubeX/meta-rules-dat): `category-dev` | `onedrive`
- exclude:
- [πŸ“΅ RuleSet:ADs](#-rulesetads)
- [πŸ‡¨πŸ‡³ RuleSet:CN](#-rulesetcn)
- [πŸ“΅ RuleSet: ADs](#-ruleset-ads)
- [πŸ‡¨πŸ‡³ RuleSet: CN](#-ruleset-cn)

### πŸ“Ί RuleSet:Media
### πŸ“Ί RuleSet: Media

🟒 low latency, 🟒 high bandwidth

- include:
- [`blackmatrix7/GlobalMedia.list`](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/GlobalMedia)
- [`DustinWin/geosite-all.db`](https://github.com/DustinWin/ruleset_geodata): `youtube`
- [`MetaCubeX/geosite-lite.db`](https://github.com/MetaCubeX/meta-rules-dat): `proxymedia`, `youtube`
- [`MetaCubeX/geosite.db`](https://github.com/MetaCubeX/meta-rules-dat): `youtube`
- [blackmatrix7/GlobalMedia.list](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash/GlobalMedia)
- [DustinWin/geosite-all.db](https://github.com/DustinWin/ruleset_geodata): `youtube`
- [MetaCubeX/geosite-lite.db](https://github.com/MetaCubeX/meta-rules-dat): `proxymedia`, `youtube`
- [MetaCubeX/geosite.db](https://github.com/MetaCubeX/meta-rules-dat): `youtube`
- exclude:
- [πŸ“΅ RuleSet:ADs](#-rulesetads)
- [πŸ“΅ RuleSet: ADs](#-ruleset-ads)

## Acknowledgement

Expand Down
14 changes: 7 additions & 7 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ class Config:


RULE_SETS: list[Config] = [
Config(id="ads", fn=preset.ads, name="πŸ“΅ RuleSet:ADs", geosite=True),
Config(id="private", fn=preset.private, name="πŸ”’ RuleSet:Private", geosite=True),
Config(id="cn", fn=preset.cn, name="πŸ‡¨πŸ‡³ RuleSet:CN", geosite=True),
Config(id="ai", fn=preset.ai, name="πŸ€– RuleSet:AI"),
Config(id="emby", fn=preset.emby, name="🍟 RuleSet:Emby"),
Config(id="download", fn=preset.download, name="☁️ RuleSet:Download"),
Config(id="media", fn=preset.media, name="πŸ“Ί RuleSet:Media"),
Config(id="ads", fn=preset.ads, name="πŸ“΅ RuleSet: ADs", geosite=True),
Config(id="private", fn=preset.private, name="πŸ”’ RuleSet: Private", geosite=True),
Config(id="cn", fn=preset.cn, name="πŸ‡¨πŸ‡³ RuleSet: CN", geosite=True),
Config(id="ai", fn=preset.ai, name="πŸ€– RuleSet: AI"),
Config(id="emby", fn=preset.emby, name="🍟 RuleSet: Emby"),
Config(id="download", fn=preset.download, name="☁️ RuleSet: Download"),
Config(id="media", fn=preset.media, name="πŸ“Ί RuleSet: Media"),
]


Expand Down

0 comments on commit a03f86b

Please sign in to comment.