]> git.rocketbowman.com Git - jetsam.git/commitdiff
refactor: Move defaults to default.yml.
authorKyle Bowman <kylebowman14@gmail.com>
Sun, 6 Oct 2024 16:18:52 +0000 (12:18 -0400)
committerKyle Bowman <kylebowman14@gmail.com>
Sun, 6 Oct 2024 16:18:52 +0000 (12:18 -0400)
Makefile
defaults.yml [new file with mode: 0644]

index fddc8e94b4aec90d92074ecf9fc77000bacb8c84..04a35bc600a8222c4c0904cf21e5d2df4f9916f7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,11 +15,9 @@ index:
 $(BUILD_DIR)/%: $(SRC_DIR)/%.md 
        @mkdir -p $(dir $@)
        @pandoc \
-               --from=markdown+wikilinks_title_before_pipe \
                --to=html5 \
                --standalone \
-               --css=..././assets/css/normalize.css \
-               --css=../../assets/css/space-sakura.css \
+               --defaults=./defaults.yml \
                --output=$@ $<
        @echo "Building $@ from $<"
 
diff --git a/defaults.yml b/defaults.yml
new file mode 100644 (file)
index 0000000..fc7a2d3
--- /dev/null
@@ -0,0 +1,6 @@
+from: markdown+wikilinks_title_before_pipe
+css:
+  # ${.} is robust on build, but probably not for deployment
+  - ${.}/assets/css/normalize.css
+  - ${.}/assets/css/space-sakura.css
+