Last active
December 16, 2015 10:38
-
-
Save ndastur/5420989 to your computer and use it in GitHub Desktop.
Build offline docs for Titanium Appcelerator on Mac OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# This file is based on https://gist.github.com/eric-hu/4952258 | |
# which runs on linux | |
# | |
# Run this from the folder you want to be the parent of your docs | |
# By default, generated docs go into | |
# titanium_mobile/dist/apidoc/ti_mobile_docs/ | |
# | |
# This can be changed below | |
sudo port install libyaml | |
sudo port install python-setuptools python-dev | |
sudo easy_install pyyaml pygments | |
gem install jsduck | |
git clone https://github.com/appcelerator/titanium_mobile.git | |
cd titanium_mobile | |
apidoc/docgen.py --format=jsduck --output=dist/apidoc | |
cd dist/apidoc | |
# Change this line to modify the output | |
jsduck --touch-examples-ui --output ti_mobile_docs titanium.js | |
# Swap the above line for this one if you want docs on builtins as well | |
# jsduck --builtin-classes --touch-examples-ui --output Whole titanium.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment