From d4750ca814e6175d5c4438fcb5157af24084eed8 Mon Sep 17 00:00:00 2001 From: funkpower Date: Fri, 18 Sep 2026 14:03:46 -0400 Subject: [PATCH] the README examples must not depend on a fetched menaion The checker isolated XDG_CONFIG_HOME and not XDG_DATA_HOME, so the two Ruthenian examples were verified against the MCI menaion this machine has fetched and CI does not. They passed here and failed there, which is the checker working: a reader running them after a fresh install gets the common menologion, and that is what the README now shows. Both examples still make their point. The commemorations are worded differently; the fast, the obligations and the contrast between them are identical either way. --- README.md | 8 ++++---- tests/readme-examples.py | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dbab64a..956d047 100644 --- a/README.md +++ b/README.md @@ -225,8 +225,8 @@ $ typikon -j ruthenian --no-typikon --days 4 --date 2026-02-16 🥬 Mon 16 Feb* no meat, fish, eggs or dairy Clean Monday — the first day of the… 🥬 Tue 17 Feb no meat, fish, eggs or dairy The Holy Great Martyr Theodore the… - 🥬 Wed 18 Feb* no meat, fish, eggs or dairy Our Holy Father Leo, Pope of Rome (461) - 🥬 Thu 19 Feb no meat, fish, eggs or dairy The Holy Apostle Archippus + 🥬 Wed 18 Feb* no meat, fish, eggs or dairy Our Holy Father Leo the Great, Pope… + 🥬 Thu 19 Feb no meat, fish, eggs or dairy The Holy Apostles Archippus and… * obligatory. Everything unmarked is customary and does not bind. ``` @@ -240,8 +240,8 @@ $ typikon -j ruthenian --typikon --days 4 --date 2026-02-16 ⛔ Mon 16 Feb* no food until evening Clean Monday — the first day of the… 🫒 Tue 17 Feb wine and oil permitted The Holy Great Martyr Theodore the… - 🥬 Wed 18 Feb* xerophagy — no oil or wine Our Holy Father Leo, Pope of Rome (461) - 🥬 Thu 19 Feb xerophagy — no oil or wine The Holy Apostle Archippus + 🥬 Wed 18 Feb* xerophagy — no oil or wine Our Holy Father Leo the Great, Pope… + 🥬 Thu 19 Feb xerophagy — no oil or wine The Holy Apostles Archippus and… * obligatory. Everything unmarked is customary and does not bind. ``` diff --git a/tests/readme-examples.py b/tests/readme-examples.py index 3ef95f3..b2a2921 100755 --- a/tests/readme-examples.py +++ b/tests/readme-examples.py @@ -51,9 +51,13 @@ def main(): print(f" {BINARY} not built; run cargo build --release", file=sys.stderr) return 77 env = dict(os.environ, COLUMNS="88") - # The examples must not depend on whatever this machine remembers. + # The examples must not depend on whatever this machine remembers, nor on + # a menaion this machine happens to have fetched. A reader running them + # after a fresh install has neither, and the README should show what they + # get: without this the Ruthenian examples passed here and failed in CI. env.pop("TYPIKON_JURISDICTION", None) env["XDG_CONFIG_HOME"] = str(ROOT / "target" / "readme-config") + env["XDG_DATA_HOME"] = str(ROOT / "target" / "readme-data") text = (ROOT / "README.md").read_text(encoding="utf-8") checked = bad = skipped = 0