aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e6b0ac4..84851fa 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,8 @@ BASE_SSH = $(SSH_HOST):$(SSH_BASE_PATH)
BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/
BASE_URI = https://thoughtroam.xn--abcdefghijklmnopqrstuvxyz-0fc0a81c.dk/
+ANNOT_TAGS = ontology reflection
+
#PAD_ARTICLES = worlding
ARTICLES = waste worlding
@@ -44,16 +46,18 @@ learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl
-e 's,\n\s*owl:imports\s[^\n]+;(?=\n),,g;' \
< $< > $@
-annot-all: annot-sync annot-fetch
+annot-all: annot-sync annot-render
annot-sync:
gooseberry sync
-annot-fetch:
- gooseberry view --uri urn:x-pdf:923a0c10ff1cdb4db772a8a948176c52 > worlding/_annot.md
-
annot-render:
gooseberry make --uri urn:x-pdf:923a0c10ff1cdb4db772a8a948176c52 --clear --force
+ 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