summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-11-22 14:39:08 +0100
committermetamuffin <metamuffin@disroot.org>2024-11-22 14:39:08 +0100
commitcef88ee459fd2b0e22a2c997f858791fe0d5182e (patch)
treec38ce1bbaa2882b0f5b5b3b101def690a13a7813
parenta73f0b1a035279eaba5ee90adfadf0dbd5e2fd17 (diff)
downloadhurrycurry-cef88ee459fd2b0e22a2c997f858791fe0d5182e.tar
hurrycurry-cef88ee459fd2b0e22a2c997f858791fe0d5182e.tar.bz2
hurrycurry-cef88ee459fd2b0e22a2c997f858791fe0d5182e.tar.zst
book assets as submodule
-rw-r--r--.gitmodules3
-rw-r--r--book/.gitignore1
m---------book/assets0
-rw-r--r--book/book.typ2
-rw-r--r--book/readme.md6
5 files changed, 6 insertions, 6 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 00000000..4336bd05
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "book/assets"]
+ path = book/assets
+ url = https://codeberg.org/hurrycurry/book-assets
diff --git a/book/.gitignore b/book/.gitignore
index d1922c9b..433f5ad9 100644
--- a/book/.gitignore
+++ b/book/.gitignore
@@ -1,4 +1,3 @@
/*.pdf
/book.json
-/book-repo
/out
diff --git a/book/assets b/book/assets
new file mode 160000
+Subproject 830ea1c06a116e999f5a00a84574715aa5cd1bf
diff --git a/book/book.typ b/book/book.typ
index 79e3f7eb..b23f3e77 100644
--- a/book/book.typ
+++ b/book/book.typ
@@ -32,7 +32,7 @@
] else if elem.t == "page" [
#page(
background: if "background" in elem { image(
- "book-repo/"+elem.background+".jpeg",
+ "assets/"+elem.background+".jpeg",
fit: "cover", height: 100%, width: 100%
)} else { none }, [
#for e in elem.es [
diff --git a/book/readme.md b/book/readme.md
index 8e410718..2a72931f 100644
--- a/book/readme.md
+++ b/book/readme.md
@@ -2,7 +2,5 @@
## Building
-The book is built with Typst and uses imagery from the recipe-book repository.
-These are expected to be accessible at `book-repo/____.jpeg`, so symlinking or
-cloning it as book-repo should suffice. Then just `make` or for previewing just
-`make out/book.xx.pdf`.
+The book is built with Typst and uses imagery from the book-assets submodule.
+Then just `make` or for previewing just `make out/book.xx.pdf`.