From cef88ee459fd2b0e22a2c997f858791fe0d5182e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 22 Nov 2024 14:39:08 +0100 Subject: book assets as submodule --- book/.gitignore | 1 - book/assets | 1 + book/book.typ | 2 +- book/readme.md | 6 ++---- 4 files changed, 4 insertions(+), 6 deletions(-) create mode 160000 book/assets (limited to 'book') 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 index 00000000..830ea1c0 --- /dev/null +++ b/book/assets @@ -0,0 +1 @@ +Subproject commit 830ea1c06a116e999f5a00a84574715aa5cd1bfc 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`. -- cgit v1.2.3-70-g09d2