feat: complete CHRNX responsive content states
This commit is contained in:
60 files changed
+1699
-22
No files matched your search
@@ -33,6 +33,37 @@ Run the configuration smoke test with:
|
||||
npm run test:smoke
|
||||
```
|
||||
|
||||
## Local visual review
|
||||
|
||||
Seed the local `wp-env` site with deterministic review content:
|
||||
|
||||
```sh
|
||||
./scripts/seed-test-content.sh
|
||||
```
|
||||
|
||||
The script accepts only `localhost` or `127.0.0.1`. It updates records marked
|
||||
with `_chrnx_fixture_key` and leaves unrelated local content alone. Repeated
|
||||
runs reuse the same pages and posts.
|
||||
|
||||
Rebuild the responsive portrait derivatives on macOS with `sips`, `cwebp`, and
|
||||
`avifenc`:
|
||||
|
||||
```sh
|
||||
./scripts/build-responsive-images.sh
|
||||
```
|
||||
|
||||
The PNG masters remain unchanged. WordPress serves 384 px and 768 px AVIF or
|
||||
WebP sources, with the PNG as a fallback.
|
||||
|
||||
Capture the approved local review routes with Chromium:
|
||||
|
||||
```sh
|
||||
node scripts/capture-visual-review.mjs
|
||||
```
|
||||
|
||||
The capture script rejects public hosts and writes its screenshots to
|
||||
`tmp/imagegen/`, which Git ignores.
|
||||
|
||||
Use `npm run env:stop` to stop the local WordPress environment.
|
||||
|
||||
If Homebrew's Docker CLI cannot find an existing standalone Compose v2 binary,
|
||||
|
||||
Reference in new issue
Block a user