This is a Python script to convert Apple’s developer documentation to the Kindle’s mobipocket format, including table of contents and chapter markers. Requirements: The kindlegen commandline tool has to be downloaded separately from Amazon. Docsets can be downloaded with Xcode. The Mac OS X documentation set is typically located in /Developer/Documentation/DocSets, e.g. /Developer/Documentation/Do