Generate the resource entry for the Overview.xhtml
item into the package; that includes setting the various manifest item
properties (see manifest item properties).
The following properties are set, if applicable:
The function also modifies the DOM tree by introducing a <main>
element right as a child of body
, and adding the fixed toc-inline
class to ensure that the
body occupies the whole width of the viewport.
Overview.xhtml
entry
Generate the
Overview.xhtml
entryGeneration involves two different steps:
Overview.xhtml
may contain aproperties
attribute; see manifest item properties for further details.<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.