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: 2015-04-17 19:09:35 +0000

====================================================================

擴展﹣﹣》查看幫助:

對命令行不熟悉的朋友,下面有簡便寫法:

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 0 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 [0-3]
      --verbose <value>                   Log verbosity level [0-6,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練習

时间: 2024-08-06 17:45:41

AppleDoc的安裝使用的相关文章

MAC安裝《Genymotion Android模擬器》大玩Android APP (神魔之塔)

链接地址:http://www.minwt.com/mac/10083.html/comment-page-2 MAC» 智慧型裝罝» Android | 2014/02/12 Android是一個開放的平台,因此先前也分享了幾個Android的模擬器,但當初梅干使用Android模擬器,最主要的功能就是用來測試網頁,看網頁在Android手機上是否能正常運作,雖然說這些Android模擬器,也可透過Google Player安裝Android APP,在電腦中就可玩Android APP,但由

Kubuntu 15.04 安裝後的必看事項

煩人的KDE錢包 在KDE錢包首次啓動的時候,首先勾選"再也不要提醒我",然後在要求設置密碼的時候直接選擇確定. 這麼做的話就不會被KDE錢包騷擾,一次一次地斷開你的WiFi,要求你重新輸入密碼,況且還是先輸入錢包密碼,再輸入WiFi密碼 konsole\kate不能切換輸入法 或者說終端不能輸入中文 這是fcitx的qt5的安裝包沒有被安裝導致的 輸入:sudo apt-get install fcitx-frontend-qt5 更新之後卡死在"正在配置update-no

Oracle VM VirtualBox安裝Windows 2000失败

问题: VirtualBox下安装Windows2000,设置网络后进入最后一步,复制组件……然后就是重启:再试还是重启! 解决: 在Oracle网站上查了一下资料:http://www.virtualbox.org/manual/ch12.html#idp12786160 Oracle网站上说这是Win2000的一个BUG,原因是虚拟机操作太快了:解决办法就是让虚拟机慢下来. Windows平台上: cd X:\Program Files\Oracle\VirtualBox Linux平台上:

solus 系统 - 编译安裝 ibus-rime 中文输入法

編譯方法參見官網 - https://github.com/rime/home/wiki/RimeWithIBus 安装依赖:列出几个可能用到的命令 #安裝cmake gcc等开发工具 sudo eopkg install -c system.devel #安装 glog sudo eopkg it glog #安装 boost sudo eopkg it libboost-devel 准备编译:下载 3个包 https://github.com/rime/librime/archive/rim

Sql Server 2008安裝

Sql Server 2008 MSDN下載地址: http://www.msdn.hk/7/176/ 下載完成后的iso文件目錄結構如下,點擊安裝程序: 點擊安裝全新的sql server: 必備檢測項,下一步: 這裏會自動填充產品密鑰: 一直往下,選擇功能也全部選擇,下一步: 選擇默認數據庫實例: 選擇Windows的賬戶名和你本機的登錄密碼: 使用把windows賬戶和密碼添加到sql server 的賬戶列表中: 繼續點下一步,然後開始安裝step(這個需要的時間比較久,目測需要20分鐘

mindomo 離線版安裝 for windows

mindomo可以实现各个平台(苹果,安卓,windows.Linux )无缝对接:教育版免费! 掛念我們之前的桌面版本嗎?首先,  安裝 Adobe Air , 然後下載  Windows & Mac  或  Linux  版本. mindomo 離線版安裝 for windows 請到http://mindomo.ilc.edu.tw/頁面,如下圖操作: 先安裝Adobe air 的軟體(如第3點),再下載 MindomoDesktop: 如下圖說明 ( http://get.adobe.c

Fedora 17 安裝完全指南

李順亮 2012年6月5日 Fedora 17 正式發布的當天,無所事事的我突然之間想嘗個鮮,既然要做就彻底一點,格掉Ubuntu安上最新的Fedora.先斷了自己的退路,往往就能把新的系統學好用好,這是我這些年來學習使用linux的經驗總結. 一.了解Fedora 17 先來了解一下Fedora吧.它是由Red Hat贊助的一個全球性開源項目,秉承“自由”.“友愛”.“傑出”.“前衛”宗旨. 1.Fedora 17的主要系統改進 內核:采用3.3.4內核. 安全:Fedora現在具備單獨的可配

node+npm安裝配置

控制臺輸入node 根據提示安裝 sudo apt-get install -g npm npm install -g n n v4.5.0 n stable或n v4.5.0(指定版本 配置淘寶源 npm config set registry https://registry.npm.taobao.org 安裝cnpm npm install -g cnpm cnpm安装gulp安装的不完整 还是用npm安装node+npm安裝配置

在VPS上安裝BT軟體Transmission

在VPS上安裝BT軟體Transmission 作者: 窮苦人家的小孩 | 2009-12-04 55 Comments VPS 還能怎玩?! 裝Proxy,裝VPN,這還不夠,我還用來掛種子夠狠吧  反正頻寬閒也是閒者,不過安裝前最好事先問問主機商是否允許,合法的文件大多都是OK的.偶用YUM裝了幾個軟體總覺都怪怪的,畢竟不是該軟體最新的版本,再加上CentOS是一套強調安全的系統,當然對P2P這玩意不會太支援,我裝過了純網頁介面的Torrentflux,很多人推薦的rTorrent,但是最後