1狞换,安裝 https://github.com/realm/jazzy
[sudo] gem install jazzy
2, ?使用VVDocumenter插件編寫注釋,
安裝:https://github.com/onevcat/VVDocumenter-Xcode
其他注釋參考:http://nshipster.com/swift-documentation/
3,終端運行:
jazzy --swift-version 2.1.1 --min-acl private | internal | public
-bash: internal: command not found -bash: public: command not found 這兩個提醒不用理會未荒。等待編譯結(jié)束虱肄,工程目錄下有多出docs文件夾李请,打開index.html藤抡,就可以閱讀文檔了