Created
February 14, 2013 11:36
-
-
Save eric-hu/4952258 to your computer and use it in GitHub Desktop.
Getting offline version of Titanium mobile docs on Ubuntu
This file contains 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 | |
# 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 | |
git clone https://github.com/appcelerator/titanium_mobile.git | |
cd titanium_mobile | |
sudo apt-get install python-setuptools python-dev | |
sudo easy_install pyyaml pygments | |
gem install jsduck | |
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