Rebuilt from the exact zed-industries/zed @ 8c74db00c4053d6c0a9037863d7bd048658da4ca tree (previous orphan was based on a stale/wrong fetch). Same 3-file patch: - serial.rs: add SerialKind::KeyboardEnter - client.rs: store wl_keyboard.enter serial; add latest_serial_of() - window.rs: activate() uses keyboard-enter serial (Mutter focus gate) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
33 lines
620 B
Bash
Executable File
33 lines
620 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
usage() {
|
|
echo "Usage: $0 [local|all] [--help]"
|
|
echo " local Only check local links (default)"
|
|
echo " all Check all links including remote ones"
|
|
exit 1
|
|
}
|
|
|
|
check_mode="local"
|
|
if [ $# -eq 1 ]; then
|
|
case "$1" in
|
|
"local") check_mode="local" ;;
|
|
"all") check_mode="all" ;;
|
|
"--help") usage ;;
|
|
*) echo "Invalid argument: $1" && usage ;;
|
|
esac
|
|
else
|
|
usage
|
|
fi
|
|
|
|
cargo install lychee
|
|
cd "$(dirname "$0")/.."
|
|
|
|
if [ "$check_mode" = "all" ]; then
|
|
lychee --no-progress './docs/src/**/*'
|
|
else
|
|
lychee --exclude '^http' './docs/src/**/*'
|
|
fi
|
|
#
|