Chore: new way to attach description

This commit is contained in:
SukkaW
2025-07-21 15:57:35 +08:00
parent de1f817eec
commit 3a7f15ca6c
10 changed files with 74 additions and 71 deletions

View File

@@ -21,18 +21,16 @@ export const buildChnCidr = task(require.main === module, __filename)(async (spa
return Promise.all([
new IPListOutput(span, 'china_ip', false)
.withTitle('Sukka\'s Ruleset - Mainland China IPv4 CIDR')
.withDescription([
...description,
'Data from https://misaka.io (misakaio @ GitHub)'
])
.withDescription(description)
.appendDataSource('https://chnroutes2.cdn.skk.moe/chnroutes.txt')
.bulkAddCIDR4(filteredCidr4)
.write(),
new IPListOutput(span, 'china_ip_ipv6', false)
.withTitle('Sukka\'s Ruleset - Mainland China IPv6 CIDR')
.withDescription([
...description,
'Data from https://github.com/gaoyifan/china-operator-ip'
])
.withDescription(description)
.appendDataSource(
'https://github.com/gaoyifan/china-operator-ip'
)
.bulkAddCIDR6(cidr6)
.write()
]);