Skip to content

Commit 10a4f98

Browse files
committed
refactor(sponsor_gen.py): 简化路径配置
- 移除了 BASE_DIR 变量,直接使用字符串路径 - 优化了路径配置,提高了代码的可读性和维护性
1 parent 38364d8 commit 10a4f98

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/sponsor_gen.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
# 路径配置
66
BASE_DIR = ""
7-
SPONSOR_JSON = BASE_DIR / "docs" / "sponsor.json"
8-
SPONSOR_MD = BASE_DIR / "docs" / "Sponsor.md"
9-
OUTPUT_MD = BASE_DIR / "docs" / "Sponsor.md" # 直接覆盖原文件
7+
SPONSOR_JSON = "docs/sponsor.json"
8+
SPONSOR_MD = "docs/Sponsor.md"
9+
OUTPUT_MD = "docs/Sponsor.md" # 直接覆盖原文件
1010

1111
def generate_sponsor_table():
1212
# 读取赞助者数据

0 commit comments

Comments
 (0)