Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
docs: the press recipe names the date its coverage sentence states
xbsheng5164da0a4fca
diff --git a/docs/workflows/press.md b/docs/workflows/press.mdindex 87e4f4bf5..ca041c887 100644--- a/docs/workflows/press.md+++ b/docs/workflows/press.md@@ -13,12 +13,21 @@("ve N yayın daha: N ülkeden N makale", the country count before the article total) - and `MORE` in`tools/readme_featured.py`. Every page shows the same picture, so a translation that copies it states thesame numbers in its own words: the pages named here are the ones that carry it today, not the rule.- The end of each page's story section repeats the three numbers once more, in prose ("The coverage: 351- articles from 46 countries and 229 videos on YouTube and Bilibili, all in `docs/PRESS.md`"), and the same- test reads that sentence too: the page states the count twice, once in the card's alt text and once in- that sentence, so a reader who sees 352 in the picture and 351 in the story section is looking at a page- that was half updated. Leave the counts out of the sentence and the test says the paragraph no longer- carries them. That paragraph is also read on the two front pages that have it without the card:+ The end of each page's story section repeats the three numbers once more, in prose ("The coverage:+ <articles> articles from <countries> countries and <videos> videos on YouTube and Bilibili, all in+ `docs/PRESS.md`"), and the same test reads that sentence too: the page states the count twice, once in+ the card's alt text and once in that sentence, so a reader who sees one number in the picture and+ another in the story section is looking at a page that was half updated. Leave the counts out of the+ sentence and the test says the paragraph no longer carries them. That sentence dates the numbers as+ well, in a parenthetical just after the press link ("(numbers as of 31 October 2026)", "(Stand: 31.+ Oktober 2026)", "(stand 31 oktober 2026)", "(станом на 31 жовтня 2026 року)", "(rakamlar 31 Ekim 2026+ itibarıyla)", "(dados de 31 de outubro de 2026)"), so the day moves with the sweep: it may not name a+ day earlier than the newest article row in `docs/PRESS.md`, the rule step 3 already applies to "views+ as of", because a count read on the 30th cannot hold an article published on the 31st.+ `tests/test_press_as_of_date.py` reads that parenthetical in each page's own words, off every page whose+ story paragraph carries the link, and a page that writes none is not judged: `README.he.md` dates the+ stars it had in the sentence before, and its coverage sentence ends at the link. That paragraph is also+ read on the two front pages that have it without the card:`README.pt-BR.md` and the Hebrew `README.he.md` show no `docs/card.jpg`, so their numbers are held to`README.md`'s alt text and to `docs/PRESS.md` on their own, and their coverage clause has to open with acolon like the others ("A repercussão: 412 artigos ...", "סיקור בתקשורת: 412 כתבות ..."), since that colondiff --git a/tests/test_press_as_of_date.py b/tests/test_press_as_of_date.pyindex 73270ce1a..9e59dd378 100644--- a/tests/test_press_as_of_date.py+++ b/tests/test_press_as_of_date.py@@ -26,6 +26,12 @@ A page that carries no such parenthetical is not judged: README.he.md writes itsonly the parenthetical that follows the link is what keeps that sentence - a statement about a star count,not about the press numbers - out of this check.+The recipe that a press PR follows said nothing about this day: docs/workflows/press.md step 2 listed the+places the counts live and step 3 stated the video table's "views as of" rule, so a contributor+bumping the counts left the date on the previous sweep and met this file with no line in the recipe to+point at. Step 2 states it now, and RecipeTest holds the recipe to naming this check, the rule, and every+page that dates its numbers today.+Run from the repository root: python3 -m unittest discover -s tests -v"""import re@@ -36,6 +42,7 @@ import unittestROOT = Path(__file__).resolve().parents[1]PRESS = ROOT / "docs" / "PRESS.md"+PRESS_RECIPE = ROOT / "docs" / "workflows" / "press.md"# The link every front page uses to point at the press list, in the story paragraph.PRESS_LINK = re.compile(r"\[docs/PRESS\.md\]\([^)]*\)")@@ -199,6 +206,42 @@ class TreeTest(unittest.TestCase):f"{name} dates the press numbers in a year the lists do not cover")+class RecipeTest(unittest.TestCase):+ """docs/workflows/press.md tells a press PR to move the date, as it tells it to move the counts."""++ def recipe_step(self):+ """Step 2 of the recipe, the one that lists the places the numbers live, on one line.++ The step wraps at about 100 columns, so a phrase it states can straddle two lines; the words are+ what a reader takes from it, not where the break fell.+ """+ text = PRESS_RECIPE.read_text(encoding="utf-8")+ return " ".join(text.split("\n2. ")[1].split("\n3. ")[0].split())++ def test_the_recipe_names_the_check_that_reads_the_date(self):+ # The date landed with this file and the recipe was not told: step 2 sent a contributor to the+ # places the counts live and said nothing about the parenthetical, so following it to the letter+ # left the day on the previous sweep and this file red with no line in the recipe to point at.+ step = self.recipe_step()+ self.assertTrue("tests/test_press_as_of_date.py" in step,+ "docs/workflows/press.md step 2 does not name the check that reads the dated clause")++ def test_the_recipe_states_the_rule_the_day_is_held_to(self):+ step = self.recipe_step()+ self.assertTrue("newest article row" in step,+ "docs/workflows/press.md step 2 does not say the day may not be earlier than the "+ "newest article row in docs/PRESS.md")++ def test_the_recipe_names_every_page_that_dates_its_numbers(self):+ # Same rule as the counts beside it: the pages come from the tree, so a translation that copies+ # the dated clause is named here without this test being edited first.+ step = self.recipe_step()+ for name, _ in dated_pages():+ with self.subTest(readme=name):+ self.assertTrue(name in step,+ f"docs/workflows/press.md step 2 does not name {name}, which dates its numbers")++class ReaderTest(unittest.TestCase):"""The clause is read in every language the pages write it in, and only where it dates the numbers."""