Skip to content

Commit

Permalink
Fix wiki entries (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
LightSage authored Dec 30, 2024
1 parent ef83209 commit 7e56b57
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,10 @@ def main(sourceFolder, docsDir: str, ghToken: str, priorityOnlyMode: bool) -> No
if "website" not in app and api["homepage"] != "" and api["homepage"] is not None:
app["website"] = api["homepage"]

if "wiki" not in app and api["has_wiki"] and gh_req.get(f"https://raw.githubusercontent.com/wiki/{app['github']}/Home.md").status_code != 404:
app["wiki"] = f"{api['html_url']}/wiki"
if "wiki" not in app and api["has_wiki"]:
_req = requests.get(f"https://raw.githubusercontent.com/wiki/{app['github']}/Home.md")
if _req.status_code != 404:
app["wiki"] = f"{api['html_url']}/wiki"

if api["license"]:
if "license" not in app:
Expand Down

0 comments on commit 7e56b57

Please sign in to comment.