Changed "link" to "repu_url" and added "homepage_url"

This commit is contained in:
Lucas
2025-04-08 08:21:18 -07:00
parent a15b804068
commit ba13d5ced0
5 changed files with 1355 additions and 924 deletions

View File

@@ -97,7 +97,7 @@ def generate_contents(platform="all"):
for app in apps:
name = app.get("name", "")
description = app.get("description", "").replace("|", "-")
link = app.get("link", "#")
link = app.get("repo_url", "#")
tags = ""
"""
if app.get("tags"):

View File

@@ -15,7 +15,7 @@ headers = {
def update_application_data(app):
repo_name = app["link"].split("github.com/")[1]
repo_name = app["repo_url"].split("github.com/")[1]
repo_url = f'https://api.github.com/repos/{repo_name}'

View File

@@ -6,9 +6,7 @@ with open("source/data/applications.json", "r", encoding="utf-8") as file:
# Add "flags" and "stars" properties to each application
for app in data.get("applications", []):
app["last_commit"] = ""
app["language"] = ""
app["license"] = ""
app["homepage_url"] = ""
# Save the updated JSON back to the file
with open("source/data/applications.json", "w", encoding="utf-8") as file:

View File

@@ -25,7 +25,7 @@ def parse_readme(readme_path):
applications.append({
"name": name,
"description": description,
"link": link,
"repo_url": link,
"tags": [tag] if tag else [],
"platforms": platforms.split(),
"category": category