Kindlegen, W14001: Hyperlink not resolved errors

I’ve been playing with kindlegen and kept getting “Hyperlink not resolved errors”. Turns out if you just pass kindlegen a single html file to process into a mobi it will only ever process that file. You’ll need to keep all your content in a single html file.

If you want to structure your document as multiple html files you have to create a OPF to process with kindlegen and include a manifest in it. Kindlegen will add all your linked html files to the mobi and everything should work correctly.

You’d be wise to refer elsewhere for full details of the OPF format, but an example manifest section might look like this:

    <manifest>
        <item id="content" media-type="text/x-oeb1-document" href="index.html"></item>
        <item id="c1" media-type="text/x-oeb1-document" href="methods.html"></item>
        <item id="c2" media-type="text/x-oeb1-document" href="cutting.html"></item>
        <item id="c3" media-type="text/x-oeb1-document" href="testing.html"></item>
        <item id="c4" media-type="text/x-oeb1-document" href="moremethods.html"></item>
        <item id="c5" media-type="text/x-oeb1-document" href="footnotes.html"></item>
    </manifest>