refactor: tidy the repository root

README.md and CONTRIBUTING.md open with a comment naming their
generator, generate_readme.py --check fails on a hand edit in
validate.yml and pr_checks.py, and .gitattributes marks the pipeline
outputs as generated, held equal to core/generated.py by a test.

_mame_clones.json becomes mame_clones.json, still written beside the
scanned bios/ tree, and now triggers both workflows (coverage reads it).
docs_assets/ moves to website/assets/, which Astro does not read as
content. ACCESSIBILITY.md becomes wiki/accessibility.md, linked from the
README and the installer page. The screenshot list moves to
wiki/images-wanted.md: nothing read docs_assets/screens/.

The architecture map names every root entry (test_repository_map),
platforms/README.md keeps only what this folder holds, the reference
index lists archive-recipes and measurements, and reference-terms no
longer defines Profile twice nor repeats the glossary's Pack.
This commit is contained in:
Abdessamad Derraz committed 2026-11-24 10:40:25 +01:00
1 parent 5e306ec19f
commit ab7e300c19
283 files changed
+410 -193

No files matched your search

+59
View File
@@ -0,0 +1,59 @@
---
level: setup
order: 105
terms: accessibility, screen reader, keyboard, colour, contrast
---
# Accessibility
## Commitment
The installer can be used without its full-screen interface, without colour and without a mouse, and the website is checked against Lighthouse's accessibility audits. An accessibility problem reported in an issue is treated like any other defect.
## Supported environments
**Installer** (`install.py`, Python 3.8 or later, on Linux, macOS, Windows, WSL, Android in Termux and the handheld launchers under `ports/`):
- Line-by-line questions: any terminal, a pipe or a log included. This is the mode for a screen reader.
- Full-screen interface: a terminal of at least 40 columns and 12 rows whose `TERM` is set, is not `dumb` and moves the cursor with ANSI sequences. On Windows, a console that draws escape sequences (Windows 10 or later).
- JSON events (`--events`): for a program or another front end that drives the installer.
**Website** (https://abdess.github.io/retrobios/): light and dark themes, phone and desktop widths. The audits below ran in Chrome. Other browsers have not been audited.
## What works
Installer:
- `--plain`, `RETROBIOS_PLAIN=1` or `ACCESSIBLE=1` keep the questions line by line instead of the full screen.
- The full screen falls back to line-by-line questions by itself, and says why, when the window is smaller than 40x12, when `TERM` is unset or `dumb`, or when the terminal cannot draw it. `--tui` asks for the full screen and exits with code 2 and the reason when it cannot open.
- Every action has a key (arrows, `j`/`k`, Enter, Space, Esc, Tab, `/` to filter a list), and `?` or F1 lists the keys of the screen. The bottom line names what Enter or A does on the row under the cursor.
- A controller drives it through a handheld launcher (`RETROBIOS_PAD`: gptokeyb, muxterm, evmapy, Miyoo). A mouse or a touch screen works where the terminal reports clicks, and `RETROBIOS_NO_MOUSE` leaves the mouse to the terminal.
- Colour is added to words, never put in their place, and only the 16 basic colours are used. `NO_COLOR` (any value but an empty one), `TERM=dumb`, an unset `TERM`, a terminal that names fewer than 8 colours or an output that is not a terminal turn colour off. The text stays the same.
- Without a UTF-8 terminal, or under the C locale, the screen is drawn in ASCII.
- However the screen ends (Enter, `q`, Ctrl+C, a signal), the terminal is given back with the cursor shown and echo on.
Website:
- Lighthouse accessibility, 2026-11-19 (Lighthouse 13.4.1, Chrome, mobile and desktop, median of 3 runs, on a production build served with gzip under `/retrobios/`): 100 on `/`, `/emulators/mgba/`, `/systems/sony-playstation-2/`, `/systems/other-project64/`, `/platforms/retroarch/`, `/get/retroarch/`, `/files/`, `/wanted/`, `/wiki/installer/`, `/gaps/`, `/provenance-redump/`, `/cross-reference/` and the not-found page. Best Practices is 100 on the same pages, and SEO is 100 on all but the not-found page (see Known limitations).
- Text, link, button and focus ring colours meet the WCAG AA contrast ratios in both themes. A test in `tests/test_site_css.py` checks each pair.
- Every link and control shows a focus ring. Form fields (file picker, wanted list filter, measurements filters) have labels, and results are announced in live regions.
- Glossary terms open with Enter or Space and close with Escape.
- The search button is named "Search", and its shortcut (Ctrl+K, or Cmd+K on a Mac) is announced through `aria-keyshortcuts`. The key hint beside it is drawn, so it does not change the button's name.
- Animations and transitions are cut when the system asks for reduced motion.
## Known limitations
- The full-screen installer is read badly by a screen reader. Use `--plain`.
- Mouse and touch input have not been checked in macOS Terminal or iTerm2.
- The not-found page scores below 100 in SEO because it carries `noindex`, so Lighthouse fails `is-crawlable`. A page that only says an address does not exist must stay out of search results, so this is kept. Lighthouse cannot audit the page at a missing address, since the server answers 404 there, so it was audited at `/404.html`.
- The website checks are automated. No review with a screen reader or with the keyboard alone has been recorded.
## Reporting
Open an issue at https://github.com/Abdess/retrobios/issues/new (the **Report a problem** link at the bottom of each page leads there). Include:
- the page address, or the installer command you ran and what `python3 install.py --version` prints,
- 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](https://github.com/Abdess/retrobios/blob/main/SECURITY.md).
+39 -12
View File
@@ -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/<setup>.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
+78
View File
@@ -0,0 +1,78 @@
---
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, 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. 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
Settings, Directory in RetroArch (Ozone menu), with the System/BIOS row
highlighted and its path visible. For the RetroArch pages on Windows, macOS,
Linux and Android.
**Alt text**: RetroArch Settings, Directory screen, with the System/BIOS line highlighted showing the folder path.
## RetroArch firmware check
Main Menu, Information, Core Information after loading a PlayStation core, with
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 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
RetroDECK pages.
**Alt text**: Steam Deck power menu with Switch to Desktop selected, then the Konsole terminal open with the install command pasted.
## Installer run, annotated
A real installer run in a terminal with three marks: the detected BIOS folder
line, the confirmation prompt, and the Done line. For First install and every
setup page.
**Alt text**: Installer output in a terminal, with marks on the detected folder, the install choice and the Done line.
## Batocera network share from Windows
Windows File Explorer with `\\BATOCERA\share\bios` in the address bar and the
BIOS files listed. For the Batocera and KNULLI pages.
**Alt text**: Windows File Explorer showing the Batocera bios folder opened over the network.
## Batocera missing BIOS screen
Batocera's main menu path to the missing BIOS check, and the result screen with
no missing file for the consoles in use. For the Batocera page, "Done when".
**Alt text**: Batocera missing BIOS check listing no missing files.
## Recalbox BIOS manager
Recalbox's BIOS checking screen with green, yellow and red entries visible. For
the Recalbox page.
**Alt text**: Recalbox BIOS manager listing files marked present, present with another version, and missing.
## A multi-part pack extracted
A file manager showing two downloaded parts and the single folder both were
extracted into. For Get your files.
**Alt text**: Two downloaded pack parts and the one folder both were extracted into.
+3
View File
@@ -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.
+2
View File
@@ -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
+5 -9
View File
@@ -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.
+8 -4
View File
@@ -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`
+1 -1
View File
@@ -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` |
+2 -2
View File
@@ -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 (`<page>/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)) |