Skip to content

Commit

Permalink
fix(mdbook): Handle generation of mdbook when book has more than 1 pr…
Browse files Browse the repository at this point in the history
…imary author
  • Loading branch information
alerque committed Sep 23, 2024
1 parent 483561d commit 718fab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/mdbook.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
}}' $< > $@

0 comments on commit 718fab2

Please sign in to comment.