Organized scripts folder

This commit is contained in:
Lucas
2025-03-22 17:27:30 -07:00
parent 65a5c66720
commit 5a6d90d72a
10 changed files with 1 additions and 19 deletions

View File

@@ -0,0 +1,26 @@
import json
# Generates mainheader with dynamic project count
def generate_mainheader():
with open("source/data/applications.json", "r", encoding="utf-8") as f:
data = json.load(f)
project_count = len(data.get("applications", []))
header_content = f"""
<table align="center">
<tr>
<td>🇺🇦 v0.5.2-beta</td>
</tr>
</table>
<h1 align="center">[ definitive-opensource ] </h1>
<p align="center">A definitive list of the best of everything open source</p>
<p align="center"><code>Status: Active</code> - <code>Projects: {project_count}</code></p>
"""
return header_content
if __name__ == "__main__":
generate_mainheader()