From 4b09205bc95b47c22f0ab4ea684873619e8b2262 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Wed, 25 Mar 2026 16:30:08 +0100 Subject: [PATCH] fix: zero warnings on mkdocs build, update actions to v4/v5 --- .github/workflows/deploy-site.yml | 4 ++-- scripts/generate_site.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml index 25a5315a..8d7e710b 100644 --- a/.github/workflows/deploy-site.yml +++ b/.github/workflows/deploy-site.yml @@ -43,7 +43,7 @@ jobs: mkdocs build - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v4 with: path: site/ @@ -56,4 +56,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5 diff --git a/scripts/generate_site.py b/scripts/generate_site.py index 54e50b4c..a4ede4e9 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -555,10 +555,10 @@ def generate_system_page( lines.append(f"- SHA1: `{sha1_full}`") lines.append(f"- MD5: `{md5_full}`") if plats: - plat_links = [_platform_link(p, p, "../../") for p in plats] + plat_links = [_platform_link(p, p, "../") for p in plats] lines.append(f"- Platforms: {', '.join(plat_links)}") if emus: - emu_links = [_emulator_link(e, "../../") for e in emus] + emu_links = [_emulator_link(e, "../") for e in emus] lines.append(f"- Emulators: {', '.join(emu_links)}") lines.append("") @@ -655,7 +655,7 @@ def generate_emulators_index(profiles: dict) -> str: lines.append("| Core | Points to |") lines.append("|------|-----------|") for name in sorted(aliases.keys()): - parent = aliases[name].get("alias_of", "unknown") + parent = aliases[name].get("alias_of", aliases[name].get("bios_identical_to", "unknown")) lines.append(f"| {name} | [{parent}]({parent}.md) |") lines.append("") @@ -665,7 +665,7 @@ def generate_emulators_index(profiles: dict) -> str: def generate_emulator_page(name: str, profile: dict, db: dict, platform_files: dict | None = None) -> str: if profile.get("type") == "alias": - parent = profile.get("alias_of", "unknown") + parent = profile.get("alias_of", profile.get("bios_identical_to", "unknown")) return ( f"# {name} - {SITE_NAME}\n\n" f"This core uses the same firmware as **{parent}**.\n\n"