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(" list[str]:
# Local copies of images the site used to load from other hosts.
-LOGO_DIR = REPO_ROOT / "docs_assets" / "logos"
-ICON_DIR = REPO_ROOT / "docs_assets" / "system-icons"
+LOGO_DIR = REPO_ROOT / "website" / "assets" / "logos"
+ICON_DIR = REPO_ROOT / "website" / "assets" / "system-icons"
SITE_LOGO_DIR = "assets/logos"
SITE_ICON_DIR = "assets/system-icons"
IMAGE_LINK = re.compile(r"(!\[[^\]\n]*\]\()(https?://[^)\s]+)(\))")
diff --git a/scripts/sitegen/readme.py b/scripts/sitegen/readme.py
index 9faed15e3..cf5a62a92 100644
--- a/scripts/sitegen/readme.py
+++ b/scripts/sitegen/readme.py
@@ -14,7 +14,7 @@ from core.text import series
from romrecipes import ledger
from devtools import prchecks
from model import releaserecord, siteinputs
-from core.artifacts import write_if_changed
+from core.artifacts import content_differs, write_if_changed
from core.paths import DB_FILE, REPO_ROOT
from core.sizes import size_text
from core import upstream
@@ -94,7 +94,7 @@ def collection_line(total_files: int, comp: dict) -> str:
# The installer demo (scripts/make_demo.py): the recording and what it shows.
-DEMO_GIF = "docs_assets/demo/install.gif"
+DEMO_GIF = "website/assets/demo/install.gif"
REPO = REPO_SLUG
README_PATH = REPO_ROOT / "README.md"
CONTRIBUTING_PATH = REPO_ROOT / "CONTRIBUTING.md"
@@ -372,6 +372,7 @@ def render_readme(inputs: ReadmeInputs) -> str:
f"- Have a file? [Check it by its hash]({SITE_URL}files/)",
f"- Every console and the files it needs: [systems]({SITE_URL}systems/)",
f"- Asking an AI assistant: it reads the site best from [llms.txt]({SITE_URL}llms.txt)",
+ f"- Screen reader, keyboard only or no colour: [accessibility]({SITE_URL}wiki/accessibility/)",
"",
"## How it is built",
"",
@@ -612,14 +613,32 @@ def generate_contributing() -> str:
)
-def write_readme(readme: str) -> None:
- status = "Generated" if write_if_changed(str(README_PATH), readme) else "Unchanged"
- print(f"{status} ./README.md")
+# The first line of both repository files: GitHub renders the comment as
+# nothing, and whoever opens the file to edit it learns where the text comes from.
+GENERATED_MARKER = (
+ "\n"
+)
- contributing = generate_contributing()
- status = (
- "Generated"
- if write_if_changed(str(CONTRIBUTING_PATH), contributing)
- else "Unchanged"
- )
- print(f"{status} ./CONTRIBUTING.md")
+
+def readme_files(readme: str) -> dict[Path, str]:
+ """README.md and CONTRIBUTING.md as the repository holds them."""
+ return {
+ Path(README_PATH): GENERATED_MARKER + readme,
+ Path(CONTRIBUTING_PATH): GENERATED_MARKER + generate_contributing(),
+ }
+
+
+def check_readme(readme: str) -> int:
+ """1, naming each file, when the committed text differs from the generated one."""
+ stale = [path.name for path, text in readme_files(readme).items()
+ if content_differs(str(path), text)]
+ for name in stale:
+ print(f"{name} differs from what generate_readme.py writes: run it and commit")
+ return 1 if stale else 0
+
+
+def write_readme(readme: str) -> None:
+ for path, text in readme_files(readme).items():
+ status = "Generated" if write_if_changed(str(path), text) else "Unchanged"
+ print(f"{status} ./{path.name}")
diff --git a/scripts/sitegen/runlinks.py b/scripts/sitegen/runlinks.py
index c2e094aa3..1628fab16 100644
--- a/scripts/sitegen/runlinks.py
+++ b/scripts/sitegen/runlinks.py
@@ -64,7 +64,7 @@ def prime_system_icons(names: set[str]) -> int:
"""Record which system icons the site holds a copy of, and return how
many of ``names`` have none.
- The icons are copied once into ``docs_assets/system-icons/`` by
+ The icons are copied once into ``website/assets/system-icons/`` by
``scripts/fetch_site_images.py``: the build reads that folder and never
the network. A system without a copy gets no icon, because a heading
with a broken image reads worse than a heading without one.
diff --git a/scripts/sitegen/starlight.py b/scripts/sitegen/starlight.py
index 676445933..bf71b1592 100644
--- a/scripts/sitegen/starlight.py
+++ b/scripts/sitegen/starlight.py
@@ -315,7 +315,7 @@ def og_section(rel: str, level: str) -> str:
# Sharing cards of their own, made by scripts/make_og_cards.py: one per
# platform page, titled with the platform's name.
-OG_DIR = REPO_ROOT / "docs_assets" / "og"
+OG_DIR = REPO_ROOT / "website" / "assets" / "og"
# An emulator page's card is that of the maker of the first system it runs,
diff --git a/scripts/sitegen/steps.py b/scripts/sitegen/steps.py
index e7713fce5..c6cd6da97 100644
--- a/scripts/sitegen/steps.py
+++ b/scripts/sitegen/steps.py
@@ -86,7 +86,7 @@ STEPS: dict[str, tuple[str, tuple[Step, ...]]] = {
)),
}
-# The recording each tab shows (docs_assets/demo/demo.json keys), "" for none.
+# The recording each tab shows (website/assets/demo/demo.json keys), "" for none.
TAB_DEMOS = {"device": "handheld", "windows": ""}
DEFAULT_DEMO = "default"
diff --git a/tests/test_audit_docs.py b/tests/test_audit_docs.py
index e79cebf03..92bf40626 100644
--- a/tests/test_audit_docs.py
+++ b/tests/test_audit_docs.py
@@ -800,7 +800,7 @@ class DocsDescribeTheRegistriesTheyName(unittest.TestCase):
tools = (REPO_ROOT / "wiki" / "tools.md").read_text(encoding="utf-8")
line = next(entry for entry in tools.splitlines() if "NODEDUP_DIRS" in entry)
# Compared as list items: `mame` was missing while the substring
- # test found it in `_mame_clones.json` on the same line.
+ # test found it in `mame_clones.json` on the same line.
listed = line.split("`NODEDUP_DIRS`", 1)[1].split(":", 1)[1].rstrip(" |")
self.assertEqual(
sorted(item.strip() for item in listed.split(",")),
diff --git a/tests/test_audit_resolution.py b/tests/test_audit_resolution.py
index 539519dca..937a8d56d 100644
--- a/tests/test_audit_resolution.py
+++ b/tests/test_audit_resolution.py
@@ -550,7 +550,7 @@ class GeneratedModelsAreWrittenWhole(unittest.TestCase):
archive.writestr("rom.bin", b"rom")
data = (bios / "Arcade" / "MAME" / "set.zip").read_bytes()
(bios / "Arcade" / "MAME" / "setclone.zip").write_bytes(data)
- (root / "_mame_clones.json").write_text("<<<<<<< HEAD")
+ (root / "mame_clones.json").write_text("<<<<<<< HEAD")
from model.database import CloneMapUnreadable
with self.assertRaises(CloneMapUnreadable):
@@ -564,11 +564,11 @@ class GeneratedModelsAreWrittenWhole(unittest.TestCase):
with tempfile.TemporaryDirectory() as directory:
root = Path(directory)
(root / "bios").mkdir()
- (root / "_mame_clones.json").write_text("<<<<<<< HEAD")
+ (root / "mame_clones.json").write_text("<<<<<<< HEAD")
with self.assertRaises(database.CloneMapUnreadable) as caught:
database.get_mame_clone_map(str(root / "bios"))
self.assertIn("Restore it from git", str(caught.exception))
- (root / "_mame_clones.json").write_text("[]")
+ (root / "mame_clones.json").write_text("[]")
with self.assertRaises(database.CloneMapUnreadable):
database.get_mame_clone_map(str(root / "bios"))
@@ -765,7 +765,7 @@ class AMameCloneNameIsANameStep(unittest.TestCase):
bios.mkdir(parents=True)
parent = bios / "parent.zip"
parent.write_bytes(b"PARENTSET")
- (self.tmp / "_mame_clones.json").write_text(
+ (self.tmp / "mame_clones.json").write_text(
json.dumps({"parent.zip": {"clones": ["clone.zip"]}})
)
sha1 = hashlib.sha1(parent.read_bytes()).hexdigest()
diff --git a/tests/test_dedup.py b/tests/test_dedup.py
index 8bb89f3b9..ffae24659 100644
--- a/tests/test_dedup.py
+++ b/tests/test_dedup.py
@@ -248,7 +248,7 @@ class CloneMapSurvivesASecondRun(_Bios):
def _map(self) -> dict:
import json
- path = Path(self._tmp.name) / "_mame_clones.json"
+ path = Path(self._tmp.name) / "mame_clones.json"
return json.loads(path.read_text()) if path.exists() else {}
def test_the_map_is_written_beside_the_scanned_tree_not_the_cwd(self):
@@ -256,7 +256,7 @@ class CloneMapSurvivesASecondRun(_Bios):
The map was written to the working directory. The test suite runs
from the repo root, so a fixture scan of a temporary tree rewrote the
- committed _mame_clones.json with two fixture entries, and a later
+ committed mame_clones.json with two fixture entries, and a later
rewrite left 2 of its 71 parents.
"""
elsewhere = Path(self._tmp.name) / "elsewhere"
@@ -265,7 +265,7 @@ class CloneMapSurvivesASecondRun(_Bios):
self.write("Arcade/MAME/bbc_m87.zip")
self.write("Arcade/MAME/bbc_24bbc.zip")
self.run_dedup()
- self.assertFalse((elsewhere / "_mame_clones.json").exists())
+ self.assertFalse((elsewhere / "mame_clones.json").exists())
self.assertIn("bbc_m87.zip", self._map())
def test_a_recorded_mapping_survives_a_later_run(self):
diff --git a/tests/test_doc_pages_tools.py b/tests/test_doc_pages_tools.py
index 3940f3aec..f712030f5 100644
--- a/tests/test_doc_pages_tools.py
+++ b/tests/test_doc_pages_tools.py
@@ -189,7 +189,7 @@ CONTRIBUTOR_PAGES = (
REPO_DIRS = (
"scripts/", "platforms/", "emulators/", "schemas/", "tests/", "wiki/", "install/",
"provenance/", "recipes/", "exports/", "measurements/", "website/", "automation/",
- "ports/", "docs_assets/", "docs/", "campaign/",
+ "ports/", "docs/", "campaign/",
)
PLACEHOLDER = re.compile(r"[<>*{}]|myplatform|\bNAME\b|\.\.\.")
diff --git a/tests/test_optional_dependencies.py b/tests/test_optional_dependencies.py
index 363bcc87a..c03f10bdf 100644
--- a/tests/test_optional_dependencies.py
+++ b/tests/test_optional_dependencies.py
@@ -62,7 +62,7 @@ class SuiteWithoutJsonschema(unittest.TestCase):
# Tools a maintainer runs by hand when a logo or a card changes. Their output
-# is committed under docs_assets/ and the build only reads it, so the build
+# is committed under website/assets/ and the build only reads it, so the build
# keeps to the standard library and pyyaml.
MAINTENANCE_TOOLS = {
"sitegen/imagenormalize.py": "PIL",
diff --git a/tests/test_repository_map.py b/tests/test_repository_map.py
new file mode 100644
index 000000000..88855473f
--- /dev/null
+++ b/tests/test_repository_map.py
@@ -0,0 +1,109 @@
+"""The repository's root says what each of its entries is and which files are generated.
+
+The directory map of the architecture page left out games/, packaging/,
+measurements/ and four root data files, and README.md and CONTRIBUTING.md
+gave no sign that a generator writes them.
+"""
+
+from __future__ import annotations
+
+import tests
+
+import re
+import subprocess
+import unittest
+from pathlib import Path
+
+import yaml
+
+from core.generated import GENERATED
+from sitegen.readme import GENERATED_MARKER
+
+REPO_ROOT = Path(__file__).resolve().parent.parent
+# Named by the map, never tracked: written by a run.
+UNTRACKED = {"data/", "dist/", ".cache/"}
+
+
+def _tracked_root() -> set[str]:
+ listed = subprocess.run(
+ ["git", "ls-files", "-z"], cwd=REPO_ROOT, capture_output=True, check=True,
+ ).stdout.decode("utf-8").split("\0")
+ return {
+ path.split("/", 1)[0] + ("/" if "/" in path else "")
+ for path in listed if path
+ }
+
+
+def _map_block() -> str:
+ page = (REPO_ROOT / "wiki" / "architecture.md").read_text(encoding="utf-8")
+ section = page.split("## Directory structure", 1)[1]
+ return section.split("```", 2)[1]
+
+
+class TheMapNamesEveryRootEntry(unittest.TestCase):
+ def setUp(self) -> None:
+ if not (REPO_ROOT / ".git").exists():
+ self.skipTest("not a git checkout")
+
+ def test_every_tracked_root_entry_is_in_the_map(self):
+ names = set(re.findall(r"[\w.-]+/?", _map_block()))
+ self.assertEqual(sorted(_tracked_root() - names), [])
+
+ def test_every_root_entry_of_the_map_exists(self):
+ named = {word.split("/", 1)[0] + ("/" if "/" in word else "")
+ for word in (line.split()[0] for line in _map_block().splitlines()
+ if line and not line[0].isspace())}
+ self.assertEqual(sorted(named - _tracked_root() - UNTRACKED), [])
+
+
+class GeneratedFilesAreMarked(unittest.TestCase):
+ def test_gitattributes_marks_what_a_pipeline_run_writes(self):
+ text = (REPO_ROOT / ".gitattributes").read_text(encoding="utf-8")
+ marked = re.findall(r"(?m)^/(\S+)\s+linguist-generated=true$", text)
+ self.assertEqual(marked, list(GENERATED))
+
+ def test_readme_and_contributing_name_their_generator(self):
+ for name in ("README.md", "CONTRIBUTING.md"):
+ with self.subTest(file=name):
+ text = (REPO_ROOT / name).read_text(encoding="utf-8")
+ self.assertTrue(text.startswith(GENERATED_MARKER))
+
+ def test_a_hand_edit_fails_validation(self):
+ workflow = yaml.safe_load(
+ (REPO_ROOT / ".github" / "workflows" / "validate.yml").read_text(encoding="utf-8"))
+ on = workflow.get("on", workflow.get(True))
+ for event in ("pull_request", "push"):
+ with self.subTest(event=event):
+ self.assertLessEqual({"README.md", "CONTRIBUTING.md"}, set(on[event]["paths"]))
+ runs = [str(step.get("run", "")) for job in workflow["jobs"].values()
+ for step in job["steps"]]
+ self.assertIn(
+ "python scripts/generate_readme.py --db database.json --platforms-dir platforms --check",
+ runs)
+
+ def test_the_check_names_a_hand_edit(self):
+ import io
+ from contextlib import redirect_stdout
+ from tempfile import TemporaryDirectory
+ from unittest import mock
+
+ from sitegen import readme
+
+ with TemporaryDirectory() as tmp:
+ root = Path(tmp)
+ paths = {"README_PATH": root / "README.md", "CONTRIBUTING_PATH": root / "CONTRIBUTING.md"}
+ with mock.patch.multiple(readme, **paths):
+ with redirect_stdout(io.StringIO()):
+ readme.write_readme("body\n")
+ out = io.StringIO()
+ with redirect_stdout(out):
+ self.assertEqual(readme.check_readme("body\n"), 0)
+ paths["README_PATH"].write_text(GENERATED_MARKER + "edited\n", encoding="utf-8")
+ with redirect_stdout(out):
+ self.assertEqual(readme.check_readme("body\n"), 1)
+ self.assertIn("README.md differs", out.getvalue())
+ self.assertNotIn("CONTRIBUTING.md differs", out.getvalue())
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/tests/test_site_components.py b/tests/test_site_components.py
index 090918032..35f8b1004 100644
--- a/tests/test_site_components.py
+++ b/tests/test_site_components.py
@@ -302,7 +302,7 @@ class Picker(unittest.TestCase):
UNBROKEN = WEBSITE / "src" / "plugins" / "ec-unbroken-tokens.mjs"
-LOGOS = REPO_ROOT / "docs_assets" / "logos"
+LOGOS = REPO_ROOT / "website" / "assets" / "logos"
# Shown at 40 px in a tile and beside a setup's title: twice that for a
# sharp mark on a dense screen.
diff --git a/tests/test_site_demo.py b/tests/test_site_demo.py
index 5dc2a9cc1..dc765d381 100644
--- a/tests/test_site_demo.py
+++ b/tests/test_site_demo.py
@@ -28,7 +28,7 @@ from sitegen import starlight as sitestarlight
ROOT = Path(__file__).resolve().parent.parent
-DEMO = ROOT / "docs_assets" / "demo"
+DEMO = ROOT / "website" / "assets" / "demo"
COMPONENT = ROOT / "website" / "src" / "components" / "InstallDemo.astro"
diff --git a/tests/test_site_images.py b/tests/test_site_images.py
index a05d66073..48db05ca7 100644
--- a/tests/test_site_images.py
+++ b/tests/test_site_images.py
@@ -141,7 +141,7 @@ class NoMermaidAtRuntime(unittest.TestCase):
class ImagesAreServedFromTheSite(unittest.TestCase):
def _manifest(self, folder: str) -> list[dict]:
- path = ROOT / "docs_assets" / folder / "sources.json"
+ path = ROOT / "website" / "assets" / folder / "sources.json"
return json.loads(path.read_text(encoding="utf-8"))["images"]
def test_every_registry_logo_has_a_local_copy(self):
@@ -155,13 +155,13 @@ class ImagesAreServedFromTheSite(unittest.TestCase):
with self.subTest(platform=name):
self.assertIn(name, copies, "run scripts/fetch_site_images.py --only logos")
self.assertEqual(copies[name]["source"], entry["logo"])
- self.assertTrue((ROOT / "docs_assets" / "logos" / copies[name]["file"]).is_file())
+ self.assertTrue((ROOT / "website" / "assets" / "logos" / copies[name]["file"]).is_file())
self.assertTrue(copies[name]["owner"] and copies[name]["licence"])
def test_every_recorded_icon_exists(self):
for entry in self._manifest("system-icons"):
with self.subTest(icon=entry["file"]):
- self.assertTrue((ROOT / "docs_assets" / "system-icons" / entry["file"]).is_file())
+ self.assertTrue((ROOT / "website" / "assets" / "system-icons" / entry["file"]).is_file())
def test_remote_links_with_a_copy_are_rewritten(self):
logo = self._manifest("logos")[0]
@@ -195,10 +195,10 @@ class SharingCards(unittest.TestCase):
for section in ogcards.OG_SECTIONS:
with self.subTest(section=section):
- data = (ROOT / "docs_assets" / "og" / f"{section}.png").read_bytes()
+ data = (ROOT / "website" / "assets" / "og" / f"{section}.png").read_bytes()
self.assertEqual(data[:8], b"\x89PNG\r\n\x1a\n")
self.assertEqual(struct.unpack(">II", data[16:24]), (1200, 630))
- mark = (ROOT / "docs_assets" / "brand" / "logo.svg").read_text(encoding="utf-8")
+ mark = (ROOT / "website" / "assets" / "brand" / "logo.svg").read_text(encoding="utf-8")
ET.fromstring(ogcards.og_card_svg(section, mark))
def test_the_template_names_every_section(self):
@@ -210,14 +210,14 @@ class SharingCards(unittest.TestCase):
self.assertEqual(named, set(ogcards.OG_SECTIONS))
for section in named:
with self.subTest(section=section):
- self.assertTrue((ROOT / "docs_assets" / "og" / f"{section}.png").is_file())
+ self.assertTrue((ROOT / "website" / "assets" / "og" / f"{section}.png").is_file())
class ImagesStillNeeded(unittest.TestCase):
"""Screens that need a real device are listed, never drawn as a mock-up."""
def test_the_list_gives_each_capture_its_alt_text(self):
- text = (ROOT / "docs_assets" / "images-needed.md").read_text(encoding="utf-8")
+ text = (ROOT / "wiki" / "images-wanted.md").read_text(encoding="utf-8")
entries = re.findall(r"(?m)^## ", text)
self.assertGreater(len(entries), 3)
self.assertEqual(len(entries), len(re.findall(r"(?m)^\*\*Alt text\*\*", text)))
diff --git a/tests/test_site_integration.py b/tests/test_site_integration.py
index 57fee20fa..30040eb8b 100644
--- a/tests/test_site_integration.py
+++ b/tests/test_site_integration.py
@@ -92,7 +92,7 @@ class PlatformLogos(unittest.TestCase):
tiles = {re.sub(r"[^a-z0-9]+", "-", tile.name.lower()).strip("-"): tile.logo
for group in group_tiles().values() for tile in group}
- sources = json.loads((REPO_ROOT / "docs_assets" / "logos" / "sources.json").read_text())
+ sources = json.loads((REPO_ROOT / "website" / "assets" / "logos" / "sources.json").read_text())
for entry in sources["images"]:
with self.subTest(platform=entry["platform"]):
logo = (self.registry[entry["platform"]].get("logo")
diff --git a/tests/test_site_nav.py b/tests/test_site_nav.py
index 1b2dda2c8..df53aba56 100644
--- a/tests/test_site_nav.py
+++ b/tests/test_site_nav.py
@@ -285,7 +285,7 @@ class PlatformShareCards(unittest.TestCase):
def test_every_platform_page_shares_its_own_card(self):
for key in list_registered_platforms(str(REPO_ROOT / "platforms")):
with self.subTest(platform=key):
- card = REPO_ROOT / "docs_assets" / "og" / "platforms" / f"{key}.png"
+ card = REPO_ROOT / "website" / "assets" / "og" / "platforms" / f"{key}.png"
data = card.read_bytes()
self.assertEqual(struct.unpack(">II", data[16:24]), (1200, 630))
self.assertEqual(sitestarlight.og_image(f"platforms/{key}.md", "setup"),
diff --git a/tests/test_site_render.py b/tests/test_site_render.py
index 75aa598e4..bb5d6c3d8 100644
--- a/tests/test_site_render.py
+++ b/tests/test_site_render.py
@@ -26,7 +26,7 @@ REPO_ROOT = Path(__file__).resolve().parents[1]
class IconsComeFromTheLocalCopies(unittest.TestCase):
"""Icons were checked against upstream with a HEAD request per system on
every build, and linked from a branch tip. The build now reads the copies
- in docs_assets/system-icons and makes no request."""
+ in website/assets/system-icons and makes no request."""
def setUp(self) -> None:
self.addCleanup(runlinks.use, runlinks.current())
@@ -35,7 +35,7 @@ class IconsComeFromTheLocalCopies(unittest.TestCase):
def test_availability_is_the_folder(self):
tmp = tempfile.TemporaryDirectory()
self.addCleanup(tmp.cleanup)
- folder = Path(tmp.name) / "docs_assets" / "system-icons"
+ folder = Path(tmp.name) / "website" / "assets" / "system-icons"
folder.mkdir(parents=True)
(folder / "A - One.png").write_bytes(b"png")
with mock.patch.object(runlinks, "ICON_DIR", folder):
diff --git a/tests/test_site_systems.py b/tests/test_site_systems.py
index 741ddcc1f..889566522 100644
--- a/tests/test_site_systems.py
+++ b/tests/test_site_systems.py
@@ -598,10 +598,10 @@ class EachManufacturerHasItsCard(unittest.TestCase):
def test_every_manufacturer_page_has_a_committed_card(self) -> None:
cards = ogcards.system_cards()
missing = [key for key in cards
- if not (REPO_ROOT / "docs_assets" / "og" / f"{key}.png").is_file()]
+ if not (REPO_ROOT / "website" / "assets" / "og" / f"{key}.png").is_file()]
self.assertEqual(missing, [], "run python scripts/make_og_cards.py --only systems")
# A card left behind by a page that went: oric.png outlived its page.
- committed = (REPO_ROOT / "docs_assets" / "og" / "systems").glob("*.png")
+ committed = (REPO_ROOT / "website" / "assets" / "og" / "systems").glob("*.png")
stale = sorted(f"systems/{path.stem}" for path in committed
if f"systems/{path.stem}" not in cards)
self.assertEqual(stale, [])
diff --git a/docs_assets/brand/apple-touch-icon.png b/website/assets/brand/apple-touch-icon.png
similarity index 100%
rename from docs_assets/brand/apple-touch-icon.png
rename to website/assets/brand/apple-touch-icon.png
diff --git a/docs_assets/brand/favicon-32.png b/website/assets/brand/favicon-32.png
similarity index 100%
rename from docs_assets/brand/favicon-32.png
rename to website/assets/brand/favicon-32.png
diff --git a/docs_assets/brand/favicon.svg b/website/assets/brand/favicon.svg
similarity index 100%
rename from docs_assets/brand/favicon.svg
rename to website/assets/brand/favicon.svg
diff --git a/docs_assets/brand/logo.svg b/website/assets/brand/logo.svg
similarity index 100%
rename from docs_assets/brand/logo.svg
rename to website/assets/brand/logo.svg
diff --git a/docs_assets/demo/demo.json b/website/assets/demo/demo.json
similarity index 100%
rename from docs_assets/demo/demo.json
rename to website/assets/demo/demo.json
diff --git a/docs_assets/demo/install-handheld.mp4 b/website/assets/demo/install-handheld.mp4
similarity index 100%
rename from docs_assets/demo/install-handheld.mp4
rename to website/assets/demo/install-handheld.mp4
diff --git a/docs_assets/demo/install-handheld.png b/website/assets/demo/install-handheld.png
similarity index 100%
rename from docs_assets/demo/install-handheld.png
rename to website/assets/demo/install-handheld.png
diff --git a/docs_assets/demo/install-handheld.tape b/website/assets/demo/install-handheld.tape
similarity index 100%
rename from docs_assets/demo/install-handheld.tape
rename to website/assets/demo/install-handheld.tape
diff --git a/docs_assets/demo/install-handheld.webm b/website/assets/demo/install-handheld.webm
similarity index 100%
rename from docs_assets/demo/install-handheld.webm
rename to website/assets/demo/install-handheld.webm
diff --git a/docs_assets/demo/install.gif b/website/assets/demo/install.gif
similarity index 100%
rename from docs_assets/demo/install.gif
rename to website/assets/demo/install.gif
diff --git a/docs_assets/demo/install.mp4 b/website/assets/demo/install.mp4
similarity index 100%
rename from docs_assets/demo/install.mp4
rename to website/assets/demo/install.mp4
diff --git a/docs_assets/demo/install.png b/website/assets/demo/install.png
similarity index 100%
rename from docs_assets/demo/install.png
rename to website/assets/demo/install.png
diff --git a/docs_assets/demo/install.tape b/website/assets/demo/install.tape
similarity index 100%
rename from docs_assets/demo/install.tape
rename to website/assets/demo/install.tape
diff --git a/docs_assets/demo/install.webm b/website/assets/demo/install.webm
similarity index 100%
rename from docs_assets/demo/install.webm
rename to website/assets/demo/install.webm
diff --git a/docs_assets/logos/amberelec.webp b/website/assets/logos/amberelec.webp
similarity index 100%
rename from docs_assets/logos/amberelec.webp
rename to website/assets/logos/amberelec.webp
diff --git a/docs_assets/logos/android.svg b/website/assets/logos/android.svg
similarity index 100%
rename from docs_assets/logos/android.svg
rename to website/assets/logos/android.svg
diff --git a/docs_assets/logos/batocera.svg b/website/assets/logos/batocera.svg
similarity index 100%
rename from docs_assets/logos/batocera.svg
rename to website/assets/logos/batocera.svg
diff --git a/docs_assets/logos/bizhawk.webp b/website/assets/logos/bizhawk.webp
similarity index 100%
rename from docs_assets/logos/bizhawk.webp
rename to website/assets/logos/bizhawk.webp
diff --git a/docs_assets/logos/emudeck.webp b/website/assets/logos/emudeck.webp
similarity index 100%
rename from docs_assets/logos/emudeck.webp
rename to website/assets/logos/emudeck.webp
diff --git a/docs_assets/logos/emuelec.webp b/website/assets/logos/emuelec.webp
similarity index 100%
rename from docs_assets/logos/emuelec.webp
rename to website/assets/logos/emuelec.webp
diff --git a/docs_assets/logos/iphone-and-ipad.svg b/website/assets/logos/iphone-and-ipad.svg
similarity index 100%
rename from docs_assets/logos/iphone-and-ipad.svg
rename to website/assets/logos/iphone-and-ipad.svg
diff --git a/docs_assets/logos/knulli.webp b/website/assets/logos/knulli.webp
similarity index 100%
rename from docs_assets/logos/knulli.webp
rename to website/assets/logos/knulli.webp
diff --git a/docs_assets/logos/lakka.svg b/website/assets/logos/lakka.svg
similarity index 100%
rename from docs_assets/logos/lakka.svg
rename to website/assets/logos/lakka.svg
diff --git a/docs_assets/logos/linux-handhelds.svg b/website/assets/logos/linux-handhelds.svg
similarity index 100%
rename from docs_assets/logos/linux-handhelds.svg
rename to website/assets/logos/linux-handhelds.svg
diff --git a/docs_assets/logos/minui.webp b/website/assets/logos/minui.webp
similarity index 100%
rename from docs_assets/logos/minui.webp
rename to website/assets/logos/minui.webp
diff --git a/docs_assets/logos/misterfpga.webp b/website/assets/logos/misterfpga.webp
similarity index 100%
rename from docs_assets/logos/misterfpga.webp
rename to website/assets/logos/misterfpga.webp
diff --git a/docs_assets/logos/myminui.webp b/website/assets/logos/myminui.webp
similarity index 100%
rename from docs_assets/logos/myminui.webp
rename to website/assets/logos/myminui.webp
diff --git a/docs_assets/logos/nextui.webp b/website/assets/logos/nextui.webp
similarity index 100%
rename from docs_assets/logos/nextui.webp
rename to website/assets/logos/nextui.webp
diff --git a/docs_assets/logos/recalbox.svg b/website/assets/logos/recalbox.svg
similarity index 100%
rename from docs_assets/logos/recalbox.svg
rename to website/assets/logos/recalbox.svg
diff --git a/docs_assets/logos/retroarch.svg b/website/assets/logos/retroarch.svg
similarity index 100%
rename from docs_assets/logos/retroarch.svg
rename to website/assets/logos/retroarch.svg
diff --git a/docs_assets/logos/retrobat.webp b/website/assets/logos/retrobat.webp
similarity index 100%
rename from docs_assets/logos/retrobat.webp
rename to website/assets/logos/retrobat.webp
diff --git a/docs_assets/logos/retrodeck.svg b/website/assets/logos/retrodeck.svg
similarity index 100%
rename from docs_assets/logos/retrodeck.svg
rename to website/assets/logos/retrodeck.svg
diff --git a/docs_assets/logos/retropie.webp b/website/assets/logos/retropie.webp
similarity index 100%
rename from docs_assets/logos/retropie.webp
rename to website/assets/logos/retropie.webp
diff --git a/docs_assets/logos/rocknix.webp b/website/assets/logos/rocknix.webp
similarity index 100%
rename from docs_assets/logos/rocknix.webp
rename to website/assets/logos/rocknix.webp
diff --git a/docs_assets/logos/romm.webp b/website/assets/logos/romm.webp
similarity index 100%
rename from docs_assets/logos/romm.webp
rename to website/assets/logos/romm.webp
diff --git a/docs_assets/logos/sources.json b/website/assets/logos/sources.json
similarity index 100%
rename from docs_assets/logos/sources.json
rename to website/assets/logos/sources.json
diff --git a/docs_assets/og/contribute.png b/website/assets/og/contribute.png
similarity index 100%
rename from docs_assets/og/contribute.png
rename to website/assets/og/contribute.png
diff --git a/docs_assets/og/explore.png b/website/assets/og/explore.png
similarity index 100%
rename from docs_assets/og/explore.png
rename to website/assets/og/explore.png
diff --git a/docs_assets/og/home.png b/website/assets/og/home.png
similarity index 100%
rename from docs_assets/og/home.png
rename to website/assets/og/home.png
diff --git a/docs_assets/og/platforms/amberelec.png b/website/assets/og/platforms/amberelec.png
similarity index 100%
rename from docs_assets/og/platforms/amberelec.png
rename to website/assets/og/platforms/amberelec.png
diff --git a/docs_assets/og/platforms/batocera.png b/website/assets/og/platforms/batocera.png
similarity index 100%
rename from docs_assets/og/platforms/batocera.png
rename to website/assets/og/platforms/batocera.png
diff --git a/docs_assets/og/platforms/bizhawk.png b/website/assets/og/platforms/bizhawk.png
similarity index 100%
rename from docs_assets/og/platforms/bizhawk.png
rename to website/assets/og/platforms/bizhawk.png
diff --git a/docs_assets/og/platforms/emudeck.png b/website/assets/og/platforms/emudeck.png
similarity index 100%
rename from docs_assets/og/platforms/emudeck.png
rename to website/assets/og/platforms/emudeck.png
diff --git a/docs_assets/og/platforms/emuelec.png b/website/assets/og/platforms/emuelec.png
similarity index 100%
rename from docs_assets/og/platforms/emuelec.png
rename to website/assets/og/platforms/emuelec.png
diff --git a/docs_assets/og/platforms/knulli.png b/website/assets/og/platforms/knulli.png
similarity index 100%
rename from docs_assets/og/platforms/knulli.png
rename to website/assets/og/platforms/knulli.png
diff --git a/docs_assets/og/platforms/lakka.png b/website/assets/og/platforms/lakka.png
similarity index 100%
rename from docs_assets/og/platforms/lakka.png
rename to website/assets/og/platforms/lakka.png
diff --git a/docs_assets/og/platforms/minui.png b/website/assets/og/platforms/minui.png
similarity index 100%
rename from docs_assets/og/platforms/minui.png
rename to website/assets/og/platforms/minui.png
diff --git a/docs_assets/og/platforms/misterfpga.png b/website/assets/og/platforms/misterfpga.png
similarity index 100%
rename from docs_assets/og/platforms/misterfpga.png
rename to website/assets/og/platforms/misterfpga.png
diff --git a/docs_assets/og/platforms/myminui.png b/website/assets/og/platforms/myminui.png
similarity index 100%
rename from docs_assets/og/platforms/myminui.png
rename to website/assets/og/platforms/myminui.png
diff --git a/docs_assets/og/platforms/nextui.png b/website/assets/og/platforms/nextui.png
similarity index 100%
rename from docs_assets/og/platforms/nextui.png
rename to website/assets/og/platforms/nextui.png
diff --git a/docs_assets/og/platforms/recalbox.png b/website/assets/og/platforms/recalbox.png
similarity index 100%
rename from docs_assets/og/platforms/recalbox.png
rename to website/assets/og/platforms/recalbox.png
diff --git a/docs_assets/og/platforms/retroarch.png b/website/assets/og/platforms/retroarch.png
similarity index 100%
rename from docs_assets/og/platforms/retroarch.png
rename to website/assets/og/platforms/retroarch.png
diff --git a/docs_assets/og/platforms/retrobat.png b/website/assets/og/platforms/retrobat.png
similarity index 100%
rename from docs_assets/og/platforms/retrobat.png
rename to website/assets/og/platforms/retrobat.png
diff --git a/docs_assets/og/platforms/retrodeck.png b/website/assets/og/platforms/retrodeck.png
similarity index 100%
rename from docs_assets/og/platforms/retrodeck.png
rename to website/assets/og/platforms/retrodeck.png
diff --git a/docs_assets/og/platforms/retropie.png b/website/assets/og/platforms/retropie.png
similarity index 100%
rename from docs_assets/og/platforms/retropie.png
rename to website/assets/og/platforms/retropie.png
diff --git a/docs_assets/og/platforms/rocknix.png b/website/assets/og/platforms/rocknix.png
similarity index 100%
rename from docs_assets/og/platforms/rocknix.png
rename to website/assets/og/platforms/rocknix.png
diff --git a/docs_assets/og/platforms/romm.png b/website/assets/og/platforms/romm.png
similarity index 100%
rename from docs_assets/og/platforms/romm.png
rename to website/assets/og/platforms/romm.png
diff --git a/docs_assets/og/reference.png b/website/assets/og/reference.png
similarity index 100%
rename from docs_assets/og/reference.png
rename to website/assets/og/reference.png
diff --git a/docs_assets/og/setup.png b/website/assets/og/setup.png
similarity index 100%
rename from docs_assets/og/setup.png
rename to website/assets/og/setup.png
diff --git a/docs_assets/og/start.png b/website/assets/og/start.png
similarity index 100%
rename from docs_assets/og/start.png
rename to website/assets/og/start.png
diff --git a/docs_assets/og/systems/3d-realms.png b/website/assets/og/systems/3d-realms.png
similarity index 100%
rename from docs_assets/og/systems/3d-realms.png
rename to website/assets/og/systems/3d-realms.png
diff --git a/docs_assets/og/systems/3do-company.png b/website/assets/og/systems/3do-company.png
similarity index 100%
rename from docs_assets/og/systems/3do-company.png
rename to website/assets/og/systems/3do-company.png
diff --git a/docs_assets/og/systems/acorn.png b/website/assets/og/systems/acorn.png
similarity index 100%
rename from docs_assets/og/systems/acorn.png
rename to website/assets/og/systems/acorn.png
diff --git a/docs_assets/og/systems/amstrad.png b/website/assets/og/systems/amstrad.png
similarity index 100%
rename from docs_assets/og/systems/amstrad.png
rename to website/assets/og/systems/amstrad.png
diff --git a/docs_assets/og/systems/apf.png b/website/assets/og/systems/apf.png
similarity index 100%
rename from docs_assets/og/systems/apf.png
rename to website/assets/og/systems/apf.png
diff --git a/docs_assets/og/systems/apogee.png b/website/assets/og/systems/apogee.png
similarity index 100%
rename from docs_assets/og/systems/apogee.png
rename to website/assets/og/systems/apogee.png
diff --git a/docs_assets/og/systems/apple.png b/website/assets/og/systems/apple.png
similarity index 100%
rename from docs_assets/og/systems/apple.png
rename to website/assets/og/systems/apple.png
diff --git a/docs_assets/og/systems/aquaplus.png b/website/assets/og/systems/aquaplus.png
similarity index 100%
rename from docs_assets/og/systems/aquaplus.png
rename to website/assets/og/systems/aquaplus.png
diff --git a/docs_assets/og/systems/arcade.png b/website/assets/og/systems/arcade.png
similarity index 100%
rename from docs_assets/og/systems/arcade.png
rename to website/assets/og/systems/arcade.png
diff --git a/docs_assets/og/systems/atari.png b/website/assets/og/systems/atari.png
similarity index 100%
rename from docs_assets/og/systems/atari.png
rename to website/assets/og/systems/atari.png
diff --git a/docs_assets/og/systems/bally.png b/website/assets/og/systems/bally.png
similarity index 100%
rename from docs_assets/og/systems/bally.png
rename to website/assets/og/systems/bally.png
diff --git a/docs_assets/og/systems/bandai.png b/website/assets/og/systems/bandai.png
similarity index 100%
rename from docs_assets/og/systems/bandai.png
rename to website/assets/og/systems/bandai.png
diff --git a/docs_assets/og/systems/bbk.png b/website/assets/og/systems/bbk.png
similarity index 100%
rename from docs_assets/og/systems/bbk.png
rename to website/assets/og/systems/bbk.png
diff --git a/docs_assets/og/systems/bit-corporation.png b/website/assets/og/systems/bit-corporation.png
similarity index 100%
rename from docs_assets/og/systems/bit-corporation.png
rename to website/assets/og/systems/bit-corporation.png
diff --git a/docs_assets/og/systems/blizzard.png b/website/assets/og/systems/blizzard.png
similarity index 100%
rename from docs_assets/og/systems/blizzard.png
rename to website/assets/og/systems/blizzard.png
diff --git a/docs_assets/og/systems/bungie.png b/website/assets/og/systems/bungie.png
similarity index 100%
rename from docs_assets/og/systems/bungie.png
rename to website/assets/og/systems/bungie.png
diff --git a/docs_assets/og/systems/camputers.png b/website/assets/og/systems/camputers.png
similarity index 100%
rename from docs_assets/og/systems/camputers.png
rename to website/assets/og/systems/camputers.png
diff --git a/docs_assets/og/systems/casio.png b/website/assets/og/systems/casio.png
similarity index 100%
rename from docs_assets/og/systems/casio.png
rename to website/assets/og/systems/casio.png
diff --git a/docs_assets/og/systems/coleco.png b/website/assets/og/systems/coleco.png
similarity index 100%
rename from docs_assets/og/systems/coleco.png
rename to website/assets/og/systems/coleco.png
diff --git a/docs_assets/og/systems/commodore.png b/website/assets/og/systems/commodore.png
similarity index 100%
rename from docs_assets/og/systems/commodore.png
rename to website/assets/og/systems/commodore.png
diff --git a/docs_assets/og/systems/dinothawr.png b/website/assets/og/systems/dinothawr.png
similarity index 100%
rename from docs_assets/og/systems/dinothawr.png
rename to website/assets/og/systems/dinothawr.png
diff --git a/docs_assets/og/systems/dos.png b/website/assets/og/systems/dos.png
similarity index 100%
rename from docs_assets/og/systems/dos.png
rename to website/assets/og/systems/dos.png
diff --git a/docs_assets/og/systems/dragon.png b/website/assets/og/systems/dragon.png
similarity index 100%
rename from docs_assets/og/systems/dragon.png
rename to website/assets/og/systems/dragon.png
diff --git a/docs_assets/og/systems/eaca.png b/website/assets/og/systems/eaca.png
similarity index 100%
rename from docs_assets/og/systems/eaca.png
rename to website/assets/og/systems/eaca.png
diff --git a/docs_assets/og/systems/electronic-arts.png b/website/assets/og/systems/electronic-arts.png
similarity index 100%
rename from docs_assets/og/systems/electronic-arts.png
rename to website/assets/og/systems/electronic-arts.png
diff --git a/docs_assets/og/systems/elektronika.png b/website/assets/og/systems/elektronika.png
similarity index 100%
rename from docs_assets/og/systems/elektronika.png
rename to website/assets/og/systems/elektronika.png
diff --git a/docs_assets/og/systems/enterprise.png b/website/assets/og/systems/enterprise.png
similarity index 100%
rename from docs_assets/og/systems/enterprise.png
rename to website/assets/og/systems/enterprise.png
diff --git a/docs_assets/og/systems/entex.png b/website/assets/og/systems/entex.png
similarity index 100%
rename from docs_assets/og/systems/entex.png
rename to website/assets/og/systems/entex.png
diff --git a/docs_assets/og/systems/epic-megagames.png b/website/assets/og/systems/epic-megagames.png
similarity index 100%
rename from docs_assets/og/systems/epic-megagames.png
rename to website/assets/og/systems/epic-megagames.png
diff --git a/docs_assets/og/systems/epoch.png b/website/assets/og/systems/epoch.png
similarity index 100%
rename from docs_assets/og/systems/epoch.png
rename to website/assets/og/systems/epoch.png
diff --git a/docs_assets/og/systems/fairchild.png b/website/assets/og/systems/fairchild.png
similarity index 100%
rename from docs_assets/og/systems/fairchild.png
rename to website/assets/og/systems/fairchild.png
diff --git a/docs_assets/og/systems/fujitsu.png b/website/assets/og/systems/fujitsu.png
similarity index 100%
rename from docs_assets/og/systems/fujitsu.png
rename to website/assets/og/systems/fujitsu.png
diff --git a/docs_assets/og/systems/funtech.png b/website/assets/og/systems/funtech.png
similarity index 100%
rename from docs_assets/og/systems/funtech.png
rename to website/assets/og/systems/funtech.png
diff --git a/docs_assets/og/systems/galaksija.png b/website/assets/og/systems/galaksija.png
similarity index 100%
rename from docs_assets/og/systems/galaksija.png
rename to website/assets/og/systems/galaksija.png
diff --git a/docs_assets/og/systems/game-engines.png b/website/assets/og/systems/game-engines.png
similarity index 100%
rename from docs_assets/og/systems/game-engines.png
rename to website/assets/og/systems/game-engines.png
diff --git a/docs_assets/og/systems/gamepark.png b/website/assets/og/systems/gamepark.png
similarity index 100%
rename from docs_assets/og/systems/gamepark.png
rename to website/assets/og/systems/gamepark.png
diff --git a/docs_assets/og/systems/gce.png b/website/assets/og/systems/gce.png
similarity index 100%
rename from docs_assets/og/systems/gce.png
rename to website/assets/og/systems/gce.png
diff --git a/docs_assets/og/systems/gemei.png b/website/assets/og/systems/gemei.png
similarity index 100%
rename from docs_assets/og/systems/gemei.png
rename to website/assets/og/systems/gemei.png
diff --git a/docs_assets/og/systems/grundy.png b/website/assets/og/systems/grundy.png
similarity index 100%
rename from docs_assets/og/systems/grundy.png
rename to website/assets/og/systems/grundy.png
diff --git a/docs_assets/og/systems/hartung.png b/website/assets/og/systems/hartung.png
similarity index 100%
rename from docs_assets/og/systems/hartung.png
rename to website/assets/og/systems/hartung.png
diff --git a/docs_assets/og/systems/ibm.png b/website/assets/og/systems/ibm.png
similarity index 100%
rename from docs_assets/og/systems/ibm.png
rename to website/assets/og/systems/ibm.png
diff --git a/docs_assets/og/systems/id-software.png b/website/assets/og/systems/id-software.png
similarity index 100%
rename from docs_assets/og/systems/id-software.png
rename to website/assets/og/systems/id-software.png
diff --git a/docs_assets/og/systems/infocom.png b/website/assets/og/systems/infocom.png
similarity index 100%
rename from docs_assets/og/systems/infocom.png
rename to website/assets/og/systems/infocom.png
diff --git a/docs_assets/og/systems/interact.png b/website/assets/og/systems/interact.png
similarity index 100%
rename from docs_assets/og/systems/interact.png
rename to website/assets/og/systems/interact.png
diff --git a/docs_assets/og/systems/interplay.png b/website/assets/og/systems/interplay.png
similarity index 100%
rename from docs_assets/og/systems/interplay.png
rename to website/assets/og/systems/interplay.png
diff --git a/docs_assets/og/systems/java.png b/website/assets/og/systems/java.png
similarity index 100%
rename from docs_assets/og/systems/java.png
rename to website/assets/og/systems/java.png
diff --git a/docs_assets/og/systems/lexaloffle.png b/website/assets/og/systems/lexaloffle.png
similarity index 100%
rename from docs_assets/og/systems/lexaloffle.png
rename to website/assets/og/systems/lexaloffle.png
diff --git a/docs_assets/og/systems/magnavox.png b/website/assets/og/systems/magnavox.png
similarity index 100%
rename from docs_assets/og/systems/magnavox.png
rename to website/assets/og/systems/magnavox.png
diff --git a/docs_assets/og/systems/mattel.png b/website/assets/og/systems/mattel.png
similarity index 100%
rename from docs_assets/og/systems/mattel.png
rename to website/assets/og/systems/mattel.png
diff --git a/docs_assets/og/systems/microsoft.png b/website/assets/og/systems/microsoft.png
similarity index 100%
rename from docs_assets/og/systems/microsoft.png
rename to website/assets/og/systems/microsoft.png
diff --git a/docs_assets/og/systems/monolith.png b/website/assets/og/systems/monolith.png
similarity index 100%
rename from docs_assets/og/systems/monolith.png
rename to website/assets/og/systems/monolith.png
diff --git a/docs_assets/og/systems/nec.png b/website/assets/og/systems/nec.png
similarity index 100%
rename from docs_assets/og/systems/nec.png
rename to website/assets/og/systems/nec.png
diff --git a/docs_assets/og/systems/nintendo.png b/website/assets/og/systems/nintendo.png
similarity index 100%
rename from docs_assets/og/systems/nintendo.png
rename to website/assets/og/systems/nintendo.png
diff --git a/docs_assets/og/systems/nokia.png b/website/assets/og/systems/nokia.png
similarity index 100%
rename from docs_assets/og/systems/nokia.png
rename to website/assets/og/systems/nokia.png
diff --git a/docs_assets/og/systems/other.png b/website/assets/og/systems/other.png
similarity index 100%
rename from docs_assets/og/systems/other.png
rename to website/assets/og/systems/other.png
diff --git a/docs_assets/og/systems/palm.png b/website/assets/og/systems/palm.png
similarity index 100%
rename from docs_assets/og/systems/palm.png
rename to website/assets/og/systems/palm.png
diff --git a/docs_assets/og/systems/pc.png b/website/assets/og/systems/pc.png
similarity index 100%
rename from docs_assets/og/systems/pc.png
rename to website/assets/og/systems/pc.png
diff --git a/docs_assets/og/systems/philips.png b/website/assets/og/systems/philips.png
similarity index 100%
rename from docs_assets/og/systems/philips.png
rename to website/assets/og/systems/philips.png
diff --git a/docs_assets/og/systems/pioneer.png b/website/assets/og/systems/pioneer.png
similarity index 100%
rename from docs_assets/og/systems/pioneer.png
rename to website/assets/og/systems/pioneer.png
diff --git a/docs_assets/og/systems/qemu.png b/website/assets/og/systems/qemu.png
similarity index 100%
rename from docs_assets/og/systems/qemu.png
rename to website/assets/og/systems/qemu.png
diff --git a/docs_assets/og/systems/rca.png b/website/assets/og/systems/rca.png
similarity index 100%
rename from docs_assets/og/systems/rca.png
rename to website/assets/og/systems/rca.png
diff --git a/docs_assets/og/systems/real3d.png b/website/assets/og/systems/real3d.png
similarity index 100%
rename from docs_assets/og/systems/real3d.png
rename to website/assets/og/systems/real3d.png
diff --git a/docs_assets/og/systems/roland.png b/website/assets/og/systems/roland.png
similarity index 100%
rename from docs_assets/og/systems/roland.png
rename to website/assets/og/systems/roland.png
diff --git a/docs_assets/og/systems/rpg-maker.png b/website/assets/og/systems/rpg-maker.png
similarity index 100%
rename from docs_assets/og/systems/rpg-maker.png
rename to website/assets/og/systems/rpg-maker.png
diff --git a/docs_assets/og/systems/scummvm.png b/website/assets/og/systems/scummvm.png
similarity index 100%
rename from docs_assets/og/systems/scummvm.png
rename to website/assets/og/systems/scummvm.png
diff --git a/docs_assets/og/systems/sdl.png b/website/assets/og/systems/sdl.png
similarity index 100%
rename from docs_assets/og/systems/sdl.png
rename to website/assets/og/systems/sdl.png
diff --git a/docs_assets/og/systems/sdlpal.png b/website/assets/og/systems/sdlpal.png
similarity index 100%
rename from docs_assets/og/systems/sdlpal.png
rename to website/assets/og/systems/sdlpal.png
diff --git a/docs_assets/og/systems/sega.png b/website/assets/og/systems/sega.png
similarity index 100%
rename from docs_assets/og/systems/sega.png
rename to website/assets/og/systems/sega.png
diff --git a/docs_assets/og/systems/sharp.png b/website/assets/og/systems/sharp.png
similarity index 100%
rename from docs_assets/og/systems/sharp.png
rename to website/assets/og/systems/sharp.png
diff --git a/docs_assets/og/systems/sinclair.png b/website/assets/og/systems/sinclair.png
similarity index 100%
rename from docs_assets/og/systems/sinclair.png
rename to website/assets/og/systems/sinclair.png
diff --git a/docs_assets/og/systems/snk.png b/website/assets/og/systems/snk.png
similarity index 100%
rename from docs_assets/og/systems/snk.png
rename to website/assets/og/systems/snk.png
diff --git a/docs_assets/og/systems/softdisk.png b/website/assets/og/systems/softdisk.png
similarity index 100%
rename from docs_assets/og/systems/softdisk.png
rename to website/assets/og/systems/softdisk.png
diff --git a/docs_assets/og/systems/sony.png b/website/assets/og/systems/sony.png
similarity index 100%
rename from docs_assets/og/systems/sony.png
rename to website/assets/og/systems/sony.png
diff --git a/docs_assets/og/systems/sord.png b/website/assets/og/systems/sord.png
similarity index 100%
rename from docs_assets/og/systems/sord.png
rename to website/assets/og/systems/sord.png
diff --git a/docs_assets/og/systems/synertek.png b/website/assets/og/systems/synertek.png
similarity index 100%
rename from docs_assets/og/systems/synertek.png
rename to website/assets/og/systems/synertek.png
diff --git a/docs_assets/og/systems/tandy.png b/website/assets/og/systems/tandy.png
similarity index 100%
rename from docs_assets/og/systems/tandy.png
rename to website/assets/og/systems/tandy.png
diff --git a/docs_assets/og/systems/tangerine.png b/website/assets/og/systems/tangerine.png
similarity index 100%
rename from docs_assets/og/systems/tangerine.png
rename to website/assets/og/systems/tangerine.png
diff --git a/docs_assets/og/systems/texas-instruments.png b/website/assets/og/systems/texas-instruments.png
similarity index 100%
rename from docs_assets/og/systems/texas-instruments.png
rename to website/assets/og/systems/texas-instruments.png
diff --git a/docs_assets/og/systems/thomson.png b/website/assets/og/systems/thomson.png
similarity index 100%
rename from docs_assets/og/systems/thomson.png
rename to website/assets/og/systems/thomson.png
diff --git a/docs_assets/og/systems/tiger.png b/website/assets/og/systems/tiger.png
similarity index 100%
rename from docs_assets/og/systems/tiger.png
rename to website/assets/og/systems/tiger.png
diff --git a/docs_assets/og/systems/timetop.png b/website/assets/og/systems/timetop.png
similarity index 100%
rename from docs_assets/og/systems/timetop.png
rename to website/assets/og/systems/timetop.png
diff --git a/docs_assets/og/systems/tomy.png b/website/assets/og/systems/tomy.png
similarity index 100%
rename from docs_assets/og/systems/tomy.png
rename to website/assets/og/systems/tomy.png
diff --git a/docs_assets/og/systems/toys-for-bob.png b/website/assets/og/systems/toys-for-bob.png
similarity index 100%
rename from docs_assets/og/systems/toys-for-bob.png
rename to website/assets/og/systems/toys-for-bob.png
diff --git a/docs_assets/og/systems/valve.png b/website/assets/og/systems/valve.png
similarity index 100%
rename from docs_assets/og/systems/valve.png
rename to website/assets/og/systems/valve.png
diff --git a/docs_assets/og/systems/videobrain.png b/website/assets/og/systems/videobrain.png
similarity index 100%
rename from docs_assets/og/systems/videobrain.png
rename to website/assets/og/systems/videobrain.png
diff --git a/docs_assets/og/systems/videoton.png b/website/assets/og/systems/videoton.png
similarity index 100%
rename from docs_assets/og/systems/videoton.png
rename to website/assets/og/systems/videoton.png
diff --git a/docs_assets/og/systems/vircon.png b/website/assets/og/systems/vircon.png
similarity index 100%
rename from docs_assets/og/systems/vircon.png
rename to website/assets/og/systems/vircon.png
diff --git a/docs_assets/og/systems/vtech.png b/website/assets/og/systems/vtech.png
similarity index 100%
rename from docs_assets/og/systems/vtech.png
rename to website/assets/og/systems/vtech.png
diff --git a/docs_assets/og/systems/wenquxing.png b/website/assets/og/systems/wenquxing.png
similarity index 100%
rename from docs_assets/og/systems/wenquxing.png
rename to website/assets/og/systems/wenquxing.png
diff --git a/docs_assets/og/systems/zc.png b/website/assets/og/systems/zc.png
similarity index 100%
rename from docs_assets/og/systems/zc.png
rename to website/assets/og/systems/zc.png
diff --git a/docs_assets/system-icons/APF - Imagination Machine.png b/website/assets/system-icons/APF - Imagination Machine.png
similarity index 100%
rename from docs_assets/system-icons/APF - Imagination Machine.png
rename to website/assets/system-icons/APF - Imagination Machine.png
diff --git a/docs_assets/system-icons/Acorn - Archimedes.png b/website/assets/system-icons/Acorn - Archimedes.png
similarity index 100%
rename from docs_assets/system-icons/Acorn - Archimedes.png
rename to website/assets/system-icons/Acorn - Archimedes.png
diff --git a/docs_assets/system-icons/Acorn - BBC Micro.png b/website/assets/system-icons/Acorn - BBC Micro.png
similarity index 100%
rename from docs_assets/system-icons/Acorn - BBC Micro.png
rename to website/assets/system-icons/Acorn - BBC Micro.png
diff --git a/docs_assets/system-icons/Amstrad - CPC.png b/website/assets/system-icons/Amstrad - CPC.png
similarity index 100%
rename from docs_assets/system-icons/Amstrad - CPC.png
rename to website/assets/system-icons/Amstrad - CPC.png
diff --git a/docs_assets/system-icons/Apple - Macintosh.png b/website/assets/system-icons/Apple - Macintosh.png
similarity index 100%
rename from docs_assets/system-icons/Apple - Macintosh.png
rename to website/assets/system-icons/Apple - Macintosh.png
diff --git a/docs_assets/system-icons/Aquaplus - PIECE.png b/website/assets/system-icons/Aquaplus - PIECE.png
similarity index 100%
rename from docs_assets/system-icons/Aquaplus - PIECE.png
rename to website/assets/system-icons/Aquaplus - PIECE.png
diff --git a/docs_assets/system-icons/Atari - 2600.png b/website/assets/system-icons/Atari - 2600.png
similarity index 100%
rename from docs_assets/system-icons/Atari - 2600.png
rename to website/assets/system-icons/Atari - 2600.png
diff --git a/docs_assets/system-icons/Atari - 5200.png b/website/assets/system-icons/Atari - 5200.png
similarity index 100%
rename from docs_assets/system-icons/Atari - 5200.png
rename to website/assets/system-icons/Atari - 5200.png
diff --git a/docs_assets/system-icons/Atari - 7800.png b/website/assets/system-icons/Atari - 7800.png
similarity index 100%
rename from docs_assets/system-icons/Atari - 7800.png
rename to website/assets/system-icons/Atari - 7800.png
diff --git a/docs_assets/system-icons/Atari - Jaguar.png b/website/assets/system-icons/Atari - Jaguar.png
similarity index 100%
rename from docs_assets/system-icons/Atari - Jaguar.png
rename to website/assets/system-icons/Atari - Jaguar.png
diff --git a/docs_assets/system-icons/Atari - Lynx.png b/website/assets/system-icons/Atari - Lynx.png
similarity index 100%
rename from docs_assets/system-icons/Atari - Lynx.png
rename to website/assets/system-icons/Atari - Lynx.png
diff --git a/docs_assets/system-icons/Atari - ST.png b/website/assets/system-icons/Atari - ST.png
similarity index 100%
rename from docs_assets/system-icons/Atari - ST.png
rename to website/assets/system-icons/Atari - ST.png
diff --git a/docs_assets/system-icons/Atari - XEGS.png b/website/assets/system-icons/Atari - XEGS.png
similarity index 100%
rename from docs_assets/system-icons/Atari - XEGS.png
rename to website/assets/system-icons/Atari - XEGS.png
diff --git a/docs_assets/system-icons/Bally - Astrocade.png b/website/assets/system-icons/Bally - Astrocade.png
similarity index 100%
rename from docs_assets/system-icons/Bally - Astrocade.png
rename to website/assets/system-icons/Bally - Astrocade.png
diff --git a/docs_assets/system-icons/Bandai - WonderSwan.png b/website/assets/system-icons/Bandai - WonderSwan.png
similarity index 100%
rename from docs_assets/system-icons/Bandai - WonderSwan.png
rename to website/assets/system-icons/Bandai - WonderSwan.png
diff --git a/docs_assets/system-icons/Bit Corporation - Gamate.png b/website/assets/system-icons/Bit Corporation - Gamate.png
similarity index 100%
rename from docs_assets/system-icons/Bit Corporation - Gamate.png
rename to website/assets/system-icons/Bit Corporation - Gamate.png
diff --git a/docs_assets/system-icons/Casio - Loopy.png b/website/assets/system-icons/Casio - Loopy.png
similarity index 100%
rename from docs_assets/system-icons/Casio - Loopy.png
rename to website/assets/system-icons/Casio - Loopy.png
diff --git a/docs_assets/system-icons/Casio - PV-2000.png b/website/assets/system-icons/Casio - PV-2000.png
similarity index 100%
rename from docs_assets/system-icons/Casio - PV-2000.png
rename to website/assets/system-icons/Casio - PV-2000.png
diff --git a/docs_assets/system-icons/Coleco - ColecoVision.png b/website/assets/system-icons/Coleco - ColecoVision.png
similarity index 100%
rename from docs_assets/system-icons/Coleco - ColecoVision.png
rename to website/assets/system-icons/Coleco - ColecoVision.png
diff --git a/docs_assets/system-icons/Commodore - Amiga.png b/website/assets/system-icons/Commodore - Amiga.png
similarity index 100%
rename from docs_assets/system-icons/Commodore - Amiga.png
rename to website/assets/system-icons/Commodore - Amiga.png
diff --git a/docs_assets/system-icons/Commodore - VIC-20.png b/website/assets/system-icons/Commodore - VIC-20.png
similarity index 100%
rename from docs_assets/system-icons/Commodore - VIC-20.png
rename to website/assets/system-icons/Commodore - VIC-20.png
diff --git a/docs_assets/system-icons/Entex - Adventure Vision.png b/website/assets/system-icons/Entex - Adventure Vision.png
similarity index 100%
rename from docs_assets/system-icons/Entex - Adventure Vision.png
rename to website/assets/system-icons/Entex - Adventure Vision.png
diff --git a/docs_assets/system-icons/Epoch - Super Cassette Vision.png b/website/assets/system-icons/Epoch - Super Cassette Vision.png
similarity index 100%
rename from docs_assets/system-icons/Epoch - Super Cassette Vision.png
rename to website/assets/system-icons/Epoch - Super Cassette Vision.png
diff --git a/docs_assets/system-icons/Fairchild - Channel F.png b/website/assets/system-icons/Fairchild - Channel F.png
similarity index 100%
rename from docs_assets/system-icons/Fairchild - Channel F.png
rename to website/assets/system-icons/Fairchild - Channel F.png
diff --git a/docs_assets/system-icons/Fujitsu - FM Towns.png b/website/assets/system-icons/Fujitsu - FM Towns.png
similarity index 100%
rename from docs_assets/system-icons/Fujitsu - FM Towns.png
rename to website/assets/system-icons/Fujitsu - FM Towns.png
diff --git a/docs_assets/system-icons/Fujitsu - FM-7.png b/website/assets/system-icons/Fujitsu - FM-7.png
similarity index 100%
rename from docs_assets/system-icons/Fujitsu - FM-7.png
rename to website/assets/system-icons/Fujitsu - FM-7.png
diff --git a/docs_assets/system-icons/GCE - Vectrex.png b/website/assets/system-icons/GCE - Vectrex.png
similarity index 100%
rename from docs_assets/system-icons/GCE - Vectrex.png
rename to website/assets/system-icons/GCE - Vectrex.png
diff --git a/docs_assets/system-icons/GamePark - GP32.png b/website/assets/system-icons/GamePark - GP32.png
similarity index 100%
rename from docs_assets/system-icons/GamePark - GP32.png
rename to website/assets/system-icons/GamePark - GP32.png
diff --git a/docs_assets/system-icons/Hartung - Game Master.png b/website/assets/system-icons/Hartung - Game Master.png
similarity index 100%
rename from docs_assets/system-icons/Hartung - Game Master.png
rename to website/assets/system-icons/Hartung - Game Master.png
diff --git a/docs_assets/system-icons/Infocom - Z-Machine.png b/website/assets/system-icons/Infocom - Z-Machine.png
similarity index 100%
rename from docs_assets/system-icons/Infocom - Z-Machine.png
rename to website/assets/system-icons/Infocom - Z-Machine.png
diff --git a/docs_assets/system-icons/Magnavox - Odyssey2.png b/website/assets/system-icons/Magnavox - Odyssey2.png
similarity index 100%
rename from docs_assets/system-icons/Magnavox - Odyssey2.png
rename to website/assets/system-icons/Magnavox - Odyssey2.png
diff --git a/docs_assets/system-icons/Mattel - Intellivision.png b/website/assets/system-icons/Mattel - Intellivision.png
similarity index 100%
rename from docs_assets/system-icons/Mattel - Intellivision.png
rename to website/assets/system-icons/Mattel - Intellivision.png
diff --git a/docs_assets/system-icons/Microsoft - MSX.png b/website/assets/system-icons/Microsoft - MSX.png
similarity index 100%
rename from docs_assets/system-icons/Microsoft - MSX.png
rename to website/assets/system-icons/Microsoft - MSX.png
diff --git a/docs_assets/system-icons/Microsoft - Xbox.png b/website/assets/system-icons/Microsoft - Xbox.png
similarity index 100%
rename from docs_assets/system-icons/Microsoft - Xbox.png
rename to website/assets/system-icons/Microsoft - Xbox.png
diff --git a/docs_assets/system-icons/NEC - PC-88.png b/website/assets/system-icons/NEC - PC-88.png
similarity index 100%
rename from docs_assets/system-icons/NEC - PC-88.png
rename to website/assets/system-icons/NEC - PC-88.png
diff --git a/docs_assets/system-icons/NEC - PC-98.png b/website/assets/system-icons/NEC - PC-98.png
similarity index 100%
rename from docs_assets/system-icons/NEC - PC-98.png
rename to website/assets/system-icons/NEC - PC-98.png
diff --git a/docs_assets/system-icons/NEC - PC-FX.png b/website/assets/system-icons/NEC - PC-FX.png
similarity index 100%
rename from docs_assets/system-icons/NEC - PC-FX.png
rename to website/assets/system-icons/NEC - PC-FX.png
diff --git a/docs_assets/system-icons/Nintendo - Game Boy Advance.png b/website/assets/system-icons/Nintendo - Game Boy Advance.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Game Boy Advance.png
rename to website/assets/system-icons/Nintendo - Game Boy Advance.png
diff --git a/docs_assets/system-icons/Nintendo - Game Boy Color.png b/website/assets/system-icons/Nintendo - Game Boy Color.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Game Boy Color.png
rename to website/assets/system-icons/Nintendo - Game Boy Color.png
diff --git a/docs_assets/system-icons/Nintendo - Game Boy.png b/website/assets/system-icons/Nintendo - Game Boy.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Game Boy.png
rename to website/assets/system-icons/Nintendo - Game Boy.png
diff --git a/docs_assets/system-icons/Nintendo - GameCube.png b/website/assets/system-icons/Nintendo - GameCube.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - GameCube.png
rename to website/assets/system-icons/Nintendo - GameCube.png
diff --git a/docs_assets/system-icons/Nintendo - Nintendo 64.png b/website/assets/system-icons/Nintendo - Nintendo 64.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Nintendo 64.png
rename to website/assets/system-icons/Nintendo - Nintendo 64.png
diff --git a/docs_assets/system-icons/Nintendo - Nintendo 64DD.png b/website/assets/system-icons/Nintendo - Nintendo 64DD.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Nintendo 64DD.png
rename to website/assets/system-icons/Nintendo - Nintendo 64DD.png
diff --git a/docs_assets/system-icons/Nintendo - Nintendo DS.png b/website/assets/system-icons/Nintendo - Nintendo DS.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Nintendo DS.png
rename to website/assets/system-icons/Nintendo - Nintendo DS.png
diff --git a/docs_assets/system-icons/Nintendo - Pokemon Mini.png b/website/assets/system-icons/Nintendo - Pokemon Mini.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Pokemon Mini.png
rename to website/assets/system-icons/Nintendo - Pokemon Mini.png
diff --git a/docs_assets/system-icons/Nintendo - Satellaview.png b/website/assets/system-icons/Nintendo - Satellaview.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Satellaview.png
rename to website/assets/system-icons/Nintendo - Satellaview.png
diff --git a/docs_assets/system-icons/Nintendo - Switch.png b/website/assets/system-icons/Nintendo - Switch.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Switch.png
rename to website/assets/system-icons/Nintendo - Switch.png
diff --git a/docs_assets/system-icons/Nintendo - Wii U.png b/website/assets/system-icons/Nintendo - Wii U.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Wii U.png
rename to website/assets/system-icons/Nintendo - Wii U.png
diff --git a/docs_assets/system-icons/Nintendo - Wii.png b/website/assets/system-icons/Nintendo - Wii.png
similarity index 100%
rename from docs_assets/system-icons/Nintendo - Wii.png
rename to website/assets/system-icons/Nintendo - Wii.png
diff --git a/docs_assets/system-icons/Nokia - N-Gage.png b/website/assets/system-icons/Nokia - N-Gage.png
similarity index 100%
rename from docs_assets/system-icons/Nokia - N-Gage.png
rename to website/assets/system-icons/Nokia - N-Gage.png
diff --git a/docs_assets/system-icons/Philips - CD-i.png b/website/assets/system-icons/Philips - CD-i.png
similarity index 100%
rename from docs_assets/system-icons/Philips - CD-i.png
rename to website/assets/system-icons/Philips - CD-i.png
diff --git a/docs_assets/system-icons/Philips - Videopac+.png b/website/assets/system-icons/Philips - Videopac+.png
similarity index 100%
rename from docs_assets/system-icons/Philips - Videopac+.png
rename to website/assets/system-icons/Philips - Videopac+.png
diff --git a/docs_assets/system-icons/Pioneer - LaserActive.png b/website/assets/system-icons/Pioneer - LaserActive.png
similarity index 100%
rename from docs_assets/system-icons/Pioneer - LaserActive.png
rename to website/assets/system-icons/Pioneer - LaserActive.png
diff --git a/docs_assets/system-icons/RCA - Studio II.png b/website/assets/system-icons/RCA - Studio II.png
similarity index 100%
rename from docs_assets/system-icons/RCA - Studio II.png
rename to website/assets/system-icons/RCA - Studio II.png
diff --git a/docs_assets/system-icons/SNK - Neo Geo CD.png b/website/assets/system-icons/SNK - Neo Geo CD.png
similarity index 100%
rename from docs_assets/system-icons/SNK - Neo Geo CD.png
rename to website/assets/system-icons/SNK - Neo Geo CD.png
diff --git a/docs_assets/system-icons/SNK - Neo Geo Pocket.png b/website/assets/system-icons/SNK - Neo Geo Pocket.png
similarity index 100%
rename from docs_assets/system-icons/SNK - Neo Geo Pocket.png
rename to website/assets/system-icons/SNK - Neo Geo Pocket.png
diff --git a/docs_assets/system-icons/SNK - Neo Geo.png b/website/assets/system-icons/SNK - Neo Geo.png
similarity index 100%
rename from docs_assets/system-icons/SNK - Neo Geo.png
rename to website/assets/system-icons/SNK - Neo Geo.png
diff --git a/docs_assets/system-icons/Sega - 32X.png b/website/assets/system-icons/Sega - 32X.png
similarity index 100%
rename from docs_assets/system-icons/Sega - 32X.png
rename to website/assets/system-icons/Sega - 32X.png
diff --git a/docs_assets/system-icons/Sega - Beena.png b/website/assets/system-icons/Sega - Beena.png
similarity index 100%
rename from docs_assets/system-icons/Sega - Beena.png
rename to website/assets/system-icons/Sega - Beena.png
diff --git a/docs_assets/system-icons/Sega - Chihiro.png b/website/assets/system-icons/Sega - Chihiro.png
similarity index 100%
rename from docs_assets/system-icons/Sega - Chihiro.png
rename to website/assets/system-icons/Sega - Chihiro.png
diff --git a/docs_assets/system-icons/Sega - Dreamcast.png b/website/assets/system-icons/Sega - Dreamcast.png
similarity index 100%
rename from docs_assets/system-icons/Sega - Dreamcast.png
rename to website/assets/system-icons/Sega - Dreamcast.png
diff --git a/docs_assets/system-icons/Sega - Game Gear.png b/website/assets/system-icons/Sega - Game Gear.png
similarity index 100%
rename from docs_assets/system-icons/Sega - Game Gear.png
rename to website/assets/system-icons/Sega - Game Gear.png
diff --git a/docs_assets/system-icons/Sega - Saturn.png b/website/assets/system-icons/Sega - Saturn.png
similarity index 100%
rename from docs_assets/system-icons/Sega - Saturn.png
rename to website/assets/system-icons/Sega - Saturn.png
diff --git a/docs_assets/system-icons/Sharp - X1.png b/website/assets/system-icons/Sharp - X1.png
similarity index 100%
rename from docs_assets/system-icons/Sharp - X1.png
rename to website/assets/system-icons/Sharp - X1.png
diff --git a/docs_assets/system-icons/Sharp - X68000.png b/website/assets/system-icons/Sharp - X68000.png
similarity index 100%
rename from docs_assets/system-icons/Sharp - X68000.png
rename to website/assets/system-icons/Sharp - X68000.png
diff --git a/docs_assets/system-icons/Sinclair - ZX 81.png b/website/assets/system-icons/Sinclair - ZX 81.png
similarity index 100%
rename from docs_assets/system-icons/Sinclair - ZX 81.png
rename to website/assets/system-icons/Sinclair - ZX 81.png
diff --git a/docs_assets/system-icons/Sinclair - ZX Spectrum.png b/website/assets/system-icons/Sinclair - ZX Spectrum.png
similarity index 100%
rename from docs_assets/system-icons/Sinclair - ZX Spectrum.png
rename to website/assets/system-icons/Sinclair - ZX Spectrum.png
diff --git a/docs_assets/system-icons/Sony - PlayStation 2.png b/website/assets/system-icons/Sony - PlayStation 2.png
similarity index 100%
rename from docs_assets/system-icons/Sony - PlayStation 2.png
rename to website/assets/system-icons/Sony - PlayStation 2.png
diff --git a/docs_assets/system-icons/Sony - PlayStation 4.png b/website/assets/system-icons/Sony - PlayStation 4.png
similarity index 100%
rename from docs_assets/system-icons/Sony - PlayStation 4.png
rename to website/assets/system-icons/Sony - PlayStation 4.png
diff --git a/docs_assets/system-icons/Sony - PlayStation Portable.png b/website/assets/system-icons/Sony - PlayStation Portable.png
similarity index 100%
rename from docs_assets/system-icons/Sony - PlayStation Portable.png
rename to website/assets/system-icons/Sony - PlayStation Portable.png
diff --git a/docs_assets/system-icons/Sony - PlayStation Vita.png b/website/assets/system-icons/Sony - PlayStation Vita.png
similarity index 100%
rename from docs_assets/system-icons/Sony - PlayStation Vita.png
rename to website/assets/system-icons/Sony - PlayStation Vita.png
diff --git a/docs_assets/system-icons/Sony - PlayStation.png b/website/assets/system-icons/Sony - PlayStation.png
similarity index 100%
rename from docs_assets/system-icons/Sony - PlayStation.png
rename to website/assets/system-icons/Sony - PlayStation.png
diff --git a/docs_assets/system-icons/Texas Instruments - TI-83.png b/website/assets/system-icons/Texas Instruments - TI-83.png
similarity index 100%
rename from docs_assets/system-icons/Texas Instruments - TI-83.png
rename to website/assets/system-icons/Texas Instruments - TI-83.png
diff --git a/docs_assets/system-icons/Tiger - Game.com.png b/website/assets/system-icons/Tiger - Game.com.png
similarity index 100%
rename from docs_assets/system-icons/Tiger - Game.com.png
rename to website/assets/system-icons/Tiger - Game.com.png
diff --git a/docs_assets/system-icons/Tomy - Tutor.png b/website/assets/system-icons/Tomy - Tutor.png
similarity index 100%
rename from docs_assets/system-icons/Tomy - Tutor.png
rename to website/assets/system-icons/Tomy - Tutor.png
diff --git a/docs_assets/system-icons/VTech - CreatiVision.png b/website/assets/system-icons/VTech - CreatiVision.png
similarity index 100%
rename from docs_assets/system-icons/VTech - CreatiVision.png
rename to website/assets/system-icons/VTech - CreatiVision.png
diff --git a/docs_assets/system-icons/VTech - Socrates.png b/website/assets/system-icons/VTech - Socrates.png
similarity index 100%
rename from docs_assets/system-icons/VTech - Socrates.png
rename to website/assets/system-icons/VTech - Socrates.png
diff --git a/docs_assets/system-icons/VTech - V.Smile.png b/website/assets/system-icons/VTech - V.Smile.png
similarity index 100%
rename from docs_assets/system-icons/VTech - V.Smile.png
rename to website/assets/system-icons/VTech - V.Smile.png
diff --git a/docs_assets/system-icons/Videoton - TVC.png b/website/assets/system-icons/Videoton - TVC.png
similarity index 100%
rename from docs_assets/system-icons/Videoton - TVC.png
rename to website/assets/system-icons/Videoton - TVC.png
diff --git a/docs_assets/system-icons/sources.json b/website/assets/system-icons/sources.json
similarity index 100%
rename from docs_assets/system-icons/sources.json
rename to website/assets/system-icons/sources.json
diff --git a/ACCESSIBILITY.md b/wiki/accessibility.md
similarity index 96%
rename from ACCESSIBILITY.md
rename to wiki/accessibility.md
index 266a7769b..b4b703868 100644
--- a/ACCESSIBILITY.md
+++ b/wiki/accessibility.md
@@ -1,3 +1,9 @@
+---
+level: setup
+order: 105
+terms: accessibility, screen reader, keyboard, colour, contrast
+---
+
# Accessibility
## Commitment
@@ -50,4 +56,4 @@ Open an issue at https://github.com/Abdess/retrobios/issues/new (the **Report a
- your system, browser or terminal, and any assistive technology (screen reader, magnifier, controller, voice control),
- what you expected and what happened.
-A security problem goes through the private channel described in [SECURITY.md](SECURITY.md).
+A security problem goes through the private channel described in [SECURITY.md](https://github.com/Abdess/retrobios/blob/main/SECURITY.md).
diff --git a/wiki/architecture.md b/wiki/architecture.md
index 04ac850f0..2f04922d1 100644
--- a/wiki/architecture.md
+++ b/wiki/architecture.md
@@ -28,12 +28,18 @@ platforms/ one YAML config per platform (scraped from upstream)
_registry.yml platform metadata (logos, scrapers, release packs, install config)
_guides.yml the guide text of each platform's page
_data_dirs.yml data directory definitions (Dolphin Sys, PPSSPP...)
+ _core_info.json git blob of each libretro .info as last reviewed (check_freshness.py)
targets/ hardware target configs + _overrides.yml
+ romfolders/ each setup's rom folders, scraped from _sources/.yml
provenance/ dump-catalog snapshots (redump, no-intro, tosec)
recipes/ romset recipes read from MAME and FBNeo DATs, and
archives.json, the recipe of every archive held
exports/ each platform's own file, updated, with a report of the changes
-measurements/ records of real runs, one JSONL file per emulator
+measurements/ records of real runs, one JSONL file per emulator, read by the site
+ campaign/ the campaign's contents, oracles and observations (scripts/campaign.py)
+games/ games-on-card data: catalogs/ (No-Intro, Redump), arcade/ (parent sets
+ per profile), regions.yml, extras.yml, headers.yml, published
+ into install/games/ by generate_games_index.py
scripts/ all tooling (Python and pyyaml, jsonschema for schema checks)
core/ standard-library foundations: hashing, archives, artifacts, paths, CLI plumbing
model/ data loading: database, platforms, registry, profiles, targets, catalogues
@@ -64,26 +70,47 @@ scripts/ all tooling (Python and pyyaml, jsonschema for schema c
freshness/ each transcribed layer against its upstream (check_freshness.py) and the
refresh of each stale row (refresh_stale.py)
orchestrate/ the pipeline's steps in order and the comparisons of step 5 (pipeline.py)
-install/ JSON install manifests per platform
+install/ JSON install manifests per platform, read by install.py
targets/ JSON target manifests per platform (cores per architecture)
+ standalone/ the files of each platform's standalone emulators (--standalone)
+ games/ the games-on-card index: setups, systems, arcade sets, fallback
+ launchers/ index.json, the handheld launchers the installer offers
install.py the installer, with install.sh and install.ps1 to start it,
built from installer/ by scripts/build_installer.py
installer/ the installer's source, one module per concern
+packaging/pypi/ the PyPI package's project file and README (scripts/build_pypi.py)
ports/ launchers that run the installer on handhelds
automation/ jobs.yml, the unattended jobs scripts/autorun.py runs
data/ cached data directories (not BIOS, fetched at build)
schemas/ JSON schemas for platform and emulator YAML (checked in CI)
tests/ test suite with synthetic fixtures
wiki/ hand-written documentation sources
-docs_assets/ logos, icons and images the site uses
-website/ Astro Starlight project; pages, data and navigation
- are generated into it (gitignored, rebuilt in CI)
-_mame_clones.json MAME parent/clone set mappings
-database.json file index built from bios/ (SHA1 primary key)
-derivable.json files a held dump already contains, from provenance_report.py
-retired.json files that left the collection, written by generate_db.py
-release.json files, sizes and assets of each pack of the last release
-allowed_signers public key that signs SHA256SUMS.txt
+website/ Astro Starlight project: config, components, styles, lockfile
+ assets/ logos, icons, sharing cards and demos, copied into the site by
+ generate_site.py
+ src/data/ JSON data the components read, written by generate_site.py and
+ committed. The pages, navigation and public/ it writes are gitignored
+database.json file index built from bios/ by generate_db.py (SHA1 primary key),
+ read by every tool: packs, verify, manifests, the site
+mame_clones.json MAME parent/clone sets, written by dedup.py beside bios/, read by
+ resolve_local_file to find a deduplicated clone
+derivable.json files a held dump already contains, written by provenance_report.py,
+ read by the site's provenance page
+retired.json files that left the collection, written by generate_db.py, read by
+ the site so old file links still answer
+release.json files, sizes and assets of each pack of the last release, written by
+ release_record.py, read by the README and the site download tables
+allowed_signers public key that signs SHA256SUMS.txt, read by ssh-keygen -Y verify
+pyproject.toml project metadata, the ruff and mypy configuration
+README.md the repository's front page, written by generate_readme.py
+CONTRIBUTING.md the contributing guide, written by generate_readme.py
+LICENSE MIT, for the scripts, schemas, documentation and metadata
+NOTICE the status of the BIOS files and how to ask for a removal
+SECURITY.md the private channel for a security report
+CODE_OF_CONDUCT.md the Contributor Covenant
+.github/ the two workflows, issue and pull request templates, banner images
+.gitattributes LF line endings, bios/ kept as bytes, generated files marked
+.gitignore the release assets under bios/ (the large-files registry), local output
dist/ generated packs (gitignored)
.cache/ hash cache and large file downloads (gitignored)
```
@@ -480,7 +507,7 @@ not available on the target. Without `--target`, all systems are included.
## MAME clone map
-`_mame_clones.json`, beside the `bios/` tree it describes, maps MAME clone ROM names to their canonical parent.
+`mame_clones.json`, beside the `bios/` tree it describes, maps MAME clone ROM names to their canonical parent.
When a clone ZIP was deduplicated, `resolve_local_file` uses this map to find the canonical file.
## Install manifests
diff --git a/docs_assets/images-needed.md b/wiki/images-wanted.md
similarity index 83%
rename from docs_assets/images-needed.md
rename to wiki/images-wanted.md
index c7bbf25df..1de3ac134 100644
--- a/docs_assets/images-needed.md
+++ b/wiki/images-wanted.md
@@ -1,15 +1,22 @@
-# Images that need a real device
+---
+level: contribute
+order: 95
+terms: screenshot, capture, image, alt text
+---
+
+# Screenshots wanted
These pictures show a real screen, so they are captured on a real install and
-never drawn as a mock-up. Each entry says what the capture must show, where it
-goes, and the alt text it carries. Folder layouts that follow from data are
-drawn by `scripts/site_diagrams.py` instead (the MinUI card tree is
-``).
+never drawn as a mock-up. Each entry says what the capture must show, the pages
+it is for, and the alt text it carries. Folder layouts that follow from data
+are drawn by `scripts/site_diagrams.py` instead, from the repository's own
+files.
Captures: PNG or WebP, 1200 px wide at most, cropped tight, under 150 KB,
personal paths and user names removed. Menu labels are checked against the
-current release of the software before the capture is used. Put each file in
-`docs_assets/screens/` and note the software version in the commit message.
+current release of the software before the capture is used. Attach the file
+to a [new issue](https://github.com/Abdess/retrobios/issues/new) that names
+the entry below and the software version shown.
## RetroArch System/BIOS directory
@@ -26,7 +33,7 @@ the firmware lines reading Present. For RetroArch and Lakka pages, "Done when".
**Alt text**: RetroArch Core Information for a PlayStation core, each firmware line marked Present.
-## Steam Deck Desktop Mode and Konsole
+## Steam Deck desktop mode and terminal
Two panels: the Steam Deck power menu with Switch to Desktop selected, then the
desktop with Konsole open and the install command pasted. For the EmuDeck and
diff --git a/wiki/index.md b/wiki/index.md
index b921f95ac..b80c1e9f2 100644
--- a/wiki/index.md
+++ b/wiki/index.md
@@ -17,6 +17,8 @@ toolchain works. To set up BIOS files on a device, start with
- **[What the packs do not hold](../gaps.md)**: files emulators load that no pack can carry yet, by platform and by emulator
- **[Cores by platform](../cross-reference.md)**: every core each platform runs, the systems it emulates, the upstream project it comes from
- **[Dump provenance](../provenance.md)**: how the collection lines up against the No-Intro, Redump and TOSEC catalogs
+- **[Rebuilding an archive](archive-recipes.md)**: the recipe of each arcade ZIP, and how it rebuilds the archive from the ROMs the collection holds
+- **[How emulators are tested](measurements.md)**: when an emulator is run for real, what a Proof line means, where every run is recorded
## Data
@@ -52,6 +54,7 @@ at run time, so the source is the primary reference:
- **[Architecture](architecture.md)**: directory structure, data flow, platform inheritance, pack grouping, security, edge cases, CI workflows
- **[Command-line tools](tools.md)**: every script, pipeline usage, scrapers
- **[Build custom packs](advanced-usage.md)**: custom packs, region filtering, one file per slot, target filtering, truth generation, emulator verification, offline workflow
+- **[Screenshots wanted](images-wanted.md)**: captures of real screens the pages still need, with their alt text
See [contributing](../contributing.md) for submission guidelines.
diff --git a/wiki/installer.md b/wiki/installer.md
index 5969511e2..d5fd427ed 100644
--- a/wiki/installer.md
+++ b/wiki/installer.md
@@ -354,6 +354,8 @@ they use to select over the installer.
(code 2).
- `--plain`, `RETROBIOS_PLAIN=1` or `ACCESSIBLE=1` keep the questions line by
line. This is the mode for a screen reader, which reads a full screen badly.
+ [Accessibility](accessibility.md) lists what works without the full screen,
+ colour or a mouse, and what has not been checked.
Behind the screens, the installer runs itself with `--check --events`, then
`--events --yes` and the options chosen: the same
diff --git a/wiki/reference-terms.md b/wiki/reference-terms.md
index a2aa52057..86230c51a 100644
--- a/wiki/reference-terms.md
+++ b/wiki/reference-terms.md
@@ -13,13 +13,13 @@ everyday words (BIOS, emulator, core, hash) are in the [glossary](glossary.md).
the RetroArch menu. It starts the emulator.
**Pack**
-: One ZIP file with every BIOS file a setup uses. A pack over 2 GB comes in
- several parts, and every part is needed. A release publishes packs for the
- setups the registry marks `release_pack`, and the installer serves the rest.
+: Defined in the [glossary](glossary.md). A pack over 2 GB comes in several
+ parts, and every part is needed. A release publishes packs for the setups
+ the registry marks `release_pack`, and the installer serves the rest.
**Profile and source_ref**
-: A profile records which files one emulator opens, read from its code.
- Every entry has a `source_ref`, the line of code that proves it, at the
+: A profile, a YAML file in `emulators/`, records which files one emulator
+ opens, read from its code. Every entry has a `source_ref`, the line of code that proves it, at the
revision named by `source_commit` (the pin). Example:
`emulators/duckstation.yml` lists `scph5501.bin` at
`src/core/bios.cpp:47`, read at its `source_commit`.
@@ -53,10 +53,6 @@ everyday words (BIOS, emulator, core, hash) are in the [glossary](glossary.md).
already held. Example: `spec128.zip` (MD5 `1a524bfa...`) was rebuilt from
the FBNeo recipe.
-**Profile**
-: A YAML file in `emulators/` that documents what one emulator loads, read
- from its source code.
-
**Ground truth**
: The emulator's source code, the reference every profile is checked against.
diff --git a/wiki/release-process.md b/wiki/release-process.md
index 95ef79876..6adaaef83 100644
--- a/wiki/release-process.md
+++ b/wiki/release-process.md
@@ -36,9 +36,9 @@ hosted runner should rebuild and re-upload.
**Trigger.** Push to `main` when an input of the site changes: the data
(`platforms/`, `emulators/`, `provenance/`, `exports/`, `measurements/`,
-`database.json`, `release.json`, `derivable.json`, `install/`), the pages and
-their assets (`wiki/`, `docs_assets/`, `website/`), the installer and its two
-bootstraps the site serves, `campaign/observations.yml` (the Proof lines
+`database.json`, `release.json`, `derivable.json`, `mame_clones.json`,
+`install/`), the pages and their assets (`wiki/`, `website/`), the installer
+and its two bootstraps the site serves, `campaign/observations.yml` (the Proof lines
of the emulator pages), the workflow itself, and every script the build runs
or imports. Also manual dispatch.
@@ -111,7 +111,8 @@ scripts stay Python.
`install.py`, `install.sh` or `install.ps1` (the bootstraps pin the
installer's SHA-256, so editing one without the other fails the run),
`ports/**` (the handheld port bundles the installer), `packaging/**` (the PyPI
-package is built from it), or any input of the site build. The path lists are spelled out once per event because the workflow
+package is built from it), `README.md` and `CONTRIBUTING.md` (both generated),
+or any input of the site build. The path lists are spelled out once per event because the workflow
parser reads no YAML anchor, and a test holds the two equal.
**Concurrency.** Per-PR group on a pull request, per-ref on a push. A pull
@@ -133,6 +134,9 @@ which validates every platform YAML against `schemas/platform.schema.json` and
every emulator profile against `schemas/emulator.schema.json`. Both schemas set
`additionalProperties: false`, so a typo in a field name fails the job instead
of being silently ignored.
+It also regenerates `README.md` and `CONTRIBUTING.md` with
+`generate_readme.py` and fails when either differs from the committed file:
+both are written by `scripts/sitegen/readme.py`, never by hand.
**check-new-profiles.** Runs `profile_sync.py --added --base BASE --strict`,
which checks each profile the change adds (the files `git diff --diff-filter=A`
diff --git a/wiki/testing-guide.md b/wiki/testing-guide.md
index e72e66226..72e8c865e 100644
--- a/wiki/testing-guide.md
+++ b/wiki/testing-guide.md
@@ -82,7 +82,7 @@ Every module in `tests/`, by the area it guards.
| Truth and native export | synthetic + cached originals | `test_export_counts`, `test_export_native_layer`, `test_export_report`, `test_exporters_contract`, `test_exporters_fidelity`, `test_exporters_lists`, `test_exporters_reconciliation`, `test_exporters_scripts`, `test_truth_data_dir_readers`, `test_truth_diff`, `test_truth_layout` |
| Scrapers, upstream and provenance | inline sources, synthetic | `test_auto_fetch_lookup`, `test_batocera_md5_list`, `test_check_freshness`, `test_data_dir_refs`, `test_dedup`, `test_elec_scrapers`, `test_fbneo_parser`, `test_find_embedded`, `test_find_pinned_revision`, `test_hash_merge`, `test_lines`, `test_listxml`, `test_mame_devices`, `test_mame_parser`, `test_provenance`, `test_refresh_data_dirs`, `test_refresh_failures`, `test_refresh_stale`, `test_retrodeck_component_md5`, `test_retrodeck_scraper_errors`, `test_romset_recipes`, `test_scraper_contract`, `test_scraper_dropped`, `test_scraper_network`, `test_upstream`, `test_upstream_index` |
| Site and published pages | the generated pages, the built site, the published data | `test_coverage_cache`, `test_retired_files`, `test_site_agents`, `test_site_arcade_boards`, `test_site_availability`, `test_site_bootstrap`, `test_site_built_gate`, `test_site_components`, `test_site_console_folders`, `test_site_content_data`, `test_site_copy`, `test_site_cores`, `test_site_css`, `test_site_demo`, `test_site_density_cards`, `test_site_emulator_page`, `test_site_emulators`, `test_site_entry`, `test_site_entry_tables`, `test_site_exports`, `test_site_freshness`, `test_site_funnel`, `test_site_handheld`, `test_site_images`, `test_site_inputs`, `test_site_insights`, `test_site_integration`, `test_site_nav`, `test_site_page_text`, `test_site_picker`, `test_site_platform_density`, `test_site_platform_hashes`, `test_site_privacy`, `test_site_pronouns`, `test_site_reference_data`, `test_site_reference_lookup`, `test_site_reference_pages`, `test_site_render`, `test_site_search`, `test_site_steps`, `test_site_system_links`, `test_site_system_names`, `test_site_system_sections`, `test_site_systems`, `test_site_validation`, `test_site_wanted`, `test_site_weight`, `test_site_wiki`, `test_site_write` |
-| Documentation pages | the wiki, the README and CONTRIBUTING read against the code | `test_cited_scripts`, `test_contributing_text`, `test_doc_pages_installer`, `test_doc_pages_rules`, `test_doc_pages_style`, `test_doc_pages_tools`, `test_doc_surfaces`, `test_prose_style`, `test_report_excerpt`, `test_text` |
+| Documentation pages | the wiki, the README and CONTRIBUTING read against the code | `test_cited_scripts`, `test_contributing_text`, `test_doc_pages_installer`, `test_doc_pages_rules`, `test_doc_pages_style`, `test_doc_pages_tools`, `test_doc_surfaces`, `test_prose_style`, `test_report_excerpt`, `test_repository_map`, `test_text` |
| Profile sync and citations | an injected fetch, synthetic profiles, the committed profiles at their pins | `test_cited_lines`, `test_mame_ref_audit`, `test_pin_build`, `test_profile_sync_anchoring`, `test_profile_sync_cli`, `test_profile_sync_prose`, `test_profile_sync_report`, `test_profile_sync_repositories`, `test_profile_sync_versions`, `test_profile_sync_writes`, `test_source_ref_targets`, `test_version_basis` |
| Launcher extractors | upstream source blocks placed at the lines they hold at the pinned revision | `test_launchers_amberelec`, `test_launchers_batocera`, `test_launchers_emudeck`, `test_launchers_emuelec`, `test_launchers_knulli`, `test_launchers_recalbox`, `test_launchers_retrobat_configs`, `test_launchers_retrobat_files`, `test_launchers_retrodeck`, `test_launchers_retropie`, `test_launchers_rocknix` |
| PR validation and CI | synthetic contributor files, the workflow files, the source of `scripts/` | `test_dataclass_defaults`, `test_optional_dependencies`, `test_schema_semantic_gate`, `test_validate_pr`, `test_validate_pr_flow`, `test_validate_pr_hashes`, `test_workflow_paths` |
diff --git a/wiki/tools.md b/wiki/tools.md
index d154e351e..0b1bb8116 100644
--- a/wiki/tools.md
+++ b/wiki/tools.md
@@ -1387,7 +1387,7 @@ before a release (wiki/release-process.md). Its lines stay in
| `acquire/` | What `provenance_report.py`, `auto_fetch.py`, `find_embedded.py` and `find_pinned_revision.py` run: dump-catalog coverage, dumps a held file already contains, the searches by hash, the rolling crc32 window, the walk of a file's upstream history |
| `games/` | What `game_rules.py` and `generate_games_index.py` run: the checks of the region and extra-file rules against the profiles and header readers, and each part of `install/games/` (setups, fallback sets, systems, arcade, the index and its coverage floors) |
| `retired_files.py` | The record of files that left the collection, `retired.json`, which `generate_db.py` appends to and the site's lookup reads. `--backfill` rebuilds it from the history of `database.json` since content addresses were published (`--output` names another file) |
-| `dedup.py` | Deduplicate `bios/` (`--dry-run`, `--bios-dir`): byte-identical copies are deleted and one kept. Identical MAME sets under other names stay one file, named in `_mame_clones.json`. Trees addressed by path are left alone (`NODEDUP_DIRS`), under a folder of that name at any depth: BBK, Bungie, C-Dogs SDL, Ikemen GO, mame, PinMAME, RPG Maker, ScummVM, Softdisk, TheXTech, splitwolf, Theme Hospital, c64-emu, opentyrian, tzdata |
+| `dedup.py` | Deduplicate `bios/` (`--dry-run`, `--bios-dir`): byte-identical copies are deleted and one kept. Identical MAME sets under other names stay one file, named in `mame_clones.json`. Trees addressed by path are left alone (`NODEDUP_DIRS`), under a folder of that name at any depth: BBK, Bungie, C-Dogs SDL, Ikemen GO, mame, PinMAME, RPG Maker, ScummVM, Softdisk, TheXTech, splitwolf, Theme Hospital, c64-emu, opentyrian, tzdata |
| `identity.py` | One content filed under two identities: groups `bios/` by content and reports a group that crosses manufacturers outside `KNOWN_SHARED` (`--strict` exits 1, pipeline step 3a) |
| `slots.py` | Destinations the platform and a core both claim, and how the pack settles each (`--platform`, `--target`, `--json`, `--strict`, and pipeline step 3b passes the run's own `--target`) |
| `region_audit.py` | Confront every profile `region:` with the regions No-Intro names for the same dump (`--json`, `--db`, `--emulators-dir`). An opinion, never an authority: the code decides, and a disagreement is a line to read in the emulator's source |
@@ -1410,7 +1410,7 @@ before a release (wiki/release-process.md). Its lines stay in
| `site_sources.py` | Record which cited source paths each pinned upstream tree holds, for the site's source links (`--fetch` reads a tree no cache holds) |
| `site_markdown.py` | Write each built page as Markdown beside its HTML (`/index.md`, named in every page's head) and `llms-full.txt`, the guides and every setup's page in one file, for the assistants that read the site. The Astro build runs it once the pages are written |
| `site_insights.py` | What readers look for and do not find, from totals only, each section with its period: Google searches by page against the period of the same length before (anchors merged into their page), ranked by the clicks lost against the site's own click rate at each position, searches clicked less than half that rate, searched file names the collection does not hold, site searches that found nothing, broken addresses, "Did this page help?" answers, GitHub traffic (14 days) and release downloads since the previous run (`--days`, `--skip gsc,goatcounter,github`, `--output`, `--downloads-snapshot`, default `.cache/insights/downloads.json`). Reads Search Console, GoatCounter and GitHub with credentials kept outside the repository. A source it cannot read (rate limit, missing credential) is named at the top of the report instead of ending the run, which then exits 1. [What the site counts](privacy.md) |
-| `make_demo.py` | Record the installer demos of the README and the site into `docs_assets/demo/`. An ArkOS card with six games is built under `tmp/demo/` in a mount namespace of the user, this checkout is served on loopback, and VHS runs one tape per variant: `default` (`install.tape`, the one-line command in a terminal, the card at `/media/EASYROMS`, needs `unshare`) and `handheld` (`install-handheld.tape`, the full-screen interface at 640x480 on an ArkOS root made with `bwrap`, as its Tools menu starts it, driven by the keys gptokeyb sends for the buttons). `--variant NAME` records one (repeatable), every variant by default, the others kept. Each needs `vhs`, `ttyd` and `ffmpeg`. The default gets the README's GIF, each gets a WebM, an MP4 and a poster, held to their size targets, and an entry in `demo.json` with what it shows and its alt text. No Windows variant: under pwsh on Linux the installer's summary gives `--dest /mnt/e/bios` back. Never run by the build |
+| `make_demo.py` | Record the installer demos of the README and the site into `website/assets/demo/`. An ArkOS card with six games is built under `tmp/demo/` in a mount namespace of the user, this checkout is served on loopback, and VHS runs one tape per variant: `default` (`install.tape`, the one-line command in a terminal, the card at `/media/EASYROMS`, needs `unshare`) and `handheld` (`install-handheld.tape`, the full-screen interface at 640x480 on an ArkOS root made with `bwrap`, as its Tools menu starts it, driven by the keys gptokeyb sends for the buttons). `--variant NAME` records one (repeatable), every variant by default, the others kept. Each needs `vhs`, `ttyd` and `ffmpeg`. The default gets the README's GIF, each gets a WebM, an MP4 and a poster, held to their size targets, and an entry in `demo.json` with what it shows and its alt text. No Windows variant: under pwsh on Linux the installer's summary gives `--dest /mnt/e/bios` back. Never run by the build |
| `validate_site.py` | Validate rendered metadata, heading order, image alternatives, JSON-LD, local resources, links and fragments, and the page size and search index budgets |
| `indexnow.py` | List the pages a deploy changes, read against the `digests.json` the live site serves, as the IndexNow request the deploy posts once the new site is live. `--dist` names the built site, `--output` appends the request to a step output |
| `romset_recipes.py` | Identify which emulator version an arcade archive matches, rebuild a pinned archive from ROMs already held, record a recipe for every archive the collection holds and build any of them from the members it holds (see [Archive recipes](#archive-recipes)) |