BUPE v0.3.0 BUPE.Builder
Elixir EPUB generator
Example
config = %BUPE.Config{
title: "Sample",
language: "en",
creator: "John Doe",
publisher: "Sample",
date: "2016-06-23T06:00:00Z",
unique_identifier: "EXAMPLE",
identifier: "http://example.com/book/jdoe/1",
pages: ["bacon.xhtml", "egg.xhtml", "ham.xhtml"],
nav: [
%{id: "ode-to-bacon", label: "1. Ode to Bacon", content: "bacon.xhtml"},
%{id: "ode-to-ham", label: "2. Ode to Ham", content: "ham.xhtml"},
%{id: "ode-to-egg", label: "1. Ode to Egg", content: "egg.xhtml"}
]
})
BUPE.Builder.save(epub, "example.epub")
Summary
Functions
Generates an EPUB v3 document
Functions
Specs
save(BUPE.Config.t, Path.t) :: String.t | no_return
Generates an EPUB v3 document