Commit Graph
116 Commits
Author SHA1 Message Date
Abdessamad Derraz 3fabb52367 docs: cite the site modules at their paths
Comments in the workflow, the bootstraps, the installer, the site
sources and the tests still named scripts/sitebootstrap.py and the other
site modules sitegen/ took over. test_cited_scripts checks that every
scripts/ path or -m module a tracked text names exists.
2026-11-24 10:22:33 +01:00
Abdessamad Derraz 5f354c8faf refactor: move the probe inputs out of tests/
content.yml, oracle.yml, pack_content.yml and observations.yml are read by core_probe, the probes and the site build: they are inputs, not fixtures. measurements/ holds append-only <emulator>.jsonl records only, so they move to campaign/ at the root.
2026-11-24 10:09:39 +01:00
Abdessamad Derraz 263a64c0e0 refactor: split core.upstream by subject
HTTP to the forges moves to core.forgehttp, comparisons, trees and
clone history to core.upstreamtree. core.upstream keeps repositories,
the cache and revisions.
2026-11-24 06:20:52 +01:00
Abdessamad Derraz ce92eff0aa refactor: split core extras by subject 2026-11-24 06:20:45 +01:00
Abdessamad Derraz 4916b4a44e refactor: move the declaration tally to its module 2026-11-24 06:19:17 +01:00
Abdessamad Derraz 0232f0549b refactor: move entry sources out of crossref 2026-11-24 06:18:19 +01:00
Abdessamad Derraz 6c48409912 refactor: split four oversized site modules
The emulator page sheds its intro and data directories, the gaps page its problem files and core complement, starlight its sidebar topics, the data exports their rows. Names another module now reads lose their underscore.
2026-11-24 06:02:03 +01:00
Abdessamad Derraz 2786b3be34 refactor: split the emulator card module
File badges and the romset and version rows get modules of their own.
2026-11-24 06:02:03 +01:00
Abdessamad Derraz 9cdca28e52 chore: name the split resolve modules 2026-11-24 05:54:38 +01:00
Abdessamad Derraz 88ea3d58ad refactor: one naming style per package 2026-11-24 03:46:21 +01:00
Abdessamad Derraz c0d85cca0b refactor: grouping returns its labels and moves 2026-11-24 03:38:59 +01:00
Abdessamad Derraz 02c33be3b5 fix: read catalog coverage under the database 2026-11-24 02:19:13 +01:00
Abdessamad Derraz 1c4d26e939 refactor: move installed sections into sitegen
model.systemnames keeps the pure section functions. The sections a site run installs, their heading ids and their generation now live in sitegen.runsections, replaced per run and dropped once the site inputs change.
2026-11-24 02:19:03 +01:00
Abdessamad Derraz 6e44a93156 refactor: carry platform launches as a dataclass
standalone_set returned one string set mixing standalone names with ten
JSON-tagged record kinds that every reader re-decoded. platform_launches
now returns a frozen PlatformLaunches (resolve/launches.py) with typed
fields, runs_standalone, is_dual, system_file_index and merged, which
_build_layouts and packprobe share.
2026-11-24 02:18:53 +01:00
Abdessamad Derraz 83e810d1b3 fix: let core.upstream refuse requests offline
RETROBIOS_OFFLINE was read by six callers and never by the network
gateway: a caller that did not pass offline=True sent the request,
untokened. core.offline holds the rule, open_retrying refuses with
OfflineError and the cached reads answer as an offline run. The callers
read the same predicate, and the tests that fake the network clear the
variable for themselves (tests.ONLINE).
2026-11-24 00:20:03 +01:00
Abdessamad Derraz 387ca39a9d fix: site reads citations through the shared walk
sitegen.sources had its own walk of a profile: it skipped string list
items and read a repository prefix as part of the path, so prboom-plus
and future-pinball-fploader citations that profile_sync tracks were
neither recorded in source-paths.json nor linked. The walk moves to
model.citations, which collect_citations, cited_paths and
link_prose_citations all read.
2026-11-24 00:20:03 +01:00
Abdessamad Derraz 77513c2045 refactor: move archive recipe counts out of cards 2026-11-24 00:20:03 +01:00
Abdessamad Derraz dedbde7917 fix: pack readme reads the guides of its run
model.guides took its platforms folder from the site's inputs, so a pack built with --platforms-dir printed the manual and install commands of the repository's guides. The loaders now take the folder (or the install address) explicitly; sitegen.guidedata binds them to the site's inputs, the pack README to the run's platforms folder, the release notes and the site validation to the folder they were given.
2026-11-23 23:07:45 +01:00
Abdessamad Derraz 2ccd7bb88f fix: gaps and wanted read one sendable rule 2026-11-23 23:07:44 +01:00
Abdessamad Derraz 7ad22248b5 refactor: hold the run's link tables in one place 2026-11-23 23:07:44 +01:00
Abdessamad Derraz 6e8ef2650f refactor: carry the site's page state on the run
Eleven module globals in descriptions, decorate, emulatorpage and
emulatorcards held what one build records about its pages, filled by
build.py and as a side effect of two renderers. They now live on a
PageRegistry the run carries and passes to the renderers and to
decorate_markdown_pages. get/ pages return their date (get_page_data)
instead of writing it, and a card reads the data directory members
from its CardSources. A second build in one process no longer inherits
the first one's maps, and tests build the input instead of patching
globals.
2026-11-23 23:07:32 +01:00
Abdessamad Derraz 1ab22ec956 refactor: elect arcade boards in their own module
The board election, its lazy load and its cache sat in render, with the
cache flag in model.systemnames. sitegen.arcadeboards elects them into a
frozen ArcadeBoards, build.py installs them once the sections are the
run's, and render keeps the hrefs. systemnames counts its installs
instead of holding a board flag, and section_without_boards moves there.
The elected boards and the Arcade sections are identical before and
after on the repository's data.
2026-11-23 21:44:08 +01:00
Abdessamad Derraz 3344cfd2fb refactor: split crossref into its three subjects
FileConsumers, held_copy and entry_target move to packs/consumers.py, the
data/ and bios/ ZIP index to packs/supplemental.py, the launcher-name report
to packs/crossreflaunchers.py and the set-aside labels with
profile_breakdown to packs/crossreftext.py. The site no longer imports the
gap engine to learn who reads a file.
2026-11-23 21:02:44 +01:00
Abdessamad Derraz 0757698063 refactor: one owner for a launcher emulator list
The comma-joined emulator field of a launcher record was written in
eleven places and read in nine, four of them splitting on ", " with no
strip. model.launcherrecords joins and splits it, and every scraper,
resolve and packs reader goes through it.
2026-11-23 21:02:27 +01:00
Abdessamad Derraz 04e1d2d3ab fix: name every export change on the site page
The run's summary and the exports page each built the sentence from their
own table, and the page dropped sizes and hashes removed and md5 lists.
Both now read one table of change kinds, and each report stores a count
per kind. The committed reports gain those counts from their own records.
2026-11-22 02:26:45 +01:00
Abdessamad Derraz 80461985d3 chore: trigger the site on three moved modules 2026-11-22 01:25:24 +01:00
Abdessamad Derraz 357153eaa3 fix: bound data directory zip extraction
The refresh fetched, filtered and extracted in one function and copied
ZIP members with no size, ratio or duplicate path check. Extraction now
lives in packs/datadirextract.py as local functions, the ZIP side on
safe_extract_zip, which gains a member select hook and returns the file
count. Tests read the member rules on local archives.
2026-11-22 00:58:05 +01:00
Abdessamad Derraz 349d90344c chore: trigger the site on packs.shares 2026-11-22 00:17:50 +01:00
Abdessamad Derraz 9a6003c22f refactor: read the demo facts in demovariants 2026-11-21 19:50:33 +01:00
Abdessamad Derraz 416299b6e0 refactor: move coverage and release out of readme 2026-11-21 19:50:28 +01:00
Abdessamad Derraz 184f84effd chore: trigger the site on model.profilerepos 2026-11-21 16:59:28 +01:00
Abdessamad Derraz 14cc76132f chore: trigger the site on sitegen.indexnow 2026-11-21 15:48:32 +01:00
Abdessamad Derraz 8afccc3d0f fix: follow scripts the site build reads as data 2026-11-21 15:47:20 +01:00
Abdessamad Derraz 985d07b97e refactor: move pipeline steps into orchestrate 2026-11-21 14:58:02 +01:00
Abdessamad Derraz 5fa802a3c5 refactor: move schema checks into a package 2026-11-21 14:57:45 +01:00
Abdessamad Derraz 4acfd8f763 refactor: read mame release tags in the model
The tag and version helpers lived in the romset DAT importer, so the site cards, which may not import a scraper, matched the label with their own pattern. model.mamerelease now owns mame_tag, mame_version and tag_version. Both scrapers and the cards call it. check_freshness only lifts tags out of labels and converts nothing, so it keeps its own search.
2026-11-21 10:30:22 +01:00
Abdessamad Derraz 71776198e9 refactor: move profile kinds to their own module
model.systems kept an inline copy of reads_own_files because model.profiles imports it. The predicates live in model.profilekinds, which both import, and model.profiles re-exports them. sitegen.build reads lists_files instead of its own launcher/alias tuple.
2026-11-21 10:29:37 +01:00
Abdessamad Derraz 6c0679095e chore: rebuild the site when new helpers change 2026-11-21 06:45:11 +01:00
Abdessamad Derraz b5cfa9179f refactor: drop the unused deterministic zip writer 2026-11-21 05:59:58 +01:00
Abdessamad Derraz 77d381b9af chore: rebuild the site when core.sizes changes
The site generators import scripts/core/sizes.py, so deploy-site lists it among its trigger paths.
2026-11-20 20:03:26 +01:00
Abdessamad Derraz 238f70c7a7 refactor: one copy of each duplicated helper 2026-11-18 22:16:55 +01:00
Abdessamad Derraz c4fdf12874 refactor: release, installer_build, devtools pkgs
The release tools, the installer build tools and the repository's
commit and PR checks keep their commands and move their code into
three packages. The release record readers move to model.releaserecord,
romfolders to model, the buildbot check to scraper. The site reads the
handheld launchers and the bootstrap pin from installer_build.
2026-11-18 20:44:12 +01:00
Abdessamad Derraz fdb7b6f912 refactor: host lock and measurement records go low 2026-11-18 20:37:33 +01:00
Abdessamad Derraz 3bfd72ba7f refactor: name the recipe package romrecipes 2026-11-18 20:20:46 +01:00
Abdessamad Derraz 6172cb65c0 refactor: recipes command imports its packages 2026-11-18 19:49:59 +01:00
Abdessamad Derraz dc4fb652a6 docs: point the site build and pages at sitegen 2026-11-18 19:31:28 +01:00
Abdessamad Derraz b4573d310b refactor: one keyword-option guard in core 2026-11-18 13:47:56 +01:00
Abdessamad Derraz 1f8e106974 docs: name the packs modules 2026-11-18 13:47:56 +01:00
Abdessamad Derraz e1f2f8685d refactor: move upstream, sourceref, version_basis
upstream reads forges with the standard library alone and scrapers,
packs and the site read it: it goes to core. sourceref is the grammar
of a profile field, which the site parses without the comparison
tool: it goes to model. version_basis is read by profile_sync alone
and opens the profiling package.
2026-11-18 12:39:09 +01:00
Abdessamad Derraz bcb99cf761 refactor: break the launchers and layout cycle
resolve.layout imported resolve.launchers inside functions, and
launchers imported the outer roots back from layout inside functions:
the cycle common.py and launchers.py had. The outer roots and
outer_layout read only the platform config, so they move to
model.declarations beside declared_root, and launchers imports them at
the top.
2026-11-18 11:39:59 +01:00