Skip to content

Commit

Permalink
fix(rules): Allow mdbook generation when no author data present
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Feb 24, 2023
1 parent 473f0f4 commit 88f6925
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 @@ -12,6 +12,6 @@ $(BUILDDIR)/%.mdbook/book.toml: %-manifest.yml
$(MKDIR_P) $(@D)
$(YQ) -t '{"book": {
"title": .title,
"author": .creator[] | select(.role == "author") | .text,
"author": (try (.creator[] | select(.role == "author") | .text) catch ""),
"language": .lang
}}' $< > $@

0 comments on commit 88f6925

Please sign in to comment.