fix build.sh not creating www/data; update syntax-hl to not include line numbers on other hosts

This commit is contained in:
2025-05-11 19:55:16 -07:00
parent d323b8fcbe
commit 3573347c0d
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
mkdir data
(cd src; hy build.hy) (cd src; hy build.hy)
mkdir -p site/{html,assets,scripts} mkdir -p site/{html,assets,scripts}
cp -r src/output/* site/html cp -r src/output/* site/html

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
tmpfile=$(mktemp) 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' cat "${tmpfile}" | pup --pre 'style, pre' | sed '/^$/d'