Skip to content

Instantly share code, notes, and snippets.

@nuno
Forked from eric-hu/TiDocs.sh
Created November 3, 2013 12:53
Show Gist options
  • Save nuno/7290001 to your computer and use it in GitHub Desktop.
Save nuno/7290001 to your computer and use it in GitHub Desktop.
#! /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