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

+12 -1
View File
@@ -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))