Hub: the roadmap at /data/roadmap.json and items at hub#<id>, as Kira reads them
Kira (kira #10-#14) fetches https://playhorizon.dev/data/roadmap.json and links items as <hub>#<id>: the JSON moves there (readable from any origin) with the announce flag, and each item's anchor is its id. Ids the page uses itself (tabs, sections, headings) are refused by the check; a test keeps every id of the page unique, which caught the overview's headings sharing ids with the roadmap's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -121,6 +121,10 @@ class Rules(unittest.TestCase):
|
||||
self.assertTrue(any("link" in p for p in self.problems(links=["docs/nothing-here.md"])))
|
||||
self.assertTrue(any("link" in p for p in self.problems(links=["http://example.com"])))
|
||||
|
||||
def test_ids_are_free_anchors_of_the_hub(self):
|
||||
for taken in ("roadmap", "now", "h-next", "tab-board"):
|
||||
self.assertTrue(any("taken by the hub page" in p for p in self.problems(id=taken)), taken)
|
||||
|
||||
def test_flags_are_true_or_false(self):
|
||||
self.assertEqual(self.problems(announce=True), [])
|
||||
self.assertTrue(any("announce is true or false" in p for p in self.problems(announce="yes")))
|
||||
|
||||
Reference in New Issue
Block a user