Skip to content

Commit 890198a

Browse files
committed
Add book support for DOI
Fixes #1714
1 parent 3add8fe commit 890198a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/project/types/book/book-render.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
kAuthor,
2222
kDate,
2323
kDescription,
24+
kDoi,
2425
kNumberSections,
2526
kOutputExt,
2627
kOutputFile,
@@ -646,6 +647,7 @@ function withBookTitleMetadata(format: Format, config?: ProjectConfig): Format {
646647
setMetadata(kDateFormat);
647648
setMetadata(kAbstract);
648649
setMetadata(kDescription);
650+
setMetadata(kDoi);
649651
}
650652
return format;
651653
}

src/project/types/book/book-shared.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export type BookConfigKey =
2323
| "downloads"
2424
| "tools"
2525
| "title"
26+
| "doi"
2627
| "subtitle"
2728
| "author"
2829
| "description"

0 commit comments

Comments
 (0)