Skip to content

Commit 3846734

Browse files
committed
Fix CI: refresh asset manifest, golden fixture, and format ordering
The previous commit shipped three stale artifacts that the CI verify job catches and that I missed locally: - src/asset_manifest.py held a HTML_CACHE_VERSION that did not match the embedded sources (the fingerprint step had not been re-run after the last embed). lint_seo_cache.py compares the two and fails when they drift; refreshed by make build. - tests/fixtures/golden_examples.py was the pre-rewrite frozen catalog. It needs an intentional refresh after example rewrites; the five new pages and the cells added to existing pages were not yet reflected. Regenerated from load_examples() output. - scripts/format_examples.py FRONTMATTER_ORDER did not list the new scope_first_pass key, so the eight broad-surface pages that took the scope-down shortcut were reported as misformatted. Added it between doc_path and see_also so the formatter has a stable slot. The full local gauntlet now passes: embed-examples, fingerprint, verify-examples (under Python 3.13), quality-checks, unittest (39), ruff, lint_seo_cache, migration parity, format --check, git diff --check.
1 parent a6e678a commit 3846734

3 files changed

Lines changed: 8106 additions & 2906 deletions

File tree

scripts/format_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
ROOT = Path(__file__).resolve().parents[1]
1111
SOURCE_DIR = ROOT / "src" / "example_sources"
12-
FRONTMATTER_ORDER = ["slug", "title", "section", "summary", "doc_path", "see_also", "min_python", "version_sensitive", "version_notes"]
12+
FRONTMATTER_ORDER = ["slug", "title", "section", "summary", "doc_path", "scope_first_pass", "see_also", "min_python", "version_sensitive", "version_notes"]
1313

1414

1515
def toml_value(value: Any) -> str:

src/asset_manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Generated by scripts/fingerprint_assets.py. Do not edit by hand.
22
ASSET_PATHS = {'SITE_CSS': '/site.5f6f7da7c305.css', 'SYNTAX_JS': '/syntax-highlight.3b6c7f730d46.js', 'EDITOR_JS': '/editor.dd81f5171b14.js'}
3-
HTML_CACHE_VERSION = '845d5121fd3c'
3+
HTML_CACHE_VERSION = '6d04a8b5a41f'

0 commit comments

Comments
 (0)