- SSH_HOST = www-ruc@xayide.jones.dk
- SSH_BASE_PATH = public_websites/thoughtroam.abcde.../
- 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 definition
- #PAD_ARTICLES = worlding
- ARTICLES = waste worlding
- ONTOLOGIES = learn waste
- ONTOLOGIES_LEARN = tentacular bisected
- ONTOLOGIES_VERSION = 0.1
- GRAPHS = $(patsubst ex/%.ttl,%,$(wildcard ex/*.ttl))
- PERL_FILES = bin/biblatex-tidy bin/hedgedoc2quarto bin/xmp2rdfxml
- TIDY_MARKDOWN = worlding
- export HEDGEDOC_COOKIES_FILE = $(CURDIR)/cookies.txt
- export HEDGEDOC_SERVER = https://pad.degrowth.net/
- all: preview
- preview:
- quarto preview
- render:
- quarto render
- publish:
- rsync -avH --delete-after _site/ $(BASE_SSH)
- prepare: $(patsubst %,learn/$(ONTOLOGIES_VERSION)/%.ttl,core $(ONTOLOGIES_LEARN))
- learn/$(ONTOLOGIES_VERSION)/%.ttl: learn/%.ttl
- mkdir --parents learn/0.1
- perl -gp \
- -e 's,\b$(subst bisected,learn2sect,$(subst tentacular,learn10tac,$(subst core,learn,$*))):,:,g;' \
- -e 's,\Q$(BASE_URI)stub/foaf#,http://xmlns.com/foaf/0.1/,g;' \
- -e 's,\Q$(BASE_URI)stub/doap#,http://usefulinc.com/ns/doap#,g;' \
- -e 's,purl\.org/learn/\K(?=[^\d]),$(ONTOLOGIES_VERSION)/,g;' \
- -e 's,\n\s*owl:imports\s[^\n]+;(?=\n),,g;' \
- < $< > $@
- annot-all: annot-sync annot-render
- annot-sync:
- gooseberry sync
- 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
- cal-fetch:
- bin/cal-fetch.sh
- cal-render:
- bin/cal-publish.sh
- cal-publish:
- ssh $(SSH_HOST) mkdir -p $(SSH_BASE_PATH)events/
- rsync -avH --delete-after $(patsubst %,events/%,$(ARTICLES) superteam) $(BASE_SSH)events/
- pad-login:
- hedgedoc login --email
- pad-list:
- hedgedoc history
- pad-export-all: $(PAD_ARTICLES:%=pad-export-%)
- pad-export-worlding: ref.bib worlding/index.qmd \
- $(patsubst %,worlding/_%.qmd,baggrund teori_og_metode undersøgelser konklusion perspektivering kilder planer)
|