1
0
mirror of https://codeberg.org/fediverse/fep.git synced 2026-08-05 11:46:04 +00:00
Files
fep/scripts/create_readme.py
T

19 lines
400 B
Python
Raw Normal View History

2024-11-15 11:22:01 +00:00
#!/usr/bin/env python
2024-12-16 08:40:56 +00:00
import json
from tools import index, Readme
2023-07-16 07:43:02 +00:00
with open("README.md", "w") as f1:
2023-10-27 13:42:33 +02:00
f1.writelines(Readme().content)
2024-12-16 08:40:56 +00:00
result = []
for fep in index():
data = fep.parsed_frontmatter
data["title"] = fep.title
2025-09-21 20:18:39 +02:00
data["implementations"] = fep.implementations
2024-12-16 08:40:56 +00:00
result.append(data)
with open("index.json", "w") as index_file:
json.dump(result, index_file, indent=2)