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.
This commit is contained in:
Abdessamad Derraz committed 2026-11-23 21:02:44 +01:00
1 parent cdbde88017
commit 3344cfd2fb
35 files changed
+806 -768

No files matched your search

+3 -2
View File
@@ -23,7 +23,8 @@ from model.guides import HANDHELD_GUIDE
from model.profiles import is_emulator, lists_files, load_emulator_profiles
from model.registry import list_registered_platforms, load_platform_registry
from model.systemnames import program_names, set_console_sections, system_name
from packs.crossref import FileConsumers, SupplementalIndex
from packs.consumers import FileConsumers
from packs.supplemental import SupplementalIndex
from acquire.provenance import build_report, profile_needs
from resolve.cores import resolve_platform_cores
from resolve.review import load_platform_hashes, load_profile_hashes
@@ -191,7 +192,7 @@ class _SiteRun:
def _load_site_run(args: argparse.Namespace, db: dict, docs: Path, public: Path) -> _SiteRun:
"""The registry, the coverage of every platform and the profiles."""
from model.registry import load_data_dir_registry
from packs.crossref import build_supplemental_index
from packs.supplemental import build_supplemental_index
registry = _load_registry(args.platforms_dir)
+1 -1
View File
@@ -14,7 +14,7 @@ from core.text import series
from core.hashing import parse_hash_list
from model import siteinputs
from model.collection import profiles_on_disk
from packs.crossref import FileConsumers
from packs.consumers import FileConsumers
from romrecipes.romsets import dat_snapshots, usable_recipe
from sitegen import markup, wanted as sitewanted
from core.paths import REPO_ROOT
+1 -1
View File
@@ -10,7 +10,7 @@ from model.collection import profiles_on_disk
from model.composition import GAME_DATA_TOPS
from model.guides import INSTALL_PS1, INSTALL_SH
from model.profiles import entry_system_ids
from packs.crossref import FileConsumers
from packs.consumers import FileConsumers
from sitegen.cards import emulator_display, romset_releases, system_file_card
+2 -1
View File
@@ -20,7 +20,8 @@ from model import retired as model_retired
from model.database import sha1_at
from model.platforms import PLATFORMS_DIR_KEY
from model.profiles import is_emulator
from packs.crossref import FileConsumers, SupplementalIndex
from packs.consumers import FileConsumers
from packs.supplemental import SupplementalIndex
from sitegen.apiitems import core_index_items, system_index_items
from sitegen.config import DATA_LICENSE, REPO_URL, build_commit
from core.paths import REPO_ROOT
+1 -1
View File
@@ -14,7 +14,7 @@ from core.sizes import size_text
from model.collection import manufacturer_slug
from model.systemnames import system_name
from model.profiles import reads_own_files
from packs.crossref import FileConsumers, entry_target, held_copy
from packs.consumers import FileConsumers, entry_target, held_copy
from resolve.cores import resolve_platform_cores
from sitegen import markup
from sitegen.cards import (
+2 -1
View File
@@ -12,7 +12,8 @@ from core.hashing import parse_hash_list
from core.sizes import size_text
from model.systemnames import system_name
from model.profiles import is_emulator
from packs.crossref import FileConsumers, SupplementalIndex
from packs.consumers import FileConsumers
from packs.supplemental import SupplementalIndex
from sitegen import entries as siteentries, markup, measurements as sitemeasurements
from sitegen.cards import ROMSET_FAQ, emulator_file_anchors
from sitegen.config import REPO_URL, date_line, yaml
+1 -1
View File
@@ -25,7 +25,7 @@ from sitegen.render import code_span, count_text, escape_tags
from sitegen.sources import source_ref_markdown
if TYPE_CHECKING:
from packs.crossref import SupplementalIndex
from packs.supplemental import SupplementalIndex
# Contributing page
+1 -1
View File
@@ -15,7 +15,7 @@ from model.collection import manufacturer_slug
from model.registry import load_versions
from model.systemnames import system_name
from model.profiles import is_emulator
from packs.crossref import FileConsumers
from packs.consumers import FileConsumers
from sitegen.cards import PROVENANCE_LABELS, emulator_card_anchor, emulator_file_anchors
from sitegen.config import SITE_URL
from core.paths import REPO_ROOT
+1 -1
View File
@@ -7,7 +7,7 @@ from collections.abc import Iterator
from dataclasses import dataclass
from model.collection import SECTION_LABELS
from packs.crossref import FileConsumers
from packs.consumers import FileConsumers
from sitegen import markup
from sitegen.cards import ROMSET_FAQ, emulator_display, romset_releases
from sitegen.consolecards import (
+1 -1
View File
@@ -11,7 +11,7 @@ from dataclasses import dataclass
from model.collection import SECTION_LABELS, manufacturer_slug
from model.composition import GAME_DATA_TOPS
from packs.crossref import FileConsumers
from packs.consumers import FileConsumers
from sitegen import markup
from sitegen.cards import icon_symbol
from sitegen.config import date_line
+1 -1
View File
@@ -18,7 +18,7 @@ from model.guides import (
)
from model.platforms import load_platform_config
from model.registry import load_platform_registry
from packs.crossref import FileConsumers
from packs.consumers import FileConsumers
from sitegen import markup, steps as sitesteps
from sitegen.config import RELEASE_URL
from sitegen.guidepage import NO_ZIP_FAQ, devices_meta, first_screen_words, get_page_link