mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-13 13:33:52 -06:00
docs: shorten the no-pack line of the notes
This commit is contained in:
1 parent
d5c2ba266f
commit
f4446ab313
2 files changed
+3
-5
No files matched your search
@@ -97,16 +97,14 @@ def without_pack(platforms_dir: str) -> list[str]:
|
||||
def no_pack_paragraph(platforms_dir: str) -> list[str]:
|
||||
"""One paragraph naming the setups served by the command alone. The
|
||||
packs published are the most downloaded ones (wiki/release-process.md,
|
||||
"Which platforms get a pack"). The command reads the install manifest,
|
||||
which the pack builder writes from the same resolution as the pack."""
|
||||
"Which platforms get a pack")."""
|
||||
names = without_pack(platforms_dir)
|
||||
if not names:
|
||||
return []
|
||||
listed = ", ".join(names[:-1]) + f" and {names[-1]}" if len(names) > 1 else names[0]
|
||||
return [
|
||||
("Only the most used setups have a pack, to keep the release small."
|
||||
f" For {listed}, use the command above. It reads the same file list a pack"
|
||||
" is built from."),
|
||||
f" For {listed}, use the command above."),
|
||||
"",
|
||||
]
|
||||
|
||||
|
||||
@@ -319,7 +319,7 @@ class TheReleaseNotesNameTheSetupsWithoutAZip(unittest.TestCase):
|
||||
self.assertIn(name, paragraph)
|
||||
for name in ("RetroArch", "Batocera", "RomM"):
|
||||
self.assertNotIn(f" {name},", paragraph)
|
||||
self.assertIn("use the command above", paragraph)
|
||||
self.assertTrue(paragraph.endswith("use the command above."))
|
||||
self.assertLess(text.index("| Platform"), text.index(paragraph))
|
||||
self.assertLess(text.index(paragraph), text.index("### What changed"))
|
||||
|
||||
|
||||
Reference in new issue
Block a user