mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-24 20:59:03 -05:00
fix: align the suite with the site layout
The redesign moved the technical questions to technical-faq.md, made the Get your files rows generated from each platform key and reduced getting-started.md to links. Tests now read those places: the pack-row test reads the rendered page. The new site scripts go through run_cli and refuse abbreviated options. The three maintenance image tools are exempt by name from the build dependency rule: their output is committed and the build only reads it. siteguides.py now triggers the site deploy, and the recipe counts match the store.
This commit is contained in:
1 parent
2870c72ccb
commit
2d2addd6d2
12 files changed
+66
-63
No files matched your search
@@ -172,7 +172,7 @@ def fetch_icons() -> None:
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(description=__doc__.split("\n\n")[0])
|
||||
parser = argparse.ArgumentParser(description=__doc__.split("\n\n")[0], allow_abbrev=False)
|
||||
parser.add_argument("--only", choices=("logos", "icons"), help="fetch one kind only")
|
||||
args = parser.parse_args()
|
||||
if args.only in (None, "logos"):
|
||||
@@ -184,4 +184,6 @@ def main() -> None:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
from common import run_cli
|
||||
|
||||
run_cli(main)
|
||||
@@ -74,6 +74,7 @@ from generate_readme import (
|
||||
from provenance_report import build_report, distinct_missing
|
||||
from siteexports import generate_exports_page, load_export_reports
|
||||
from siteguides import (
|
||||
Guide,
|
||||
ALSO_RUNS,
|
||||
DEVICE_GROUPS,
|
||||
GROUP_ANCHORS,
|
||||
@@ -5535,7 +5536,7 @@ def _mkdocs_config(docs: Path, text: str) -> tuple[Path, str]:
|
||||
_OS_NAMES = {"windows": "Windows", "darwin": "macOS", "linux": "Linux"}
|
||||
|
||||
|
||||
def _runs_on(entry: dict, guide) -> str:
|
||||
def _runs_on(entry: dict, guide: Guide) -> str:
|
||||
"""Where a setup runs, read from the systems the installer detects it on."""
|
||||
if guide.on_card:
|
||||
return "SD card, filled from a computer"
|
||||
@@ -5552,7 +5553,7 @@ def _runs_on(entry: dict, guide) -> str:
|
||||
return ", ".join(names)
|
||||
|
||||
|
||||
def _folder_cell(name: str, guide, prefix: str = "") -> str:
|
||||
def _folder_cell(name: str, guide: Guide, prefix: str = "") -> str:
|
||||
"""The BIOS folder in a table cell, or a link where it depends on the system."""
|
||||
if len(guide.folders) > 3:
|
||||
return f"Depends on the system: [listed on its page]({prefix}platforms/{name}.md#where-the-files-go)"
|
||||
|
||||
@@ -45,4 +45,6 @@ def main() -> None:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
from common import run_cli
|
||||
|
||||
run_cli(main)
|
||||
@@ -131,4 +131,6 @@ def main() -> None:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
from common import run_cli
|
||||
|
||||
run_cli(main)
|
||||
@@ -744,7 +744,9 @@ def write_svgs(directory: Path) -> list[Path]:
|
||||
def main() -> None:
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser(description="Write the site diagrams as SVG files.")
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Write the site diagrams as SVG files.", allow_abbrev=False
|
||||
)
|
||||
parser.add_argument("--output-dir", default="tmp/diagrams", help="default: %(default)s")
|
||||
args = parser.parse_args()
|
||||
for path in write_svgs(Path(args.output_dir)):
|
||||
@@ -752,4 +754,6 @@ def main() -> None:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
from common import run_cli
|
||||
|
||||
run_cli(main)
|
||||
Reference in new issue
Block a user