mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-03 14:58:51 -06:00
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:
1 parent
cdbde88017
commit
3344cfd2fb
35 files changed
+806
-768
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user