Generate the Overview.xhtml
entry
Generation involves two different steps:
- The package entry for
Overview.xhtml
may contain aproperties
attribute; see manifest item properties for further details. - Due to the rigidity of the iBook reader, the DOM tree has to change: all children of the
<body>
should be encapsulated into a top level block element (we use<div role="main">
). This is because iBook imposes a zero padding on the body element, and that cannot be controlled by the user; the introduction of the top level block element allows for suitable CSS adjustments in the common css file.
f
generate_overview_item
Generate the resource entry for the Overview.xhtml
item into the package; that includes setting the various manifest item
properties (see manifest item properties).
Usage
import * as mod from "lib/overview.ts";