From 5215fd05ebecdf5a86758856ad17edc216105bb7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 3 Jun 2024 07:10:46 +0200 Subject: move tags to independent pages --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 06e29ea..d6f72f8 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ all: preview preview: quarto preview -render: +render: $(ANNOT_TAGS:%=annot/%/index.qmd) quarto render publish: @@ -53,11 +53,14 @@ annot-sync: annot-render: gooseberry make --uri urn:x-pdf:923a0c10ff1cdb4db772a8a948176c52 --clear --force + +$(ANNOT_TAGS:%=annot/%/index.qmd): annot/%/index.qmd: ~/gooseberry/%.md + @mkdir --parents $(dir $@) perl -p \ -e 's/^#(?=\s)/##/g;' \ -e 's/^(?:Group|Created|Tags):.*\K/ /g;' \ -e 's/^\[See in context\].*//g;' \ - $(ANNOT_TAGS:%=~/gooseberry/%.md) > worlding/_annot.md + $< > $@ cal-all: cal-fetch cal-render cal-publish -- cgit v1.2.3