[新規追加] ドキュメントのエンドポイントとマッピングの検証スクリプトを追加

This commit is contained in:
misyaguziya
2025-10-09 13:15:01 +09:00
parent 5efa9c37d6
commit e67242a0c4
5 changed files with 353 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from pathlib import Path
p=Path(__file__).resolve().parents[1]/'docs'/'api.md'
text=p.read_text(encoding='utf-8')
lines=[]
for line in text.splitlines():
stripped=line.strip()
# Remove exact umbrella placeholder tokens or standalone list entries
if stripped in ('- /set/enable', '- /set/disable', '- /get/data/', '/set/enable', '/set/disable', '/get/data/'):
continue
# Remove lines that are just '/get/data' or '/set/data' or '/run/' etc
if stripped in ('/get/data', '/set/data', '/run/', '/get', '/set', '/run'):
continue
lines.append(line)
new='\n'.join(lines)
p.write_text(new,encoding='utf-8')
print('cleaned')