fix: date pages in words and count setups once

Every page closed on a raw ISO stamp. It now reads data_as_of(), which
write_if_changed ignores as it ignored the old stamp. The diagram text
counts setups with setup_count(), and the data model page names the
Data and API page by its title.
This commit is contained in:
Abdessamad Derraz committed 2026-10-23 07:12:15 +02:00
1 parent bb13e7b5f9
commit 6cac923a91
3 files changed
+20 -12

No files matched your search

+1
View File
@@ -21,6 +21,7 @@ _TIMESTAMP_PATTERNS = [
# The decorated pages carry the same stamp again as a rendered element,
# and missing it rewrote every page on every run for the clock alone.
re.compile(r'<div class="rb-timestamp">[^<]*</div>'),
re.compile(r'<time datetime="[^"]*">Data as of [^<]*</time>'),
]
def write_if_changed(