When Pagefind releases a new version, follow these steps to update Scolta's PHP indexer compatibility:
./scripts/generate-concordance-fixtures.sh X.Y.ZThis downloads the new Pagefind binary, builds the test corpus, and stores the output in tests/fixtures/concordance/reference/.
vendor/bin/phpunit tests/Concordance/- If fragment comparison fails: the PHP indexer extracts content differently than Pagefind. Fix the content extraction.
- If entry.json comparison fails: version or page count mismatch. Update
SupportedVersions::BUNDLED_VERSION. - If structural tests fail: file format may have changed. Investigate Pagefind's release notes.
Edit src/Index/SupportedVersions.php:
public const BUNDLED_VERSION = 'X.Y.Z';
public const TESTED_VERSIONS = ['1.3.0', '1.4.0', '1.5.0', 'X.Y.Z'];vendor/bin/phpunitAll tests must pass.
git add tests/fixtures/concordance/reference/ src/Index/SupportedVersions.php
git commit -m "Upgrade Pagefind compatibility to X.Y.Z"