Generate Class Reference
At Mapsted, we need to generate html class reference for the SDK. Have a detailed reference not only makes us look professional but also helps our client easier integrating our SDK.
I choose Jazzy for generating the class reference in iOS platform.
GitHub - realm/jazzy: Soulful docs for Swift & Objective-C
Installation
1 | [sudo] gem install jazzy |
How to Generate
Generate doc under Swift mode:
1 | jazzy \ |
Themes
appleexample: https://realm.io/docs/swift/latest/api/fullwidthexample: https://reduxkit.github.io/ReduxKit/jonyexample: https://harshilshah.github.io/IGListKit/
Controlling What is Documented
In Swift mode, by default, documents only public and open declarations. To include declarations with a lower access level, set the —min-acl flag to internal, fileprivate, or private
In Objective-C mode, Jazzy documents all declarations found in the —umbrella-header header file and any other header files included by it. You can control exactly which declarations should be documented using —exclude, —include or :nodoc:.
