Show a trail's other links, and the lists the site was checked against
A trail's page lists its [[link]] entries under the main buttons, as "More about this trail": the page's title, then who publishes it. The official site stays the main button. A trail with no official site gets its first link in that place, named by its publisher, and that link is not repeated in the list. The About page shows the README's new "Other lists of long trails" section. Tests updated for the new trail counts, and for there being no trail left that spans a whole country. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
5c716c3c62
commit
94015cd86b
8 files changed
+108
-14
No files matched your search
@@ -142,7 +142,7 @@ class SectionsTest(unittest.TestCase):
|
||||
self.assertIn("Inclusion rule", sections)
|
||||
self.assertIn("A long trail here is a named, continuous walking route",
|
||||
sections["Inclusion rule"])
|
||||
self.assertEqual(len(sections), 10)
|
||||
self.assertEqual(len(sections), 11)
|
||||
|
||||
|
||||
class ParagraphsTest(unittest.TestCase):
|
||||
@@ -394,7 +394,7 @@ class RealDocumentsTest(unittest.TestCase):
|
||||
counter = TableCounter()
|
||||
counter.feed(md.render(read_doc("README.md")))
|
||||
counter.close()
|
||||
self.assertEqual(counter.counts, [131, 47])
|
||||
self.assertEqual(counter.counts, [132, 50])
|
||||
|
||||
def test_readme_num_class_present(self):
|
||||
self.assertIn('class="num"', md.render(read_doc("README.md")))
|
||||
|
||||
Reference in new issue
Block a user