Skip to content

Instantly share code, notes, and snippets.

@joemocha
Forked from eric-hu/TiDocs.sh
Created July 23, 2013 16:59
Show Gist options
  • Save joemocha/6064089 to your computer and use it in GitHub Desktop.
Save joemocha/6064089 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