Skip to content

Commit e3a3fbb

Browse files
committed
feat(web/landing): add Flow PHP 0.41.0 release blog post
- New 0.41.0 release post with Telemetry/Symfony highlights and code samples - Widen blog post and changelog to screen-2xl, add figure/image prose styles - Add optimize-images Just task (oxipng/jpegoptim) and nix shell deps - Losslessly recompress landing images
1 parent 59ca103 commit e3a3fbb

25 files changed

Lines changed: 314 additions & 12 deletions

File tree

Justfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@ phar:
8686
wasm: && phar
8787
cd wasm && ./build.sh
8888

89+
# Idempotent — both tools recompress losslessly, so it is safe to re-run over the whole folder.
90+
# Requires nix-shell (oxipng/jpegoptim).
91+
# Losslessly optimize landing-site images in place: oxipng for PNG, jpegoptim for JPEG.
92+
optimize-images:
93+
#!/usr/bin/env bash
94+
set -euo pipefail
95+
images_dir="web/landing/assets/images"
96+
oxipng --opt max --strip safe --recursive "$images_dir"
97+
while IFS= read -r -d '' f; do
98+
jpegoptim --strip-all --all-progressive "$f"
99+
done < <(find "$images_dir" -type f \( -iname '*.jpg' -o -iname '*.jpeg' \) -print0)
100+
89101
# Build the Docker image.
90102
docker:
91103
docker buildx build -t flow-php/flow:latest . --progress=plain --load

shell.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ pkgs.mkShell {
8181
pkgs.actionlint
8282
pkgs.zizmor
8383
pkgs.just
84+
pkgs.oxipng
85+
pkgs.jpegoptim
8486
]
8587
++ pkgs.lib.optional with-blackfire pkgs.blackfire
8688
++ pkgs.lib.optionals with-wasm [

web/landing/assets/codemirror/completions/dsl.js

Lines changed: 128 additions & 8 deletions
Large diffs are not rendered by default.
-41.9 KB
Loading
6 KB
Binary file not shown.
76 KB
Loading
114 KB
Loading
142 KB
Loading
66.2 KB
Loading
101 KB
Loading

0 commit comments

Comments
 (0)