mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-26 21:57:24 -05:00
fix: open each part of a split list on its own
The files-to-source table outgrew one page and split in two. Both parts opened on the same intro, which is the page description, and validate_site refused the duplicate. Each part now opens on "Part n of N.". The element-budget exception for the unsplit table is gone: the parts hold 8,987 and 7,674 elements.
This commit is contained in:
1 parent
c826e0fc05
commit
77d7ab36de
2 files changed
+5
-5
No files matched your search
@@ -2755,9 +2755,12 @@ def _list_pages(
|
||||
stems = [stem + (f"-{n}" if n > 1 else "") for n in range(1, len(runs) + 1)]
|
||||
for n, (here, run) in enumerate(zip(stems, runs), 1):
|
||||
part = f" (part {n} of {len(runs)})" if len(runs) > 1 else ""
|
||||
# The page description is the opening of the intro: parts sharing
|
||||
# one read as duplicates to search and to validate_site.
|
||||
opening = f"Part {n} of {len(runs)}. {intro}" if len(runs) > 1 else intro
|
||||
moved[here] = "\n".join([
|
||||
"---", "level: reference", *_parent_front_matter(parent), "---", "",
|
||||
f"# {title}{part}", "", intro, "",
|
||||
f"# {title}{part}", "", opening, "",
|
||||
*([", ".join(f"[part {i}]({other}.md)" if other != here else f"part {i}"
|
||||
for i, other in enumerate(stems, 1)), ""] if len(runs) > 1 else []),
|
||||
*head, *run, "", _date_line(),
|
||||
|
||||
Reference in new issue
Block a user