mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-04-13 12:22:33 -05:00
fix: zero warnings on mkdocs build, update actions to v4/v5
This commit is contained in:
4
.github/workflows/deploy-site.yml
vendored
4
.github/workflows/deploy-site.yml
vendored
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user