From 3573347c0d77da74a838b0a03614a680023db51f Mon Sep 17 00:00:00 2001 From: nat Date: Sun, 11 May 2025 19:55:16 -0700 Subject: [PATCH] fix build.sh not creating www/data; update syntax-hl to not include line numbers on other hosts --- www/build.sh | 1 + www/src/scripts/syntax-hl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/www/build.sh b/www/build.sh index 1bd0437..a80c62b 100755 --- a/www/build.sh +++ b/www/build.sh @@ -1,4 +1,5 @@ #!/bin/bash +mkdir data (cd src; hy build.hy) mkdir -p site/{html,assets,scripts} cp -r src/output/* site/html diff --git a/www/src/scripts/syntax-hl b/www/src/scripts/syntax-hl index e945429..061056d 100755 --- a/www/src/scripts/syntax-hl +++ b/www/src/scripts/syntax-hl @@ -1,7 +1,7 @@ #!/bin/bash tmpfile=$(mktemp) -timeout 0.6s nvim "$1" -c "autocmd LspAttach * execute 'TOhtml | w! ${tmpfile} | qa!'" >/dev/null || nvim "$1" -c "TOhtml | w! ${tmpfile} | qa!" >/dev/null +timeout 0.6s nvim "$1" -c "set nonu | set nornu" -c "autocmd LspAttach * execute 'TOhtml | w! ${tmpfile} | qa!'" >/dev/null || nvim "$1" -c "set nonu | set nornu" -c "TOhtml | w! ${tmpfile} | qa!" >/dev/null cat "${tmpfile}" | pup --pre 'style, pre' | sed '/^$/d'