AppleDoc的安裝使用
前言,還是那句話,新手按照濤叔下面畫黃色的步驟順序執行就好了,不要問為什麼。
一、安裝(注意,濤叔事先已經下載了appledoc)
1、找到下載的appledoc目錄
$ cd /Users/libotao/DevSource/iOS/appledoc
2、運行安裝
$ sudo sh install-appledoc.sh
libotaodeMacBook-Pro:~ libotao$ cd /Users/libotao/DevSource/iOS/appledoc libotaodeMacBook-Pro:appledoc libotao$ sudo sh install-appledoc.sh Password: Building...
3、執行
appledoc --project-name myproject --project-company "surge" --company-id www.surge --output ~/doc ./Appledoc練習
命令說明:
--project-name "項目名稱"
--project-company "公司名稱"
--company-id "工程ID"
--output "生成輸出結果"
./Appledoc練習 "這個是要掃描的路徑"
生成文檔的名稱是 company-id + project-name
生成的文档会自动存放在Xcode默认的文档目录里:
~/Library/Developer/Shared/Documentation/DocSets
那麼運行結果如何呢?截圖如下:

文檔中內容如下:(創建信息等)
Documentation set was installed to Xcode! Path: /Users/libotao/Library/Developer/Shared/Documentation/DocSets/www.surge.myproject.docset
Time: -- :: +

