refactor: carry the site's page state on the run

Eleven module globals in descriptions, decorate, emulatorpage and
emulatorcards held what one build records about its pages, filled by
build.py and as a side effect of two renderers. They now live on a
PageRegistry the run carries and passes to the renderers and to
decorate_markdown_pages. get/ pages return their date (get_page_data)
instead of writing it, and a card reads the data directory members
from its CardSources. A second build in one process no longer inherits
the first one's maps, and tests build the input instead of patching
globals.
This commit is contained in:
Abdessamad Derraz committed 2026-11-23 23:07:32 +01:00
1 parent 6f8e2f90c1
commit 6e8ef2650f
19 files changed
+253 -242

No files matched your search

+1
View File
@@ -178,6 +178,7 @@ on:
- "scripts/sitegen/nav.py"
- "scripts/sitegen/pagemarkdown.py"
- "scripts/sitegen/pageprep.py"
- "scripts/sitegen/pageregistry.py"
- "scripts/sitegen/parts.py"
- "scripts/sitegen/places.py"
- "scripts/sitegen/platformfiles.py"