first commit

This commit is contained in:
dekun
2026-06-06 14:02:22 +08:00
commit f48b3c510b
764 changed files with 44588 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import os
DOCS_DIR = "docs"
# 获取脚本所在的路径
script_dir = os.path.dirname(os.path.abspath(__file__))
work_dir = os.path.join(script_dir, DOCS_DIR)
content = []
for root, _, files in os.walk(work_dir):
for file in files:
if not str(file).endswith(".md"):
continue
path = os.path.join(root, file)
with open(path) as f:
lines = f.readlines()
# 从第五行开始为标题
desc = lines[4].strip()[2:]
basename = os.path.basename(root)
content.append(f"|[{basename}]({basename}/)|{desc}|")
content.sort()
print("\n".join(content))