====================================================================
擴展﹣﹣》查看幫助:
對命令行不熟悉的朋友,下面有簡便寫法:
appledoc --help
libotaodeMacBook-Pro:~ libotao$ appledoc --help
Usage: appledoc [OPTIONS] <paths to source dirs or files> PATHS
-o, --output <path> Output path
-t, --templates <path> Template files path
--docset-install-path <path> DocSet installation path
-s, --include <path> Include static doc(s) at path
-i, --ignore <path> Ignore given path
-x, --exclude-output <path> Exclude given path from output
--index-desc <path> File including main index description PROJECT INFO
-p, --project-name <string> Project name
-v, --project-version <string> Project version
-c, --project-company <string> Project company
--company-id <string> Company UTI (i.e. reverse DNS name) OUTPUT GENERATION
-h, --create-html [b] Create HTML
-d, --create-docset [b] Create documentation set
-n, --install-docset [b] Install documentation set to Xcode
-u, --publish-docset [b] Prepare DocSet for publishing
--html-anchors <string> [*] The html anchor format to use in DocSet HTML.
--clean-output [b] Remove contents of output path before starting !!CAUTION!! OPTIONS
--keep-intermediate-files [b] Keep intermediate files in output path
--keep-undocumented-objects [b] Keep undocumented objects
--keep-undocumented-members [b] Keep undocumented members
--search-undocumented-doc [b] Search undocumented members documentation
--repeat-first-par [b] Repeat first paragraph in member documentation
--preprocess-headerdoc [b] Preprocess header doc comments - 10.7 only!
--print-information-block-titles [b] Print title of information blocks. "Note:", "Warning:", etc.
--use-single-star [b] Use single star for bold marker
--merge-categories [b] Merge categories to classes
--merge-category-comment [b] Merge category comment to class
--keep-merged-sections [b] Keep merged categories sections
--prefix-merged-sections [b] Prefix merged sections with category name
--explicit-crossref [b] Shortcut for explicit default cross ref template
--use-code-order [b] Order sections by the order specified in the input files
--crossref-format <string> Cross reference template regex
--exit-threshold <number> Exit code threshold below which is returned WARNINGS
--warn-missing-output-path [b] Warn if output path is not given
--warn-missing-company-id [b] Warn if company ID is not given
--warn-undocumented-object [b] Warn on undocumented object
--warn-undocumented-member [b] Warn on undocumented member
--warn-empty-description [b] Warn on empty description block
--warn-unknown-directive [b] Warn on unknown directive or format
--warn-invalid-crossref [b] Warn on invalid cross reference
--warn-missing-arg [b] Warn on missing method argument documentation
--warn-unsupported-typedef-enum [b] Warn on unsupported typedef enum DOCUMENTATION SET INFO
--docset-bundle-id <string> [*] DocSet bundle identifier
--docset-bundle-name <string> [*] DocSet bundle name
--docset-desc <string> [*] DocSet description
--docset-copyright <string> [*] DocSet copyright message
--docset-feed-name <string> [*] DocSet feed name
--docset-feed-url <string> [*] DocSet feed URL
--docset-feed-formats <values> DocSet feed formats. Separated by a comma [atom,xml]
--docset-package-url <string> [*] DocSet package (.xar) URL
--docset-fallback-url <string> [*] DocSet fallback URL
--docset-publisher-id <string> [*] DocSet publisher identifier
--docset-publisher-name <string> [*] DocSet publisher name
--docset-min-xcode-version <string> [*] DocSet min. Xcode version
--docset-platform-family <string> [*] DocSet platform familiy
--docset-cert-issuer <string> [*] DocSet certificate issuer
--docset-cert-signer <string> [*] DocSet certificate signer
--docset-bundle-filename <string> [*] DocSet bundle filename
--docset-atom-filename <string> [*] DocSet atom feed filename
--docset-xml-filename <string> [*] DocSet xml feed filename
--docset-package-filename <string> [*] DocSet package (.xar,.tgz) filename. Leave off the extension. This will be added depending on the generated package. MISCELLANEOUS
--logformat <number> Log format [-]
--verbose <value> Log verbosity level [-,xcode]
--version Display version and exit
--help Display this help and exit ==================================================================
[b] boolean parameter, uses no value, use --no- prefix to negate. [*] indicates parameters accepting placeholder strings:
- %PROJECT replaced with --project-name
- %PROJECTID replaced with normalized --project-name
- %VERSION replaced with --project-version
- %VERSIONID replaced with normalized --project-version
- %COMPANY replaced with --project-company
- %COMPANYID replaced with --company-id
- %YEAR replaced with current year (format yyyy)
- %UPDATEDATE replaced with current date (format yyyy-MM-dd)
- %DOCSETBUNDLEFILENAME replaced with --docset-bundle-filename
- %DOCSETATOMFILENAME replaced with --docset-atom-filename
- %DOCSETPACKAGEFILENAME replaced with --docset-package-filename ==================================================================
Find more help and tips online:
- http://appledoc.gentlebytes.com/
- http://tomaz.github.com/appledoc/ ==================================================================
appledoc uses the following open source components, fully or partially: - DDCli by Dave Dribin
- CocoaLumberjack by Robbie Hanson
- ParseKit by Todd Ditchendorf
- RegexKitLite by John Engelhart
- GRMustache by Gwendal Roué
- Discount by David Parsons
- Timing functions from Apple examples We'd like to thank all authors for their contribution!
查看文檔中的命令:發現有漸變寫法 (-o) == (--output)
PATHS
-o, --output <path> Output path
PROJECT INFO
-p, --project-name <string> Project name
-c, --project-company <string> Project company
--company-id <string> Company UTI (i.e. reverse DNS name)
上面例子中生成使用的命令:
appledoc --project-name myproject --project-company "surge" --company-id www.surge --output ~/doc ./Appledoc練習
修改為
appledoc -p myproject -c "surge" --company-id www.surge -o ~/doc ./Appledoc練習
AppleDoc的安裝使用的更多相关文章
- 免安裝、免設定的 Hadoop 開發環境 - cloudera 的 QuickStart VM
cloudera 的 QuickStart VM,為一種免安裝.免設定 Linux 及 Hadoop,已幫你建好 CDH 5.x.Hadoop.Eclipse 的一個虛擬機環境.下載後解壓縮,可直接以 ...
- 安裝 14.04.1 Ubuntu 到 Lenovo thinkpad t460p
在 Lenovo Thinkpad T460p 安裝 ubuntu, BIOS 需要做一些設定, 沒設定的現象:不斷地停在 usb disk 設定 可以 使用 usb disk install 了!
- Ubuntu 安裝 嘸蝦米 輸入法
O S : 14.04.1-Ubuntu 加入fcitx開發團隊的repository: sudo add-apt-repository ppa:fcitx-team/nightly sudo apt ...
- Linux下安裝Oracle database內核參數設置
參考:1529864.1 ************************************************** RAM ...
- 從 Internet 安裝 Cygwin
從 Internet 安裝 Cygwin 如果您有高速的 Internet 連線, 可以考慮用這個方法, 否則不建議使用 執行 setup.exe Cygwin Setup 畫面, 按 Next. C ...
- [Xamarin] 取得所有已安裝軟體清單 (转帖)
最近會用到,簡單記錄一下,抓取所有該手機已經安裝的軟體清單 結果圖: 首先介紹一下Layout : \Resources\Layout\Main.axml <?xml version=&quo ...
- MAC安裝CocoaPods
前言,鑒於很多人都比較趕時間,有人是為了去應付工作,有人是為了去找妹子,總之,不管你懂不懂,如果你只是想安裝一下,那麼你只需要按照濤叔下面畫黃色的命令複製粘貼到終端順序執行就好了. 一.安裝 1.Ru ...
- Oracle12c client安裝報錯[INS-20802] Oracle Net Configuration Assistant failed完美解決
Doc ID 2082662.1 1.錯誤碼 Installation Of Oracle Client 12.1.0.2.0 (32-bit) Fails With An Error Message ...
- C#-Windows服務以LocalSystem賬戶安裝的話無法獲取我的文檔路徑
如圖,如果Window服務以上圖 Account安裝運行,則無法獲取到 以下路徑: System.Environment.GetFolderPath(Environment.SpecialFolder ...
随机推荐
- 更新日志 - fir.im Jenkins & Gradle 插件上线
最近 fir.im 工程师们效率爆表,fir.im 实用工具集合又添加了新的成员-- Jenkins & Gradle 插件,让 App 打包上传更加简单快速. fir.im Jenkins ...
- 自动登录VSS
每次打开vss都需要输入用户名.密码,用起来多少有些麻烦.用以下两种方式即可实现自动登录: 方法1: 在vss快捷方式的命令行最后面添加-y参数 "C:/Program Files/Micr ...
- Excel学习笔记
---恢复内容开始--- -----------随学随记----------- 获取当前日期: 获取当前系统时间,包含年月日时分秒: =NOW() 获取当前系统时间,包含年月日: =TODAY() 只 ...
- 经典String str = new String("abc")内存分配问题
出自:http://blog.csdn.net/ycwload/article/details/2650059 今天要找和存储管理相关的一些知识,网上搜了半天也没有找到完善的(30%的程度都不到),没 ...
- Mybatis中SqlMapper配置的扩展与应用(3)
隔了两周,首先回顾一下,在Mybatis中的SqlMapper配置文件中引入的几个扩展机制: 1.引入SQL配置函数,简化配置.屏蔽DB底层差异性 2.引入自定义命名空间,允许自定义语句级元素.脚本级 ...
- MVC及WebAPI添加Jsonp支持
Windows Live Writer 有点问题,着色代码看起来不清晰,所以贴的图片,完整代码在最后. 1:MVC实现 大致思路就是实现一个JsonpResult,在ExecuteResult内实现支 ...
- Nexus3.0私服搭建
官方文档:http://books.sonatype.com/nexus-book/3.0/reference/install.html 1.下载 http://www.sonatype.com/do ...
- Android二维码之创建
由于微信的推出二维码走进了我们的生活,并且越来越多的人们正在发挥着自己的想象力去使用它,来方便我们的生活,我曾经听说过一个笑话,当我们死后,墓碑上不再有墓志铭,而会出现一个记录你一生信息的二维码,当人 ...
- JavaScript作用域原理(三)——作用域根据函数划分
一.一个for实例 <p id="scope3" style="color:red"></p> var pscope3 = docume ...
- Titon Toolkit – 非常强大的用户界面组件
Titon Toolkit 是一个非常强大的用户界面组件,也是实现响应式,移动和现代网页的工具类的集合.每个组件封装了 HTML.CSS 以及为角色特定页面元素的 JavaScript 功能.Tool ...