diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-08-03 13:22:07 +0300 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-08-03 13:22:07 +0300 |
| commit | 23821211e03cd69cf87b2f264b48e0125fcac29d (patch) | |
| tree | 42bd1a9fd7a8922a5351aed16309331d431acf7a /Makefile | |
| parent | 72a42e0449a0cbbbc455b36af9f53fc293c73fdf (diff) | |
Add gemini protocol
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 21 insertions, 5 deletions
@@ -1,21 +1,37 @@ .PHONY: all -all: +all: clean @echo "Building project..." ./update-linklog-json.sh - zola build + + # Build html + ln -s templates_html templates + zola build -o public_html + unlink templates || true + + # Build gemini + ln -s templates_gmi templates + zola build -o public_gmi + find public_gmi -type f -name '*.html' -exec sh -c \ + 'for html do mv "$$html" "$${html%.html}.gmi"; done' sh {} + + # Convert HTML blocks to gemtext + ./convert_gmi_html.py public_gmi + unlink templates || true .PHONY: dev dev: @echo "Starting development server..." ./update-linklog-json.sh - zola serve + ln -s templates_html templates + zola serve --drafts .PHONY: deploy deploy: @echo "Deploying project..." - rsync -rvzP --delete --chown 80:80 public/* $(RSYNC_TARGET) + rsync -rvzP --delete --chown 80:80 public_html/* $(RSYNC_TARGET_HTML) + rsync -rvzP --delete --chown 80:80 public_gmi/* $(RSYNC_TARGET_GMI) .PHONY: clean clean: @echo "Cleaning project..." - rm -rf public + unlink templates || true + rm -rf public* |
