feat: put the wanted page in the site header

A Wanted files link sits in the bar on every page and every width, beside the search and menu buttons on a phone, current on its own page. Below 27rem the site name is kept for screen readers only. files/ and wanted/ link each other in one line.
This commit is contained in:
Abdessamad Derraz committed 2026-11-13 12:26:18 +01:00
1 parent 4a9317cb4c
commit e6738e591b
5 files changed
+94 -3

No files matched your search

+9
View File
@@ -300,6 +300,15 @@ class ThePageReadsTheListAsTheResolverDoes(_World):
self.assertEqual(self._page(WANTED, "b.bin")["issue"], validate_pr.large_file_issue_url(result))
class TheTwoPagesLinkEachOther(unittest.TestCase):
"""files/ checks any file, wanted/ the ones the collection lacks: each
sends a reader to the other in one line."""
def test_links(self):
self.assertIn("[See if it is wanted](../wanted.md)", generate_site.generate_files_page())
self.assertIn("[Find or check a file](files/index.md)", sitewanted.page(1))
class ThePublishedList(unittest.TestCase):
"""The list generate_site.py wrote, against the collection: nothing it
holds, every folder by validate_pr, and light enough for a phone."""