Skip to content

Instantly share code, notes, and snippets.

@ndastur
Last active December 16, 2015 10:38
Show Gist options
  • Save ndastur/5420989 to your computer and use it in GitHub Desktop.
Save ndastur/5420989 to your computer and use it in GitHub Desktop.
Build offline docs for Titanium Appcelerator on Mac OSX
#! /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