diff options
author | metamuffin <metamuffin@disroot.org> | 2024-11-22 14:39:08 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-11-22 14:39:08 +0100 |
commit | cef88ee459fd2b0e22a2c997f858791fe0d5182e (patch) | |
tree | c38ce1bbaa2882b0f5b5b3b101def690a13a7813 | |
parent | a73f0b1a035279eaba5ee90adfadf0dbd5e2fd17 (diff) | |
download | hurrycurry-cef88ee459fd2b0e22a2c997f858791fe0d5182e.tar hurrycurry-cef88ee459fd2b0e22a2c997f858791fe0d5182e.tar.bz2 hurrycurry-cef88ee459fd2b0e22a2c997f858791fe0d5182e.tar.zst |
book assets as submodule
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | book/.gitignore | 1 | ||||
m--------- | book/assets | 0 | ||||
-rw-r--r-- | book/book.typ | 2 | ||||
-rw-r--r-- | book/readme.md | 6 |
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`. |