Add a bit more metadata
This commit is contained in:
parent
48ddecfed4
commit
807a3f4349
1 changed files with 10 additions and 0 deletions
|
|
@ -5,8 +5,16 @@ const cpr = require("thenify")(require("cpr"));
|
|||
|
||||
const BOOK_TITLE = "Worm";
|
||||
const BOOK_AUTHOR = "wildbow";
|
||||
const BOOK_PUBLISHER = "Domenic Denicola";
|
||||
const BOOK_ID = "urn:uuid:e7f3532d-8db6-4888-be80-1976166b7059";
|
||||
|
||||
// First paragraph of https://parahumans.wordpress.com/about/
|
||||
const BOOK_DESCRIPTION = `
|
||||
An introverted teenage girl with an unconventional superpower, Taylor goes out in costume to find escape from a deeply
|
||||
unhappy and frustrated civilian life. Her first attempt at taking down a supervillain sees her mistaken for one,
|
||||
thrusting her into the midst of the local ‘cape’ scene’s politics, unwritten rules, and ambiguous morals. As she risks
|
||||
life and limb, Taylor faces the dilemma of having to do the wrong things for the right reasons.`;
|
||||
|
||||
const NCX_FILENAME = "toc.ncx";
|
||||
|
||||
module.exports = function (scaffoldingPath, bookPath, contentPath, chaptersPath, manifestPath) {
|
||||
|
|
@ -39,6 +47,8 @@ function writeOpf(chapters, contentPath) {
|
|||
<dc:language>en</dc:language>
|
||||
<dc:identifier id="BookId" opf:scheme="UUID">${BOOK_ID}</dc:identifier>
|
||||
<dc:creator opf:file-as="${BOOK_AUTHOR}" opf:role="aut">${BOOK_AUTHOR}</dc:creator>
|
||||
<dc:publisher>${BOOK_PUBLISHER}</dc:publisher>
|
||||
<dc:description>${BOOK_DESCRIPTION}</dc:description>
|
||||
</metadata>
|
||||
|
||||
<manifest>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue