mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-22 17:47:48 -06:00
docs: name sitegen.diagrams in the site comments
This commit is contained in:
1 parent
61547d08b3
commit
d4dfa18c9e
3 files changed
+5
-5
No files matched your search
@@ -109,7 +109,7 @@ def prime_system_icons(names: set[str]) -> None:
|
||||
def system_icon_markdown(manufacturer: str, console_name: str) -> str:
|
||||
"""Icon image for a system heading, empty when the site holds none.
|
||||
|
||||
The link names the upstream file: ``sitediagrams.localize_images``
|
||||
The link names the upstream file: ``sitegen.diagrams.localize_images``
|
||||
points it at the local copy, whose source is recorded beside it.
|
||||
"""
|
||||
name = console_icon_name(manufacturer, console_name)
|
||||
|
||||
@@ -4,8 +4,8 @@ Two things per tab, both drawn from data:
|
||||
|
||||
- The steps that differ by system, opening a terminal and pasting the line,
|
||||
as a drawing: one card per step, a pictogram and a short caption, drawn
|
||||
with sitediagrams' primitives and shown as its SVG files, one per layout
|
||||
and theme (sitediagrams.pictures). The text steps above it
|
||||
with sitegen.diagrams' primitives and shown as its SVG files, one per layout
|
||||
and theme (sitegen.diagrams.pictures). The text steps above it
|
||||
(platforms/_guides.yml, terminals) are the one text source: the images
|
||||
are alt="", so the page reads the steps once. The files say the same in
|
||||
their title and desc, for one opened on its own. The pictograms are
|
||||
@@ -250,7 +250,7 @@ def stem(tab: str) -> str:
|
||||
|
||||
|
||||
def steps_files() -> dict[str, str]:
|
||||
"""Every tab's drawing files, by name under sitediagrams.DIAGRAM_DIR."""
|
||||
"""Every tab's drawing files, by name under sitegen.diagrams.DIAGRAM_DIR."""
|
||||
return {name: text for tab in STEPS for name, text in diagram_files(stem(tab), _layouts(tab)).items()}
|
||||
|
||||
|
||||
|
||||
@@ -330,7 +330,7 @@ def _content_issues(page: Page, rel: str) -> list[str]:
|
||||
if page.empty_headers:
|
||||
messages.append(f"{page.empty_headers} table header cell(s) without text")
|
||||
if page.placeholders:
|
||||
# scripts/sitediagrams.py knows no diagram of this name.
|
||||
# scripts/sitegen/diagrams.py knows no diagram of this name.
|
||||
messages.append(f"image placeholders left unresolved: {page.placeholders[:3]}")
|
||||
if page.unrendered:
|
||||
# Bold that reached the reader as asterisks: a block indented
|
||||
|
||||
Reference in new issue
Block a user