How to do Amazon kindle periodical Mobi

I’ve spent quite a lot of googling before I’ve found good guide for kindle formating. Good start was this two things:

But there were still some pieces missing. So I had to find out myself.

First of all there must be preserved proper content type in x-metadata tag, otherwise kindlegen will not compile your .opf properly.
<x-metadata><output content-type=”application/x-mobipocket-subscription-magazine” encoding=”utf-8”/></x-metadata>.

Next in .ncx structure is not necessary to contain <navPoint class=”periodical”>. Classes “section” and “article” are sufficient.

There are some other issues, but not that difficult.

You can download a sample code in my dropbox folder: sample kindle periodical