From ab7e300c1955ea28eb01ba4490bf22cb362bfd14 Mon Sep 17 00:00:00 2001
From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com>
Date: Tue, 24 Nov 2026 10:26:13 +0100
Subject: [PATCH] refactor: tidy the repository root
README.md and CONTRIBUTING.md open with a comment naming their
generator, generate_readme.py --check fails on a hand edit in
validate.yml and pr_checks.py, and .gitattributes marks the pipeline
outputs as generated, held equal to core/generated.py by a test.
_mame_clones.json becomes mame_clones.json, still written beside the
scanned bios/ tree, and now triggers both workflows (coverage reads it).
docs_assets/ moves to website/assets/, which Astro does not read as
content. ACCESSIBILITY.md becomes wiki/accessibility.md, linked from the
README and the installer page. The screenshot list moves to
wiki/images-wanted.md: nothing read docs_assets/screens/.
The architecture map names every root entry (test_repository_map),
platforms/README.md keeps only what this folder holds, the reference
index lists archive-recipes and measurements, and reference-terms no
longer defines Profile twice nor repeats the glossary's Pack.
---
.gitattributes | 21 +++
.github/workflows/deploy-site.yml | 3 +-
.github/workflows/validate.yml | 18 ++-
CONTRIBUTING.md | 3 +
README.md | 6 +-
_mame_clones.json => mame_clones.json | 0
platforms/README.md | 128 ++++++++----------
schemas/database.schema.json | 2 +-
scripts/collection/clonemap.py | 2 +-
scripts/collection/record.py | 2 +-
scripts/core/artifacts.py | 24 ++--
scripts/dedup.py | 2 +-
scripts/devtools/prchecks.py | 2 +
scripts/fetch_site_images.py | 2 +-
scripts/generate_readme.py | 13 +-
scripts/make_demo.py | 10 +-
scripts/make_og_cards.py | 2 +-
scripts/make_site_icons.py | 2 +-
scripts/model/database.py | 6 +-
scripts/sitegen/brand.py | 2 +-
scripts/sitegen/build.py | 6 +-
scripts/sitegen/coverage.py | 2 +-
scripts/sitegen/demovariants.py | 2 +-
scripts/sitegen/guidepage.py | 2 +-
scripts/sitegen/imagefetch.py | 2 +-
scripts/sitegen/ogcards.py | 8 +-
scripts/sitegen/pageprep.py | 4 +-
scripts/sitegen/readme.py | 43 ++++--
scripts/sitegen/runlinks.py | 2 +-
scripts/sitegen/starlight.py | 2 +-
scripts/sitegen/steps.py | 2 +-
tests/test_audit_docs.py | 2 +-
tests/test_audit_resolution.py | 8 +-
tests/test_dedup.py | 6 +-
tests/test_doc_pages_tools.py | 2 +-
tests/test_optional_dependencies.py | 2 +-
tests/test_repository_map.py | 109 +++++++++++++++
tests/test_site_components.py | 2 +-
tests/test_site_demo.py | 2 +-
tests/test_site_images.py | 14 +-
tests/test_site_integration.py | 2 +-
tests/test_site_nav.py | 2 +-
tests/test_site_render.py | 4 +-
tests/test_site_systems.py | 4 +-
.../assets}/brand/apple-touch-icon.png | Bin
.../assets}/brand/favicon-32.png | Bin
.../assets}/brand/favicon.svg | 0
.../assets}/brand/logo.svg | 0
.../assets}/demo/demo.json | 0
.../assets}/demo/install-handheld.mp4 | Bin
.../assets}/demo/install-handheld.png | Bin
.../assets}/demo/install-handheld.tape | 0
.../assets}/demo/install-handheld.webm | Bin
.../assets}/demo/install.gif | Bin
.../assets}/demo/install.mp4 | Bin
.../assets}/demo/install.png | Bin
.../assets}/demo/install.tape | 0
.../assets}/demo/install.webm | Bin
.../assets}/logos/amberelec.webp | Bin
.../assets}/logos/android.svg | 0
.../assets}/logos/batocera.svg | 0
.../assets}/logos/bizhawk.webp | Bin
.../assets}/logos/emudeck.webp | Bin
.../assets}/logos/emuelec.webp | Bin
.../assets}/logos/iphone-and-ipad.svg | 0
.../assets}/logos/knulli.webp | Bin
.../assets}/logos/lakka.svg | 0
.../assets}/logos/linux-handhelds.svg | 0
.../assets}/logos/minui.webp | Bin
.../assets}/logos/misterfpga.webp | Bin
.../assets}/logos/myminui.webp | Bin
.../assets}/logos/nextui.webp | Bin
.../assets}/logos/recalbox.svg | 0
.../assets}/logos/retroarch.svg | 0
.../assets}/logos/retrobat.webp | Bin
.../assets}/logos/retrodeck.svg | 0
.../assets}/logos/retropie.webp | Bin
.../assets}/logos/rocknix.webp | Bin
.../assets}/logos/romm.webp | Bin
.../assets}/logos/sources.json | 0
.../assets}/og/contribute.png | Bin
.../assets}/og/explore.png | Bin
{docs_assets => website/assets}/og/home.png | Bin
.../assets}/og/platforms/amberelec.png | Bin
.../assets}/og/platforms/batocera.png | Bin
.../assets}/og/platforms/bizhawk.png | Bin
.../assets}/og/platforms/emudeck.png | Bin
.../assets}/og/platforms/emuelec.png | Bin
.../assets}/og/platforms/knulli.png | Bin
.../assets}/og/platforms/lakka.png | Bin
.../assets}/og/platforms/minui.png | Bin
.../assets}/og/platforms/misterfpga.png | Bin
.../assets}/og/platforms/myminui.png | Bin
.../assets}/og/platforms/nextui.png | Bin
.../assets}/og/platforms/recalbox.png | Bin
.../assets}/og/platforms/retroarch.png | Bin
.../assets}/og/platforms/retrobat.png | Bin
.../assets}/og/platforms/retrodeck.png | Bin
.../assets}/og/platforms/retropie.png | Bin
.../assets}/og/platforms/rocknix.png | Bin
.../assets}/og/platforms/romm.png | Bin
.../assets}/og/reference.png | Bin
{docs_assets => website/assets}/og/setup.png | Bin
{docs_assets => website/assets}/og/start.png | Bin
.../assets}/og/systems/3d-realms.png | Bin
.../assets}/og/systems/3do-company.png | Bin
.../assets}/og/systems/acorn.png | Bin
.../assets}/og/systems/amstrad.png | Bin
.../assets}/og/systems/apf.png | Bin
.../assets}/og/systems/apogee.png | Bin
.../assets}/og/systems/apple.png | Bin
.../assets}/og/systems/aquaplus.png | Bin
.../assets}/og/systems/arcade.png | Bin
.../assets}/og/systems/atari.png | Bin
.../assets}/og/systems/bally.png | Bin
.../assets}/og/systems/bandai.png | Bin
.../assets}/og/systems/bbk.png | Bin
.../assets}/og/systems/bit-corporation.png | Bin
.../assets}/og/systems/blizzard.png | Bin
.../assets}/og/systems/bungie.png | Bin
.../assets}/og/systems/camputers.png | Bin
.../assets}/og/systems/casio.png | Bin
.../assets}/og/systems/coleco.png | Bin
.../assets}/og/systems/commodore.png | Bin
.../assets}/og/systems/dinothawr.png | Bin
.../assets}/og/systems/dos.png | Bin
.../assets}/og/systems/dragon.png | Bin
.../assets}/og/systems/eaca.png | Bin
.../assets}/og/systems/electronic-arts.png | Bin
.../assets}/og/systems/elektronika.png | Bin
.../assets}/og/systems/enterprise.png | Bin
.../assets}/og/systems/entex.png | Bin
.../assets}/og/systems/epic-megagames.png | Bin
.../assets}/og/systems/epoch.png | Bin
.../assets}/og/systems/fairchild.png | Bin
.../assets}/og/systems/fujitsu.png | Bin
.../assets}/og/systems/funtech.png | Bin
.../assets}/og/systems/galaksija.png | Bin
.../assets}/og/systems/game-engines.png | Bin
.../assets}/og/systems/gamepark.png | Bin
.../assets}/og/systems/gce.png | Bin
.../assets}/og/systems/gemei.png | Bin
.../assets}/og/systems/grundy.png | Bin
.../assets}/og/systems/hartung.png | Bin
.../assets}/og/systems/ibm.png | Bin
.../assets}/og/systems/id-software.png | Bin
.../assets}/og/systems/infocom.png | Bin
.../assets}/og/systems/interact.png | Bin
.../assets}/og/systems/interplay.png | Bin
.../assets}/og/systems/java.png | Bin
.../assets}/og/systems/lexaloffle.png | Bin
.../assets}/og/systems/magnavox.png | Bin
.../assets}/og/systems/mattel.png | Bin
.../assets}/og/systems/microsoft.png | Bin
.../assets}/og/systems/monolith.png | Bin
.../assets}/og/systems/nec.png | Bin
.../assets}/og/systems/nintendo.png | Bin
.../assets}/og/systems/nokia.png | Bin
.../assets}/og/systems/other.png | Bin
.../assets}/og/systems/palm.png | Bin
.../assets}/og/systems/pc.png | Bin
.../assets}/og/systems/philips.png | Bin
.../assets}/og/systems/pioneer.png | Bin
.../assets}/og/systems/qemu.png | Bin
.../assets}/og/systems/rca.png | Bin
.../assets}/og/systems/real3d.png | Bin
.../assets}/og/systems/roland.png | Bin
.../assets}/og/systems/rpg-maker.png | Bin
.../assets}/og/systems/scummvm.png | Bin
.../assets}/og/systems/sdl.png | Bin
.../assets}/og/systems/sdlpal.png | Bin
.../assets}/og/systems/sega.png | Bin
.../assets}/og/systems/sharp.png | Bin
.../assets}/og/systems/sinclair.png | Bin
.../assets}/og/systems/snk.png | Bin
.../assets}/og/systems/softdisk.png | Bin
.../assets}/og/systems/sony.png | Bin
.../assets}/og/systems/sord.png | Bin
.../assets}/og/systems/synertek.png | Bin
.../assets}/og/systems/tandy.png | Bin
.../assets}/og/systems/tangerine.png | Bin
.../assets}/og/systems/texas-instruments.png | Bin
.../assets}/og/systems/thomson.png | Bin
.../assets}/og/systems/tiger.png | Bin
.../assets}/og/systems/timetop.png | Bin
.../assets}/og/systems/tomy.png | Bin
.../assets}/og/systems/toys-for-bob.png | Bin
.../assets}/og/systems/valve.png | Bin
.../assets}/og/systems/videobrain.png | Bin
.../assets}/og/systems/videoton.png | Bin
.../assets}/og/systems/vircon.png | Bin
.../assets}/og/systems/vtech.png | Bin
.../assets}/og/systems/wenquxing.png | Bin
.../assets}/og/systems/zc.png | Bin
.../APF - Imagination Machine.png | Bin
.../system-icons/Acorn - Archimedes.png | Bin
.../system-icons/Acorn - BBC Micro.png | Bin
.../assets}/system-icons/Amstrad - CPC.png | Bin
.../system-icons/Apple - Macintosh.png | Bin
.../assets}/system-icons/Aquaplus - PIECE.png | Bin
.../assets}/system-icons/Atari - 2600.png | Bin
.../assets}/system-icons/Atari - 5200.png | Bin
.../assets}/system-icons/Atari - 7800.png | Bin
.../assets}/system-icons/Atari - Jaguar.png | Bin
.../assets}/system-icons/Atari - Lynx.png | Bin
.../assets}/system-icons/Atari - ST.png | Bin
.../assets}/system-icons/Atari - XEGS.png | Bin
.../system-icons/Bally - Astrocade.png | Bin
.../system-icons/Bandai - WonderSwan.png | Bin
.../system-icons/Bit Corporation - Gamate.png | Bin
.../assets}/system-icons/Casio - Loopy.png | Bin
.../assets}/system-icons/Casio - PV-2000.png | Bin
.../system-icons/Coleco - ColecoVision.png | Bin
.../system-icons/Commodore - Amiga.png | Bin
.../system-icons/Commodore - VIC-20.png | Bin
.../system-icons/Entex - Adventure Vision.png | Bin
.../Epoch - Super Cassette Vision.png | Bin
.../system-icons/Fairchild - Channel F.png | Bin
.../system-icons/Fujitsu - FM Towns.png | Bin
.../assets}/system-icons/Fujitsu - FM-7.png | Bin
.../assets}/system-icons/GCE - Vectrex.png | Bin
.../assets}/system-icons/GamePark - GP32.png | Bin
.../system-icons/Hartung - Game Master.png | Bin
.../system-icons/Infocom - Z-Machine.png | Bin
.../system-icons/Magnavox - Odyssey2.png | Bin
.../system-icons/Mattel - Intellivision.png | Bin
.../assets}/system-icons/Microsoft - MSX.png | Bin
.../assets}/system-icons/Microsoft - Xbox.png | Bin
.../assets}/system-icons/NEC - PC-88.png | Bin
.../assets}/system-icons/NEC - PC-98.png | Bin
.../assets}/system-icons/NEC - PC-FX.png | Bin
.../Nintendo - Game Boy Advance.png | Bin
.../Nintendo - Game Boy Color.png | Bin
.../system-icons/Nintendo - Game Boy.png | Bin
.../system-icons/Nintendo - GameCube.png | Bin
.../system-icons/Nintendo - Nintendo 64.png | Bin
.../system-icons/Nintendo - Nintendo 64DD.png | Bin
.../system-icons/Nintendo - Nintendo DS.png | Bin
.../system-icons/Nintendo - Pokemon Mini.png | Bin
.../system-icons/Nintendo - Satellaview.png | Bin
.../system-icons/Nintendo - Switch.png | Bin
.../assets}/system-icons/Nintendo - Wii U.png | Bin
.../assets}/system-icons/Nintendo - Wii.png | Bin
.../assets}/system-icons/Nokia - N-Gage.png | Bin
.../assets}/system-icons/Philips - CD-i.png | Bin
.../system-icons/Philips - Videopac+.png | Bin
.../system-icons/Pioneer - LaserActive.png | Bin
.../assets}/system-icons/RCA - Studio II.png | Bin
.../assets}/system-icons/SNK - Neo Geo CD.png | Bin
.../system-icons/SNK - Neo Geo Pocket.png | Bin
.../assets}/system-icons/SNK - Neo Geo.png | Bin
.../assets}/system-icons/Sega - 32X.png | Bin
.../assets}/system-icons/Sega - Beena.png | Bin
.../assets}/system-icons/Sega - Chihiro.png | Bin
.../assets}/system-icons/Sega - Dreamcast.png | Bin
.../assets}/system-icons/Sega - Game Gear.png | Bin
.../assets}/system-icons/Sega - Saturn.png | Bin
.../assets}/system-icons/Sharp - X1.png | Bin
.../assets}/system-icons/Sharp - X68000.png | Bin
.../assets}/system-icons/Sinclair - ZX 81.png | Bin
.../system-icons/Sinclair - ZX Spectrum.png | Bin
.../system-icons/Sony - PlayStation 2.png | Bin
.../system-icons/Sony - PlayStation 4.png | Bin
.../Sony - PlayStation Portable.png | Bin
.../system-icons/Sony - PlayStation Vita.png | Bin
.../system-icons/Sony - PlayStation.png | Bin
.../Texas Instruments - TI-83.png | Bin
.../assets}/system-icons/Tiger - Game.com.png | Bin
.../assets}/system-icons/Tomy - Tutor.png | Bin
.../system-icons/VTech - CreatiVision.png | Bin
.../assets}/system-icons/VTech - Socrates.png | Bin
.../assets}/system-icons/VTech - V.Smile.png | Bin
.../assets}/system-icons/Videoton - TVC.png | Bin
.../assets}/system-icons/sources.json | 0
ACCESSIBILITY.md => wiki/accessibility.md | 8 +-
wiki/architecture.md | 51 +++++--
.../images-needed.md => wiki/images-wanted.md | 23 ++--
wiki/index.md | 3 +
wiki/installer.md | 2 +
wiki/reference-terms.md | 14 +-
wiki/release-process.md | 12 +-
wiki/testing-guide.md | 2 +-
wiki/tools.md | 4 +-
283 files changed, 410 insertions(+), 193 deletions(-)
rename _mame_clones.json => mame_clones.json (100%)
create mode 100644 tests/test_repository_map.py
rename {docs_assets => website/assets}/brand/apple-touch-icon.png (100%)
rename {docs_assets => website/assets}/brand/favicon-32.png (100%)
rename {docs_assets => website/assets}/brand/favicon.svg (100%)
rename {docs_assets => website/assets}/brand/logo.svg (100%)
rename {docs_assets => website/assets}/demo/demo.json (100%)
rename {docs_assets => website/assets}/demo/install-handheld.mp4 (100%)
rename {docs_assets => website/assets}/demo/install-handheld.png (100%)
rename {docs_assets => website/assets}/demo/install-handheld.tape (100%)
rename {docs_assets => website/assets}/demo/install-handheld.webm (100%)
rename {docs_assets => website/assets}/demo/install.gif (100%)
rename {docs_assets => website/assets}/demo/install.mp4 (100%)
rename {docs_assets => website/assets}/demo/install.png (100%)
rename {docs_assets => website/assets}/demo/install.tape (100%)
rename {docs_assets => website/assets}/demo/install.webm (100%)
rename {docs_assets => website/assets}/logos/amberelec.webp (100%)
rename {docs_assets => website/assets}/logos/android.svg (100%)
rename {docs_assets => website/assets}/logos/batocera.svg (100%)
rename {docs_assets => website/assets}/logos/bizhawk.webp (100%)
rename {docs_assets => website/assets}/logos/emudeck.webp (100%)
rename {docs_assets => website/assets}/logos/emuelec.webp (100%)
rename {docs_assets => website/assets}/logos/iphone-and-ipad.svg (100%)
rename {docs_assets => website/assets}/logos/knulli.webp (100%)
rename {docs_assets => website/assets}/logos/lakka.svg (100%)
rename {docs_assets => website/assets}/logos/linux-handhelds.svg (100%)
rename {docs_assets => website/assets}/logos/minui.webp (100%)
rename {docs_assets => website/assets}/logos/misterfpga.webp (100%)
rename {docs_assets => website/assets}/logos/myminui.webp (100%)
rename {docs_assets => website/assets}/logos/nextui.webp (100%)
rename {docs_assets => website/assets}/logos/recalbox.svg (100%)
rename {docs_assets => website/assets}/logos/retroarch.svg (100%)
rename {docs_assets => website/assets}/logos/retrobat.webp (100%)
rename {docs_assets => website/assets}/logos/retrodeck.svg (100%)
rename {docs_assets => website/assets}/logos/retropie.webp (100%)
rename {docs_assets => website/assets}/logos/rocknix.webp (100%)
rename {docs_assets => website/assets}/logos/romm.webp (100%)
rename {docs_assets => website/assets}/logos/sources.json (100%)
rename {docs_assets => website/assets}/og/contribute.png (100%)
rename {docs_assets => website/assets}/og/explore.png (100%)
rename {docs_assets => website/assets}/og/home.png (100%)
rename {docs_assets => website/assets}/og/platforms/amberelec.png (100%)
rename {docs_assets => website/assets}/og/platforms/batocera.png (100%)
rename {docs_assets => website/assets}/og/platforms/bizhawk.png (100%)
rename {docs_assets => website/assets}/og/platforms/emudeck.png (100%)
rename {docs_assets => website/assets}/og/platforms/emuelec.png (100%)
rename {docs_assets => website/assets}/og/platforms/knulli.png (100%)
rename {docs_assets => website/assets}/og/platforms/lakka.png (100%)
rename {docs_assets => website/assets}/og/platforms/minui.png (100%)
rename {docs_assets => website/assets}/og/platforms/misterfpga.png (100%)
rename {docs_assets => website/assets}/og/platforms/myminui.png (100%)
rename {docs_assets => website/assets}/og/platforms/nextui.png (100%)
rename {docs_assets => website/assets}/og/platforms/recalbox.png (100%)
rename {docs_assets => website/assets}/og/platforms/retroarch.png (100%)
rename {docs_assets => website/assets}/og/platforms/retrobat.png (100%)
rename {docs_assets => website/assets}/og/platforms/retrodeck.png (100%)
rename {docs_assets => website/assets}/og/platforms/retropie.png (100%)
rename {docs_assets => website/assets}/og/platforms/rocknix.png (100%)
rename {docs_assets => website/assets}/og/platforms/romm.png (100%)
rename {docs_assets => website/assets}/og/reference.png (100%)
rename {docs_assets => website/assets}/og/setup.png (100%)
rename {docs_assets => website/assets}/og/start.png (100%)
rename {docs_assets => website/assets}/og/systems/3d-realms.png (100%)
rename {docs_assets => website/assets}/og/systems/3do-company.png (100%)
rename {docs_assets => website/assets}/og/systems/acorn.png (100%)
rename {docs_assets => website/assets}/og/systems/amstrad.png (100%)
rename {docs_assets => website/assets}/og/systems/apf.png (100%)
rename {docs_assets => website/assets}/og/systems/apogee.png (100%)
rename {docs_assets => website/assets}/og/systems/apple.png (100%)
rename {docs_assets => website/assets}/og/systems/aquaplus.png (100%)
rename {docs_assets => website/assets}/og/systems/arcade.png (100%)
rename {docs_assets => website/assets}/og/systems/atari.png (100%)
rename {docs_assets => website/assets}/og/systems/bally.png (100%)
rename {docs_assets => website/assets}/og/systems/bandai.png (100%)
rename {docs_assets => website/assets}/og/systems/bbk.png (100%)
rename {docs_assets => website/assets}/og/systems/bit-corporation.png (100%)
rename {docs_assets => website/assets}/og/systems/blizzard.png (100%)
rename {docs_assets => website/assets}/og/systems/bungie.png (100%)
rename {docs_assets => website/assets}/og/systems/camputers.png (100%)
rename {docs_assets => website/assets}/og/systems/casio.png (100%)
rename {docs_assets => website/assets}/og/systems/coleco.png (100%)
rename {docs_assets => website/assets}/og/systems/commodore.png (100%)
rename {docs_assets => website/assets}/og/systems/dinothawr.png (100%)
rename {docs_assets => website/assets}/og/systems/dos.png (100%)
rename {docs_assets => website/assets}/og/systems/dragon.png (100%)
rename {docs_assets => website/assets}/og/systems/eaca.png (100%)
rename {docs_assets => website/assets}/og/systems/electronic-arts.png (100%)
rename {docs_assets => website/assets}/og/systems/elektronika.png (100%)
rename {docs_assets => website/assets}/og/systems/enterprise.png (100%)
rename {docs_assets => website/assets}/og/systems/entex.png (100%)
rename {docs_assets => website/assets}/og/systems/epic-megagames.png (100%)
rename {docs_assets => website/assets}/og/systems/epoch.png (100%)
rename {docs_assets => website/assets}/og/systems/fairchild.png (100%)
rename {docs_assets => website/assets}/og/systems/fujitsu.png (100%)
rename {docs_assets => website/assets}/og/systems/funtech.png (100%)
rename {docs_assets => website/assets}/og/systems/galaksija.png (100%)
rename {docs_assets => website/assets}/og/systems/game-engines.png (100%)
rename {docs_assets => website/assets}/og/systems/gamepark.png (100%)
rename {docs_assets => website/assets}/og/systems/gce.png (100%)
rename {docs_assets => website/assets}/og/systems/gemei.png (100%)
rename {docs_assets => website/assets}/og/systems/grundy.png (100%)
rename {docs_assets => website/assets}/og/systems/hartung.png (100%)
rename {docs_assets => website/assets}/og/systems/ibm.png (100%)
rename {docs_assets => website/assets}/og/systems/id-software.png (100%)
rename {docs_assets => website/assets}/og/systems/infocom.png (100%)
rename {docs_assets => website/assets}/og/systems/interact.png (100%)
rename {docs_assets => website/assets}/og/systems/interplay.png (100%)
rename {docs_assets => website/assets}/og/systems/java.png (100%)
rename {docs_assets => website/assets}/og/systems/lexaloffle.png (100%)
rename {docs_assets => website/assets}/og/systems/magnavox.png (100%)
rename {docs_assets => website/assets}/og/systems/mattel.png (100%)
rename {docs_assets => website/assets}/og/systems/microsoft.png (100%)
rename {docs_assets => website/assets}/og/systems/monolith.png (100%)
rename {docs_assets => website/assets}/og/systems/nec.png (100%)
rename {docs_assets => website/assets}/og/systems/nintendo.png (100%)
rename {docs_assets => website/assets}/og/systems/nokia.png (100%)
rename {docs_assets => website/assets}/og/systems/other.png (100%)
rename {docs_assets => website/assets}/og/systems/palm.png (100%)
rename {docs_assets => website/assets}/og/systems/pc.png (100%)
rename {docs_assets => website/assets}/og/systems/philips.png (100%)
rename {docs_assets => website/assets}/og/systems/pioneer.png (100%)
rename {docs_assets => website/assets}/og/systems/qemu.png (100%)
rename {docs_assets => website/assets}/og/systems/rca.png (100%)
rename {docs_assets => website/assets}/og/systems/real3d.png (100%)
rename {docs_assets => website/assets}/og/systems/roland.png (100%)
rename {docs_assets => website/assets}/og/systems/rpg-maker.png (100%)
rename {docs_assets => website/assets}/og/systems/scummvm.png (100%)
rename {docs_assets => website/assets}/og/systems/sdl.png (100%)
rename {docs_assets => website/assets}/og/systems/sdlpal.png (100%)
rename {docs_assets => website/assets}/og/systems/sega.png (100%)
rename {docs_assets => website/assets}/og/systems/sharp.png (100%)
rename {docs_assets => website/assets}/og/systems/sinclair.png (100%)
rename {docs_assets => website/assets}/og/systems/snk.png (100%)
rename {docs_assets => website/assets}/og/systems/softdisk.png (100%)
rename {docs_assets => website/assets}/og/systems/sony.png (100%)
rename {docs_assets => website/assets}/og/systems/sord.png (100%)
rename {docs_assets => website/assets}/og/systems/synertek.png (100%)
rename {docs_assets => website/assets}/og/systems/tandy.png (100%)
rename {docs_assets => website/assets}/og/systems/tangerine.png (100%)
rename {docs_assets => website/assets}/og/systems/texas-instruments.png (100%)
rename {docs_assets => website/assets}/og/systems/thomson.png (100%)
rename {docs_assets => website/assets}/og/systems/tiger.png (100%)
rename {docs_assets => website/assets}/og/systems/timetop.png (100%)
rename {docs_assets => website/assets}/og/systems/tomy.png (100%)
rename {docs_assets => website/assets}/og/systems/toys-for-bob.png (100%)
rename {docs_assets => website/assets}/og/systems/valve.png (100%)
rename {docs_assets => website/assets}/og/systems/videobrain.png (100%)
rename {docs_assets => website/assets}/og/systems/videoton.png (100%)
rename {docs_assets => website/assets}/og/systems/vircon.png (100%)
rename {docs_assets => website/assets}/og/systems/vtech.png (100%)
rename {docs_assets => website/assets}/og/systems/wenquxing.png (100%)
rename {docs_assets => website/assets}/og/systems/zc.png (100%)
rename {docs_assets => website/assets}/system-icons/APF - Imagination Machine.png (100%)
rename {docs_assets => website/assets}/system-icons/Acorn - Archimedes.png (100%)
rename {docs_assets => website/assets}/system-icons/Acorn - BBC Micro.png (100%)
rename {docs_assets => website/assets}/system-icons/Amstrad - CPC.png (100%)
rename {docs_assets => website/assets}/system-icons/Apple - Macintosh.png (100%)
rename {docs_assets => website/assets}/system-icons/Aquaplus - PIECE.png (100%)
rename {docs_assets => website/assets}/system-icons/Atari - 2600.png (100%)
rename {docs_assets => website/assets}/system-icons/Atari - 5200.png (100%)
rename {docs_assets => website/assets}/system-icons/Atari - 7800.png (100%)
rename {docs_assets => website/assets}/system-icons/Atari - Jaguar.png (100%)
rename {docs_assets => website/assets}/system-icons/Atari - Lynx.png (100%)
rename {docs_assets => website/assets}/system-icons/Atari - ST.png (100%)
rename {docs_assets => website/assets}/system-icons/Atari - XEGS.png (100%)
rename {docs_assets => website/assets}/system-icons/Bally - Astrocade.png (100%)
rename {docs_assets => website/assets}/system-icons/Bandai - WonderSwan.png (100%)
rename {docs_assets => website/assets}/system-icons/Bit Corporation - Gamate.png (100%)
rename {docs_assets => website/assets}/system-icons/Casio - Loopy.png (100%)
rename {docs_assets => website/assets}/system-icons/Casio - PV-2000.png (100%)
rename {docs_assets => website/assets}/system-icons/Coleco - ColecoVision.png (100%)
rename {docs_assets => website/assets}/system-icons/Commodore - Amiga.png (100%)
rename {docs_assets => website/assets}/system-icons/Commodore - VIC-20.png (100%)
rename {docs_assets => website/assets}/system-icons/Entex - Adventure Vision.png (100%)
rename {docs_assets => website/assets}/system-icons/Epoch - Super Cassette Vision.png (100%)
rename {docs_assets => website/assets}/system-icons/Fairchild - Channel F.png (100%)
rename {docs_assets => website/assets}/system-icons/Fujitsu - FM Towns.png (100%)
rename {docs_assets => website/assets}/system-icons/Fujitsu - FM-7.png (100%)
rename {docs_assets => website/assets}/system-icons/GCE - Vectrex.png (100%)
rename {docs_assets => website/assets}/system-icons/GamePark - GP32.png (100%)
rename {docs_assets => website/assets}/system-icons/Hartung - Game Master.png (100%)
rename {docs_assets => website/assets}/system-icons/Infocom - Z-Machine.png (100%)
rename {docs_assets => website/assets}/system-icons/Magnavox - Odyssey2.png (100%)
rename {docs_assets => website/assets}/system-icons/Mattel - Intellivision.png (100%)
rename {docs_assets => website/assets}/system-icons/Microsoft - MSX.png (100%)
rename {docs_assets => website/assets}/system-icons/Microsoft - Xbox.png (100%)
rename {docs_assets => website/assets}/system-icons/NEC - PC-88.png (100%)
rename {docs_assets => website/assets}/system-icons/NEC - PC-98.png (100%)
rename {docs_assets => website/assets}/system-icons/NEC - PC-FX.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Game Boy Advance.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Game Boy Color.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Game Boy.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - GameCube.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Nintendo 64.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Nintendo 64DD.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Nintendo DS.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Pokemon Mini.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Satellaview.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Switch.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Wii U.png (100%)
rename {docs_assets => website/assets}/system-icons/Nintendo - Wii.png (100%)
rename {docs_assets => website/assets}/system-icons/Nokia - N-Gage.png (100%)
rename {docs_assets => website/assets}/system-icons/Philips - CD-i.png (100%)
rename {docs_assets => website/assets}/system-icons/Philips - Videopac+.png (100%)
rename {docs_assets => website/assets}/system-icons/Pioneer - LaserActive.png (100%)
rename {docs_assets => website/assets}/system-icons/RCA - Studio II.png (100%)
rename {docs_assets => website/assets}/system-icons/SNK - Neo Geo CD.png (100%)
rename {docs_assets => website/assets}/system-icons/SNK - Neo Geo Pocket.png (100%)
rename {docs_assets => website/assets}/system-icons/SNK - Neo Geo.png (100%)
rename {docs_assets => website/assets}/system-icons/Sega - 32X.png (100%)
rename {docs_assets => website/assets}/system-icons/Sega - Beena.png (100%)
rename {docs_assets => website/assets}/system-icons/Sega - Chihiro.png (100%)
rename {docs_assets => website/assets}/system-icons/Sega - Dreamcast.png (100%)
rename {docs_assets => website/assets}/system-icons/Sega - Game Gear.png (100%)
rename {docs_assets => website/assets}/system-icons/Sega - Saturn.png (100%)
rename {docs_assets => website/assets}/system-icons/Sharp - X1.png (100%)
rename {docs_assets => website/assets}/system-icons/Sharp - X68000.png (100%)
rename {docs_assets => website/assets}/system-icons/Sinclair - ZX 81.png (100%)
rename {docs_assets => website/assets}/system-icons/Sinclair - ZX Spectrum.png (100%)
rename {docs_assets => website/assets}/system-icons/Sony - PlayStation 2.png (100%)
rename {docs_assets => website/assets}/system-icons/Sony - PlayStation 4.png (100%)
rename {docs_assets => website/assets}/system-icons/Sony - PlayStation Portable.png (100%)
rename {docs_assets => website/assets}/system-icons/Sony - PlayStation Vita.png (100%)
rename {docs_assets => website/assets}/system-icons/Sony - PlayStation.png (100%)
rename {docs_assets => website/assets}/system-icons/Texas Instruments - TI-83.png (100%)
rename {docs_assets => website/assets}/system-icons/Tiger - Game.com.png (100%)
rename {docs_assets => website/assets}/system-icons/Tomy - Tutor.png (100%)
rename {docs_assets => website/assets}/system-icons/VTech - CreatiVision.png (100%)
rename {docs_assets => website/assets}/system-icons/VTech - Socrates.png (100%)
rename {docs_assets => website/assets}/system-icons/VTech - V.Smile.png (100%)
rename {docs_assets => website/assets}/system-icons/Videoton - TVC.png (100%)
rename {docs_assets => website/assets}/system-icons/sources.json (100%)
rename ACCESSIBILITY.md => wiki/accessibility.md (96%)
rename docs_assets/images-needed.md => wiki/images-wanted.md (83%)
diff --git a/.gitattributes b/.gitattributes
index 0659507d4..7c895e427 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -25,3 +25,24 @@ data/** -text
# Measurement records are append-only: two branches that each add a line to
# the same file merge by keeping both.
measurements/*.jsonl text eol=lf merge=union
+
+# What a pipeline run writes (scripts/core/generated.py, GENERATED), folded in
+# review diffs and left out of the language statistics. Anchored with a slash:
+# a bare README.md would match platforms/README.md too. A test holds this list
+# equal to GENERATED.
+/database.json linguist-generated=true
+/derivable.json linguist-generated=true
+/retired.json linguist-generated=true
+/install/*.json linguist-generated=true
+/install/standalone/*.json linguist-generated=true
+/install/targets/*.json linguist-generated=true
+/install/games/*.json linguist-generated=true
+/install/games/*/*.json linguist-generated=true
+/README.md linguist-generated=true
+/CONTRIBUTING.md linguist-generated=true
+/wiki/installer.md linguist-generated=true
+/wiki/reading-reports.md linguist-generated=true
+/website/src/data/*.json linguist-generated=true
+/recipes/archives.json linguist-generated=true
+/exports/*.json linguist-generated=true
+/exports/*/*.json linguist-generated=true
diff --git a/.github/workflows/deploy-site.yml b/.github/workflows/deploy-site.yml
index 34ebe4943..b7d351ad0 100644
--- a/.github/workflows/deploy-site.yml
+++ b/.github/workflows/deploy-site.yml
@@ -242,7 +242,6 @@ on:
- "scripts/validate_schemas.py"
- "scripts/validate_site.py"
- "schemas/**"
- - "docs_assets/**"
- "install/**"
# The site serves install.sh and install.ps1 pinned to install.py
# of the commit it is built from (scripts/sitegen/bootstrap.py).
@@ -256,6 +255,8 @@ on:
- "database.json"
- "release.json"
- "derivable.json"
+ # The coverage counts resolve MAME clones through it.
+ - "mame_clones.json"
- "retired.json"
# The README and the archive recipes page count the recipes.
- "recipes/archives.json"
diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index b8f8e57c5..e8ed8558a 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -26,13 +26,13 @@ on:
# Every input of the site build, so a page that would fail the deploy
# fails here first (tests/test_workflow_paths.py).
- "wiki/**"
- - "docs_assets/**"
- "provenance/**"
- "exports/**"
- "install/**"
- "database.json"
- "release.json"
- "derivable.json"
+ - "mame_clones.json"
- "retired.json"
- "recipes/**"
- "measurements/**"
@@ -40,6 +40,9 @@ on:
- "website/**"
# The type check's and the lint's configuration.
- "pyproject.toml"
+ # Generated files: a hand edit fails the regeneration check.
+ - "README.md"
+ - "CONTRIBUTING.md"
# Spelled out twice because the workflow parser reads no YAML anchor. A test
# holds the two lists equal.
push:
@@ -58,19 +61,21 @@ on:
- "ports/**"
- "packaging/**"
- "wiki/**"
- - "docs_assets/**"
- "provenance/**"
- "exports/**"
- "install/**"
- "database.json"
- "release.json"
- "derivable.json"
+ - "mame_clones.json"
- "retired.json"
- "recipes/**"
- "measurements/**"
- "campaign/**"
- "website/**"
- "pyproject.toml"
+ - "README.md"
+ - "CONTRIBUTING.md"
permissions:
contents: read
@@ -197,6 +202,15 @@ jobs:
- name: Check that install.py is the one installer/ builds
run: python scripts/build_installer.py --check
+ # README.md and CONTRIBUTING.md are written by scripts/sitegen/readme.py.
+ # Deploy Site compared them only after the merge, and only when another
+ # path triggered it: a hand edit to either file reached main unchecked.
+ # Offline, the contributors section is read back from the file.
+ - name: Check that README and CONTRIBUTING are the generated ones
+ env:
+ RETROBIOS_OFFLINE: "1"
+ run: python scripts/generate_readme.py --db database.json --platforms-dir platforms --check
+
# A profile written from a clone can cite lines that do not hold the value
# it declares, and schemas and tests pass it. Each profile a change adds is
# confronted with its upstream, both roads into main. An edited profile is
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 066e50139..474f461c0 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,3 +1,4 @@
+
# Contributing to RetroBIOS
## Add a BIOS file
@@ -96,6 +97,8 @@ python scripts/validate_schemas.py --source-only # profiles and platf
mypy # no type error in install.py, installer/ and scripts/
ruff check . # the lint rules of pyproject.toml
python scripts/build_installer.py --check # install.py is the one installer/ builds
+# README.md and CONTRIBUTING.md are the generated ones
+python scripts/generate_readme.py --db database.json --platforms-dir platforms --check
python scripts/profile_sync.py --added --strict # each profile the branch adds
vermin --no-tips -t=3.8- --violations install.py installer # the installer stays on Python 3.8
shellcheck --version # the launcher test runs shellcheck
diff --git a/README.md b/README.md
index 29c54b66c..aa1a2da30 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
+
@@ -31,7 +32,7 @@ curl -fsSL https://abdess.github.io/retrobios/i | sh
**A handheld, an SD card, or not sure?** [Pick the device](https://abdess.github.io/retrobios/which-pack/): its page gives the folder and the command. A muOS, Onion, spruceOS, MinUI, KNULLI, ROCKNIX, Lakka or MiSTer SD card plugged into the computer is found by itself.
-
+
The installer finds the setup and its BIOS folder, installs the files it needs (only what the games need when it finds them on the card) and checks each one. Its screen installs everything, or fewer under **Choose systems**. Arrow keys and Enter drive it, or a controller on a handheld. It sends no report of its own ([what is counted](https://abdess.github.io/retrobios/wiki/privacy/)). Options go after the line in the form the [installer page](https://abdess.github.io/retrobios/wiki/installer/#passing-options) gives.
@@ -60,6 +61,7 @@ Unzip into the BIOS folder, files straight in it. A big pack comes in parts (`Pa
- Have a file? [Check it by its hash](https://abdess.github.io/retrobios/files/)
- Every console and the files it needs: [systems](https://abdess.github.io/retrobios/systems/)
- Asking an AI assistant: it reads the site best from [llms.txt](https://abdess.github.io/retrobios/llms.txt)
+- Screen reader, keyboard only or no colour: [accessibility](https://abdess.github.io/retrobios/wiki/accessibility/)
## How it is built
@@ -109,4 +111,4 @@ The scripts and tooling are released under the [MIT License](LICENSE).
The BIOS and firmware files are not covered by that license: they are third-party system software, preserved and provided for personal backup, archival, and interoperability with emulation software. [NOTICE](NOTICE) sets out their status and how to ask for a file to be removed.
The reasoning, and where it is weakest, is in [the project's legal position](https://abdess.github.io/retrobios/wiki/legal/).
-*Auto-generated on 2026-11-23T22:25:21Z*
+*Auto-generated on 2026-11-24T08:57:19Z*
diff --git a/_mame_clones.json b/mame_clones.json
similarity index 100%
rename from _mame_clones.json
rename to mame_clones.json
diff --git a/platforms/README.md b/platforms/README.md
index 5e88aa498..5f012f973 100644
--- a/platforms/README.md
+++ b/platforms/README.md
@@ -1,55 +1,49 @@
-# Platform Configs
+# Platform configs
-How platform YAML files work and where subdirectory requirements come from.
+What each file of this folder holds. How a platform checks its files is in
+[How each platform checks files](../wiki/verification-modes.md), and the
+steps to add one are in [Adding a platform](../wiki/adding-a-platform.md).
## Files
-- `_registry.yml` -- platform metadata (name, release pack, display order)
-- `_shared.yml` -- shared file groups with canonical destinations
-- `.yml` -- per-platform BIOS declarations
-- Inheritance: `lakka.yml` inherits `retroarch`, `retropie.yml` inherits `retroarch`
+- `.yml`: the platform's own BIOS list, written by its scraper
+ (`scripts/scraper/_scraper.py`). A hand edit is overwritten by the
+ next scrape: the fix goes in the scraper, `_shared.yml` or a profile.
+ `lakka.yml` and `retropie.yml` inherit `retroarch`, `romm.yml` inherits
+ `emulatorjs`.
+- `_registry.yml`: platform metadata (name, scraper, release pack, install
+ detection, display order).
+- `_shared.yml`: file groups several platforms include, with the destination
+ the core expects.
+- `_data_dirs.yml`: whole directory trees a core needs.
+- `_guides.yml`: the guide text of each platform's page on the site.
+- `_core_info.json`: the git blob of every libretro `.info` as last reviewed,
+ written by `check_freshness.py --record-coreinfo`.
+- `targets/`: the cores each hardware target runs, one file per platform.
+- `romfolders/`: the rom folders of each setup.
## Shared groups (`_shared.yml`)
-The subdirectory a BIOS goes into is determined by the **libretro core**, not
-the platform. NP2kai expects `np2kai/BIOS.ROM` whether you're on RetroArch,
-Batocera, or Recalbox. Only `base_destination` varies (`system/` vs `bios/`).
+The subdirectory a BIOS goes into is set by the core, not the platform.
+NP2kai expects `np2kai/BIOS.ROM` on RetroArch, Batocera and Recalbox alike.
+Only `base_destination` varies (`system/` or `bios/`).
-Shared groups define files with correct destinations **once**. Platforms
-reference them via `includes: [group_name]` in their system definitions.
-`load_platform_config()` in `scripts/model/platforms.py` resolves includes at load time,
-deduplicating by filename.
+A group declares those files and their destination once, and platforms
+include it with `includes: [group_name]` in a system. `load_platform_config()`
+(`scripts/model/platforms.py`) resolves the includes at load time. A scraper
+that writes a platform keeps its includes in its own `SYSTEM_SHARED_GROUPS`,
+so they survive the next scrape. `libretro_scraper.py` also prefixes the
+subdirectory of the cores in `CORE_SUBDIR_MAP`.
-When to use shared groups: whenever 2+ platforms share files that a core
-expects in a specific subdirectory. The group carries the correct destination
-so platforms can't drift.
+Adding a group:
-For RetroArch specifically, `libretro_scraper.py` injects `includes:`
-references and applies subdirectory prefixes via `CORE_SUBDIR_MAP` during
-generation. Manual edits to `retroarch.yml` will be overwritten on next scrape.
+1. Add it to `_shared.yml` with a comment citing the code that reads the path.
+2. Give each file its name, destination with the subdirectory, `required` and
+ hashes.
+3. Reference it with `includes: [group_name]`, in the scraper's
+ `SYSTEM_SHARED_GROUPS` for a scraped platform.
-## Data directories (`_data_dirs.yml`)
-
-Some cores need entire directory trees, not just individual BIOS files.
-Dolphin needs `dolphin-emu/Sys/` (GameSettings, DSP firmware, fonts),
-PPSSPP needs `PPSSPP/` (font assets, shaders), blueMSX needs `Databases/`
-and `Machines/` (machine configs).
-
-These are defined in `_data_dirs.yml` as a central registry with upstream
-source URLs. The pack generator auto-refreshes from upstream before building
-(use `--offline` to skip). Data directories live in `data/` (not `bios/`)
-and are NOT indexed in `database.json`.
-
-Adding a data directory:
-1. Add entry to `_data_dirs.yml` with source URL, extraction path, cache location
-2. Reference via `data_directories: [{ref: key, destination: path}]` in platform systems
-3. For scraper-generated platforms, add to `SYSTEM_DATA_DIRS` in the scraper
-4. Run `python scripts/refresh_data_dirs.py --key ` to populate the cache
-
-## Subdirectory reference
-
-Each entry documents where the requirement comes from. Check these source
-files to verify or update the paths.
+Where the subdirectories come from:
| Core | Subdirectory | Source |
|------|-------------|--------|
@@ -57,44 +51,36 @@ files to verify or update the paths.
| PX68k | `keropi/` | `px68k/libretro/libretro.c` |
| QUASI88 | `quasi88/` | `quasi88/src/libretro.c` |
| Kronos | `kronos/` | `libretro-kronos/libretro/libretro.c` |
-| ep128emu | `ep128emu/rom/` | `ep128emu-core/src/libretro.cpp` |
+| ep128emu | `ep128emu/roms/` | `ep128emu-core/src/libretro.cpp` |
| Flycast | `dc/` | `flycast/shell/libretro/libretro.cpp` |
| FBNeo NeoCD | `neocd/` | `fbneo/src/burn/drv/neogeo/neo_run.cpp` |
| Fuse | `fuse/` | `fuse-libretro/fuse/settings.c` |
| hatari | `hatari/tos/` | `hatari/src/tos.c` |
-Full libretro docs: `https://docs.libretro.com/library//`
+## Data directories (`_data_dirs.yml`)
-## Adding a platform
+Some cores need a whole tree: Dolphin's `dolphin-emu/Sys/`, PPSSPP's assets,
+blueMSX's `Databases/` and `Machines/`. Each entry names its upstream source.
+`scripts/refresh_data_dirs.py` fetches them into `data/`, which is not indexed
+in `database.json`, and pack generation refreshes them first unless
+`--offline` is given.
-1. Create `platforms/.yml`
-2. Set `base_destination` (`system` or `bios`), `verification_mode`, `hash_type`
-3. Use `includes: [group]` for systems with subdirectory requirements
-4. Use `inherits: retroarch` to share RetroArch's file set
-5. Add platform-specific overrides in `overrides.systems`
-6. Test: `python scripts/verify.py --platform `
+Adding a data directory:
-## Adding a shared group
+1. Add the entry with its source URL, extraction path and cache location.
+2. Reference it with `data_directories: [{ref: key, destination: path}]` in a
+ platform system, in the scraper's `SYSTEM_DATA_DIRS` for a scraped platform.
+3. Run `python scripts/refresh_data_dirs.py --key ` to fill the cache.
-1. Add the group to `_shared.yml` with a source ref comment
-2. Include: filename, destination with subdirectory prefix, required flag, hashes
-3. Reference via `includes: [group_name]` in platform system definitions
-4. For scraper-generated platforms, add the mapping in the scraper's
- `SYSTEM_SHARED_GROUPS` dict so it persists across regeneration
+## Targets (`targets/`)
-## Verification modes
+`.yml` lists the cores of each hardware target, written by the
+platform's target scraper (`scripts/scraper/targets/`), or kept by hand for a
+single-target platform. `_overrides.yml` is never overwritten: it adds
+aliases and adds or removes cores per target, `_default` for every target.
-| Platform | Mode | Native logic | Upstream source |
-|----------|------|-------------|----------------|
-| RetroArch | existence | `path_is_valid()` -- file exists | `core_info.c` |
-| Lakka | existence | inherits RetroArch | idem |
-| RetroPie | existence | inherits RetroArch | idem |
-| Batocera | md5 | `md5sum()` + `checkInsideZip()` | `batocera-systems` |
-| RetroBat | md5 | MD5 check via JSON config | `batocera-systems.json` |
-| EmuDeck | md5 | MD5 whitelist per system | `checkBIOS.sh` |
-| Recalbox | md5 | multi-hash comma-separated | `es_bios.xml` + `Bios.cpp` |
-| RetroDECK | md5 | MD5 per file via component manifests | `api_data_processing.sh` |
-| RomM | md5 | size + any hash (MD5/SHA1/CRC32) | `firmware.py` |
-| ROCKNIX | md5 | `md5sum()` + `checkInsideZip()` with `altmd5` | `rocknix-systems` |
-| MiSTer FPGA | md5 | MD5 of the file at its destination | `process_db_index_worker.py` |
-| BizHawk | sha1 | SHA1 per firmware entry | `FirmwareDatabase.cs` |
+## Rom folders (`romfolders/`)
+
+`_sources/.yml` names the repositories and commits to read and the
+facts a parser cannot read from a table. `python -m scripts.scraper.romfolders`
+writes `.yml` from them, with the folder names the OS itself uses.
diff --git a/schemas/database.schema.json b/schemas/database.schema.json
index dfdd626ce..68912cb6c 100644
--- a/schemas/database.schema.json
+++ b/schemas/database.schema.json
@@ -30,7 +30,7 @@
},
"bios_dir": {
"type": "string",
- "description": "Directory the files were scanned from; _mame_clones.json sits beside it."
+ "description": "Directory the files were scanned from. mame_clones.json sits beside it."
},
"files": {
"type": "object",
diff --git a/scripts/collection/clonemap.py b/scripts/collection/clonemap.py
index 0d2850ba9..6dd12d848 100644
--- a/scripts/collection/clonemap.py
+++ b/scripts/collection/clonemap.py
@@ -1,4 +1,4 @@
-"""Merging and writing the MAME clone map _mame_clones.json."""
+"""Merging and writing the MAME clone map mame_clones.json."""
from __future__ import annotations
diff --git a/scripts/collection/record.py b/scripts/collection/record.py
index 8225f44eb..94e7dde5e 100644
--- a/scripts/collection/record.py
+++ b/scripts/collection/record.py
@@ -18,7 +18,7 @@ def database_record(files: dict, indexes: dict, bios_dir: str) -> dict:
"generated_at": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
"total_files": len(files),
"total_size": sum(entry["size"] for entry in files.values()),
- # The tree these paths belong to: dedup writes _mame_clones.json
+ # The tree these paths belong to: dedup writes mame_clones.json
# beside it, and the resolver reads the map there, not at the repo root.
"bios_dir": os.path.normpath(bios_dir),
"files": files,
diff --git a/scripts/core/artifacts.py b/scripts/core/artifacts.py
index fab1b004b..62ce2c4dd 100644
--- a/scripts/core/artifacts.py
+++ b/scripts/core/artifacts.py
@@ -41,6 +41,18 @@ def json_text(value: object) -> str:
return str(value)
+def content_differs(
+ path: str, content: str, normalize: Callable[[str], str] | None = None
+) -> bool:
+ """Whether path is absent or holds other content once timestamp lines are stripped."""
+ if not os.path.exists(path):
+ return True
+ with open(path) as f:
+ existing = f.read()
+ before, after = (normalize(existing), normalize(content)) if normalize else (existing, content)
+ return _strip_timestamps(before) != _strip_timestamps(after)
+
+
def write_if_changed(
path: str, content: str, normalize: Callable[[str], str] | None = None
) -> bool:
@@ -54,16 +66,8 @@ def write_if_changed(
part it owns. Without it the second pass always sees a difference, the
file is rewritten, and the fresh timestamp defeats the comparison.
"""
- if os.path.exists(path):
- with open(path) as f:
- existing = f.read()
- before, after = (
- (normalize(existing), normalize(content))
- if normalize
- else (existing, content)
- )
- if _strip_timestamps(before) == _strip_timestamps(after):
- return False
+ if not content_differs(path, content, normalize):
+ return False
write_text_atomic(path, content)
return True
diff --git a/scripts/dedup.py b/scripts/dedup.py
index 53c2ff400..17f6faad3 100644
--- a/scripts/dedup.py
+++ b/scripts/dedup.py
@@ -12,7 +12,7 @@ Two types of deduplication:
2. MAME DEVICE CLONES: Different filenames with identical content in the same
MAME directory (e.g., bbc_m87.zip and bbc_24bbc.zip are identical ZIPs).
These are NOT aliases: MAME loads each by its unique name. Instead of
- deleting, we create a _mame_clones.json mapping so generate_pack.py can
+ deleting, we create a mame_clones.json mapping so generate_pack.py can
pack all names from a single canonical file.
After dedup, run generate_db.py --force to rebuild database indexes.
diff --git a/scripts/devtools/prchecks.py b/scripts/devtools/prchecks.py
index 6dc6e7ddb..79a08ea57 100644
--- a/scripts/devtools/prchecks.py
+++ b/scripts/devtools/prchecks.py
@@ -40,6 +40,8 @@ STEPS: tuple[Step, ...] = (
Step("ruff check .", "the lint rules of pyproject.toml", needs="ruff",
provider='pip install -e ".[dev]"'),
Step("python scripts/build_installer.py --check", "install.py is the one installer/ builds"),
+ Step("python scripts/generate_readme.py --db database.json --platforms-dir platforms --check",
+ "README.md and CONTRIBUTING.md are the generated ones", env={"RETROBIOS_OFFLINE": "1"}),
Step("python scripts/profile_sync.py --added --strict", "each profile the branch adds"),
Step("vermin --no-tips -t=3.8- --violations install.py installer", "the installer stays on Python 3.8",
needs="vermin", provider="the pip line of CONTRIBUTING.md"),
diff --git a/scripts/fetch_site_images.py b/scripts/fetch_site_images.py
index bbc6943b5..9e92a87e4 100644
--- a/scripts/fetch_site_images.py
+++ b/scripts/fetch_site_images.py
@@ -4,7 +4,7 @@
The site served these from other hosts: GitHub avatars and files on the
``master`` branch of upstream repositories. A rename upstream broke an image
in silence, and every page view hit third-party hosts. This tool copies them
-into ``docs_assets/logos/`` and ``docs_assets/system-icons/``, which are
+into ``website/assets/logos/`` and ``website/assets/system-icons/``, which are
committed, and records where each came from in a ``sources.json`` beside
them. The site build only reads those copies (``sitegen.pageprep.localize_images``).
diff --git a/scripts/generate_readme.py b/scripts/generate_readme.py
index 36e5f75ba..bddc25379 100644
--- a/scripts/generate_readme.py
+++ b/scripts/generate_readme.py
@@ -18,12 +18,21 @@ sys.path.insert(0, os.path.dirname(__file__))
from core.cli import add_repo_inputs
from model.database import load_database
from core.artifacts import repository_output_lock
-from sitegen.readme import README_PATH, load_readme_inputs, render_readme, write_readme
+from sitegen.readme import (
+ README_PATH,
+ check_readme,
+ load_readme_inputs,
+ render_readme,
+ write_readme,
+)
def main() -> None:
parser = argparse.ArgumentParser(allow_abbrev=False, description="Generate slim README.md")
add_repo_inputs(parser, "db", "platforms")
+ parser.add_argument("--check", action="store_true",
+ help="exit 1 when README.md or CONTRIBUTING.md differs from what"
+ " the generator writes, writing nothing")
args = parser.parse_args()
import contextlib
@@ -38,6 +47,8 @@ def main() -> None:
with repository_output_lock(str(README_PATH)), contextlib.ExitStack() as held:
hold_data_dirs(held, load_data_dir_registry(args.platforms_dir))
inputs = load_readme_inputs(db, args.platforms_dir, args.db)
+ if args.check:
+ sys.exit(check_readme(render_readme(inputs)))
write_readme(render_readme(inputs))
diff --git a/scripts/make_demo.py b/scripts/make_demo.py
index fac6b7f30..e4b4b945a 100644
--- a/scripts/make_demo.py
+++ b/scripts/make_demo.py
@@ -34,14 +34,14 @@ Everything a recording reads is local and the same on every machine:
rest of the bootstrap as the site's copy does.
- HOME is an empty folder and the prompt is "$ ".
-docs_assets/demo/.tape drives VHS (github.com/charmbracelet/vhs, with
+website/assets/demo/.tape drives VHS (github.com/charmbracelet/vhs, with
ttyd, ffmpeg and a Chromium on PATH, and bwrap for the handheld). This
script encodes what it records:
- docs_assets/demo/install.gif the README (the default variant only)
- docs_assets/demo/.webm the site, with .mp4 as fallback
- docs_assets/demo/.png the first frame shown, the video's poster
- docs_assets/demo/demo.json per variant, what it shows and its alt text
+ website/assets/demo/install.gif the README (the default variant only)
+ website/assets/demo/.webm the site, with .mp4 as fallback
+ website/assets/demo/.png the first frame shown, the video's poster
+ website/assets/demo/demo.json per variant, what it shows and its alt text
The site build copies the video files and never runs this script. Run it
again when a screen of the installer or the file list of its games changes:
diff --git a/scripts/make_og_cards.py b/scripts/make_og_cards.py
index f3140f23f..346c25ae5 100644
--- a/scripts/make_og_cards.py
+++ b/scripts/make_og_cards.py
@@ -3,7 +3,7 @@
Each card is an SVG written by ``sitegen.ogcards.og_card_svg`` from the
registry, rasterised by a headless Chromium through Playwright, then
-committed under ``docs_assets/og/``. The site build copies the PNG files and
+committed under ``website/assets/og/``. The site build copies the PNG files and
never runs this script, so it adds nothing to the build's dependencies.
Run it again when a section's wording, the platform count, the list of
platforms or the consoles of a manufacturer change.
diff --git a/scripts/make_site_icons.py b/scripts/make_site_icons.py
index 6f1977458..898b80d81 100644
--- a/scripts/make_site_icons.py
+++ b/scripts/make_site_icons.py
@@ -11,7 +11,7 @@ four pins per side and the pixel glyph on a 4 by 4 grid. Three variants:
shapes rasterised by a headless Chromium through Playwright, for browsers
that take no SVG icon and for home-screen shortcuts.
-The files land in ``docs_assets/brand/``, which generate_site.py copies into
+The files land in ``website/assets/brand/``, which generate_site.py copies into
the site. The site build never runs this script.
The repository's own images come from the same shapes, in ``.github/assets/``:
diff --git a/scripts/model/database.py b/scripts/model/database.py
index f85d8800e..3ea37c91c 100644
--- a/scripts/model/database.py
+++ b/scripts/model/database.py
@@ -161,7 +161,7 @@ _mame_clone_map_cache: dict[str, dict[str, str]] = {}
class CloneMapUnreadable(SourceUnreadable):
- """_mame_clones.json exists but is not a JSON object."""
+ """mame_clones.json exists but is not a JSON object."""
def clone_map_path(bios_dir: str) -> str:
@@ -171,7 +171,7 @@ def clone_map_path(bios_dir: str) -> str:
relative to the working directory let a scan of a fixture tree rewrite
the repository's own map.
"""
- return os.path.join(os.path.dirname(os.path.abspath(bios_dir)), "_mame_clones.json")
+ return os.path.join(os.path.dirname(os.path.abspath(bios_dir)), "mame_clones.json")
def read_clone_map(clone_path: str) -> dict:
@@ -195,7 +195,7 @@ def read_clone_map(clone_path: str) -> dict:
def get_mame_clone_map(bios_dir: str | None = None) -> dict[str, str]:
"""The MAME clone map (clone_name -> canonical_name) of a scanned tree.
- dedup.py writes _mame_clones.json beside the tree it scanned, and the
+ dedup.py writes mame_clones.json beside the tree it scanned, and the
map of one tree says nothing about another: read from the repository
root whatever ``--bios-dir`` said, an alternate tree's renamed clones
fell out of its packs. Without a tree the repository's own is read.
diff --git a/scripts/sitegen/brand.py b/scripts/sitegen/brand.py
index 8120b9703..61b79dafb 100644
--- a/scripts/sitegen/brand.py
+++ b/scripts/sitegen/brand.py
@@ -8,7 +8,7 @@ from typing import Any
from core.paths import REPO_ROOT
-OUT = REPO_ROOT / "docs_assets" / "brand"
+OUT = REPO_ROOT / "website" / "assets" / "brand"
PROJECT = REPO_ROOT / ".github" / "assets"
HEADER = "#3b3f7a"
diff --git a/scripts/sitegen/build.py b/scripts/sitegen/build.py
index f2f0894b5..60df26e34 100644
--- a/scripts/sitegen/build.py
+++ b/scripts/sitegen/build.py
@@ -140,12 +140,12 @@ def _write_public_assets(docs: Path, public: Path) -> None:
images_dest = public / "assets" / "images"
images_dest.mkdir(parents=True, exist_ok=True)
# Logos, system icons and sharing cards are served from the site itself
- # (docs_assets/*/sources.json records where each came from).
+ # (website/assets/*/sources.json records where each came from).
# brand: the mark, favicons and touch icon (scripts/make_site_icons.py).
folders = [("logos", "logos"), ("system-icons", "system-icons"), ("og", "og"),
("brand", "brand")]
for folder, dest in folders:
- source = Path("docs_assets") / folder
+ source = Path("website", "assets") / folder
if source.is_dir():
shutil.copytree(source, public / "assets" / dest, dirs_exist_ok=True)
# The diagrams and the drawn install steps, one SVG per layout and theme.
@@ -154,7 +154,7 @@ def _write_public_assets(docs: Path, public: Path) -> None:
demo_dest = public / "assets" / "demo"
demo_dest.mkdir(parents=True, exist_ok=True)
for name in DEMO_ASSETS:
- shutil.copy2(Path("docs_assets") / "demo" / name, demo_dest / name)
+ shutil.copy2(Path("website", "assets") / "demo" / name, demo_dest / name)
assets_src = Path(".github") / "assets"
for name, dest_name in [("logo.png", "logo.png"), ("favicon.png", "favicon.png")]:
src = assets_src / name
diff --git a/scripts/sitegen/coverage.py b/scripts/sitegen/coverage.py
index 1911f32b7..4892958bb 100644
--- a/scripts/sitegen/coverage.py
+++ b/scripts/sitegen/coverage.py
@@ -122,7 +122,7 @@ def _coverage_inputs(db_path: Path, platforms_dir: str, emulators_dir: str) -> s
revisions = sorted({REPO_ROOT / versions_file_for(entry)
for entry in load_data_dir_registry(platforms_dir).values()
if entry.get("local_cache")})
- for path in (REPO_ROOT / ".gitignore", REPO_ROOT / "_mame_clones.json", *revisions):
+ for path in (REPO_ROOT / ".gitignore", REPO_ROOT / "mame_clones.json", *revisions):
add_file(path)
digest.update(b"offline\0" + (b"1" if run_is_offline() else b"0") + b"\n")
large = Path(LARGE_FILES_CACHE).resolve()
diff --git a/scripts/sitegen/demovariants.py b/scripts/sitegen/demovariants.py
index b20f65522..ae8533fa0 100644
--- a/scripts/sitegen/demovariants.py
+++ b/scripts/sitegen/demovariants.py
@@ -8,7 +8,7 @@ from pathlib import Path
from core.paths import REPO_ROOT
-OUT = REPO_ROOT / "docs_assets" / "demo"
+OUT = REPO_ROOT / "website" / "assets" / "demo"
WORK = REPO_ROOT / "tmp" / "demo"
FACTS = OUT / "demo.json"
diff --git a/scripts/sitegen/guidepage.py b/scripts/sitegen/guidepage.py
index bf3ec6329..33e162a2e 100644
--- a/scripts/sitegen/guidepage.py
+++ b/scripts/sitegen/guidepage.py
@@ -143,7 +143,7 @@ def first_screen_words() -> list[str]:
f"and **{installer.TUI_FOLDER_TITLE}**), then offers **{installer.TUI_INSTALL_ROW}**."]
-# The demo files the site serves (docs_assets/demo/, scripts/make_demo.py):
+# The demo files the site serves (website/assets/demo/, scripts/make_demo.py):
# the GIF is the README's, the tape and demo.json are inputs.
DEMO_ASSETS = tuple(f"{stem}.{ext}" for stem in ("install", "install-handheld")
for ext in ("webm", "mp4", "png"))
diff --git a/scripts/sitegen/imagefetch.py b/scripts/sitegen/imagefetch.py
index 0c277c82a..f0f4de533 100644
--- a/scripts/sitegen/imagefetch.py
+++ b/scripts/sitegen/imagefetch.py
@@ -1,4 +1,4 @@
-"""The platform logos and system icons the site shows, copied once into docs_assets/."""
+"""The platform logos and system icons the site shows, copied once into website/assets/."""
from __future__ import annotations
diff --git a/scripts/sitegen/ogcards.py b/scripts/sitegen/ogcards.py
index f29812660..3b6d5d101 100644
--- a/scripts/sitegen/ogcards.py
+++ b/scripts/sitegen/ogcards.py
@@ -17,8 +17,8 @@ from model.platforms import load_platform_config
from model.registry import list_registered_platforms
from sitegen.diagrams import FONT, setups_named, wrap
-OUT = REPO_ROOT / "docs_assets" / "og"
-LOGO = REPO_ROOT / "docs_assets" / "brand" / "logo.svg"
+OUT = REPO_ROOT / "website" / "assets" / "og"
+LOGO = REPO_ROOT / "website" / "assets" / "brand" / "logo.svg"
PLATFORM_TAGLINE = "Which BIOS files it needs, and where each one goes"
# The tagline's box on the card: og_card_svg wraps it at this width and
# size, and three lines fit above the address.
@@ -26,7 +26,7 @@ TAGLINE_WIDTH, TAGLINE_SIZE, TAGLINE_LINES = 1000, 34, 3
# Sharing cards: one 1200x630 card per section of the site, rendered to PNG
-# once by scripts/make_og_cards.py and committed under docs_assets/og/.
+# once by scripts/make_og_cards.py and committed under website/assets/og/.
OG_SECTIONS: dict[str, tuple[str, str]] = {
"home": ("BIOS and firmware packs", "Checked file by file, for {frontends}"),
@@ -40,7 +40,7 @@ OG_SECTIONS: dict[str, tuple[str, str]] = {
def og_card_svg(section: str, mark_svg: str) -> str:
"""A sharing card. ``mark_svg`` is the site's white mark
- (docs_assets/brand/logo.svg), drawn as the header draws it."""
+ (website/assets/brand/logo.svg), drawn as the header draws it."""
title, tagline = OG_SECTIONS[section]
tagline = tagline.format(frontends=setups_named(["RetroArch", "Batocera", "EmuDeck"]))
mark = mark_svg.strip().replace("