-
Notifications
You must be signed in to change notification settings - Fork 17
/
justfile
22 lines (15 loc) · 891 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
default: zola-serve
init:
git submodule update --init --recursive
dev *ARGS: init
zola serve --drafts --interface 127.0.0.1 --port 8080 --base-url localhost {{ARGS}}
dev-open *ARGS: init
zola serve --drafts --interface 127.0.0.1 --port 8080 --base-url localhost --open {{ARGS}}
zola-install:
docker pull ghcr.io/getzola/zola:v0.16.0
zola-serve: zola-install
docker run -i -u "$(id -u):$(id -g)" -v $PWD:$PWD --workdir $PWD -p 8080:8080 ghcr.io/getzola/zola:v0.16.0 serve --interface 0.0.0.0 --port 8080 --base-url localhost
line-count:
tokei . -e themes/ -e public/
link-grep:
rg "(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})" ./content/ -g '*.md' -o --trim -I --pcre2 | sort -u > links.log