From 718fab2c56e837eb9a975228757096354445f318 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 24 Sep 2024 02:58:04 +0300 Subject: [PATCH] fix(mdbook): Handle generation of mdbook when book has more than 1 primary author --- rules/mdbook.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/mdbook.mk b/rules/mdbook.mk index 91d8932f..4f548a4c 100644 --- a/rules/mdbook.mk +++ b/rules/mdbook.mk @@ -20,6 +20,6 @@ $(BUILDDIR)/%.mdbook/book.toml: $$(call parse_bookid,$$*)-manifest.yml $(MKDIR_P) $(@D) $(YQ) -t '{"book": { "title": .title, - "author": (try (.creator[] | select(.role == "author") | .text) catch ""), + "author": (try ([ .creator[] | select(.role == "author") | .text ] | join(", ")) catch ""), "language": .lang }}' $< > $@