mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-21 03:09:08 -05:00
fix: keep bold labels in nested profile blocks
The nested list structure stays, so each label renders bold instead of showing its asterisks. The platform details block becomes a list as well: its labels were paragraphs followed by items with no blank line between them. validate_site now reports any asterisks that reach a rendered page outside code, which runs in the deploy and in pipeline step 8b.
This commit is contained in:
1 parent
f8fc9a672e
commit
721622c2ea
5 files changed
+63
-9
No files matched your search
@@ -100,9 +100,9 @@ class PlatformDetails(unittest.TestCase):
|
||||
"root": "<system_dir>/x",
|
||||
}}}
|
||||
)
|
||||
self.assertIn(" - extensions_tried: .bin, .zip", lines)
|
||||
self.assertIn(" - hle_available: no", lines)
|
||||
self.assertIn(" - root: <system_dir>/x", lines)
|
||||
self.assertIn(" - extensions_tried: .bin, .zip", lines)
|
||||
self.assertIn(" - hle_available: no", lines)
|
||||
self.assertIn(" - root: <system_dir>/x", lines)
|
||||
|
||||
|
||||
class RenderedSiteValidation(unittest.TestCase):
|
||||
@@ -165,6 +165,28 @@ class RenderedSiteValidation(unittest.TestCase):
|
||||
|
||||
|
||||
|
||||
class UnrenderedMarkdown(unittest.TestCase):
|
||||
"""The clownmdemu analysis block reached readers as "- **bios_hle:**
|
||||
True": a list indented one level too deep, read as code."""
|
||||
|
||||
setUp = RenderedSiteValidation.setUp
|
||||
tearDown = RenderedSiteValidation.tearDown
|
||||
|
||||
def test_asterisks_in_prose_fail_and_in_code_pass(self):
|
||||
(self.site / "index.html").write_text(
|
||||
_page("Home", "Unique home description.", "<p>- **bios_hle:** True</p>"),
|
||||
encoding="utf-8",
|
||||
)
|
||||
issues = validate_site(self.site, self.config)
|
||||
self.assertTrue(any("markdown left unrendered" in issue for issue in issues))
|
||||
(self.site / "index.html").write_text(
|
||||
_page("Home", "Unique home description.",
|
||||
"<pre><code>a = 2 ** 8</code></pre><code>**/*.py</code>"),
|
||||
encoding="utf-8",
|
||||
)
|
||||
self.assertEqual(validate_site(self.site, self.config), [])
|
||||
|
||||
|
||||
class EveryTestDependencyIsInstalledInCi(unittest.TestCase):
|
||||
"""The markdown rendering test skipped on every CI run: the test job
|
||||
installed pyyaml and jsonschema only. A test that skips where it is
|
||||
|
||||
Reference in new issue
Block a user