Update issue_moderator.yml (#2740)
* Update issue_moderator.yml Swaps Tachi Cloudflare link to Keiyoushi's link * Update issue_moderator.yml Swapped Cloudflare link to keiyoushi's site, removed period * Update issue_moderator.yml Re-adds periods back
This commit is contained in:
parent
025c675714
commit
312bb8c3b0
|
@ -1,3 +1,4 @@
|
||||||
|
import html
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
@ -107,3 +108,10 @@ with (REPO_DIR / "index.json").open("w", encoding="utf-8") as f:
|
||||||
with (REPO_DIR / "index.min.json").open("w", encoding="utf-8") as f:
|
with (REPO_DIR / "index.min.json").open("w", encoding="utf-8") as f:
|
||||||
json.dump(index_min_data, f, ensure_ascii=False, separators=(",", ":"))
|
json.dump(index_min_data, f, ensure_ascii=False, separators=(",", ":"))
|
||||||
|
|
||||||
|
with (REPO_DIR / "index.html").open("w", encoding="utf-8") as f:
|
||||||
|
f.write('<!DOCTYPE html>\n<html>\n<head>\n<meta charset="UTF-8">\n<title>apks</title>\n</head>\n<body>\n<pre>\n')
|
||||||
|
for entry in index_data:
|
||||||
|
apk_escaped = 'apk/' + html.escape(entry["apk"])
|
||||||
|
name_escaped = html.escape(entry["name"])
|
||||||
|
f.write(f'<a href="{apk_escaped}">{name_escaped}</a>\n')
|
||||||
|
f.write('</pre>\n</body>\n</html>\n')
|
||||||
|
|
Loading…
Reference in New Issue