makefile: add serve target to quickly preview changes

This commit is contained in:
Hoang Nguyen 2023-07-11 00:00:00 +07:00
parent 6c245c45b7
commit 1bc2fa4484
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
2 changed files with 10 additions and 3 deletions

View File

@ -17,5 +17,12 @@ gen:
minify:
@minify -r ./$(OUTPUT_DIR) -o .
.PHONY: serve
serve: gen minify
@podman run --rm -it \
-p 8080:80 \
-v ./$(OUTPUT_DIR):/usr/share/nginx/html:ro \
docker.io/library/nginx:stable-alpine
.PHONY: bundle
bundle: clean gen minify

View File

@ -24,9 +24,9 @@
<main>
<h1>FollieHiyuki's personal web assets</h1>
<p>
Hi! Welcome to my "Content Delivery Network" <s>freeloading</s> running on Cloudflare. The files served here are used to power my websites, including
<a href="https://www.folliehiyuki.com" rel="author noopener">folliehiyuki.com</a> and
<a href="https://docs.folliehiyuki.com" rel="noopener">docs.folliehiyuki.com</a>. The source code is avaliable to see on
Hi! Welcome to my <i>"Content Delivery Network"</i> <s>freeloading</s> running on Cloudflare. The files served here are used to power my websites, including my
<a href="https://www.folliehiyuki.com" rel="author noopener">personal blog</a> and
<a href="https://docs.folliehiyuki.com" rel="noopener">handbook</a>. The source code is avaliable to see on
<a href="https://gitlab.com/FollieHiyuki/cdn" rel="noreferrer nofollow">GitLab</a>.
</p>
<h2>Packages</h2>