summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-02-13 11:52:26 +0100
committerJonas Smedegaard <dr@jones.dk>2024-02-25 10:00:09 +0100
commit4f5bc96f3a4252a686d75835f4c9f91f6ef5c7bd (patch)
treeb51294d148dffcb7ba2e07b32526aa8586864e05
parentf39ada62a0f8c904f2d35339d6142331d5be588d (diff)
add make targets pad-*
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b5d6674..d3677b2 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,9 @@ BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/
ARTICLES = learn code use
+export HEDGEDOC_COOKIES_FILE = $(CURDIR)/cookies.txt
+export HEDGEDOC_SERVER = https://pad.degrowth.net/
+
all: preview
preview:
@@ -29,6 +32,26 @@ 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: $(ARTICLES:%=pad-export-%)
+
+pad-export-learn:
+ hedgedoc export --md /CP1pFdg_QlGiYxtKc9IHBg learn/index.qmd
+
+pad-export-code:
+ hedgedoc export --md /8QGRP0iTRwe7hFmoAX4QnA code/index.qmd
+
+pad-export-use:
+ hedgedoc export --md /aFt_nNkYTQibl0CQrBJhtQ code/index.qmd
+
+$(ARTICLES:%=pad-import-%): pad-import-%:
+ hedgedoc import $*/index.qmd
+
tidy:
bibclean -max-width 0 ref.bib > ref.bib~
mv ref.bib~ ref.bib