The Titanium API docs have improved a lot over the last couple of years and something I use almost on a daily basis. Even more since I don’t read them at docs.appcelerator.com anymore, but use Dash to read them offline.
Dash
Dash is an amazing piece of software that allows you to download the latest documentation of over 130+ API’s to read and search them offline. Appcelerator Titanium is one of the available docsets, but also Backbone, Underscore, JavaScript, NodeJS and others will prove useful if you develop for Titanium. You can even add your own custom dockets and save snippets that you can then insert in any editor!
Dash is available through the Mac App Store for $19.99 and worth every penny.
Integration
You can integrate Dash in Sublime Text using the DashDoc plugin. This allows you to lookup the documentation for the API under your cursor or for the selected text. You can install the plugin using Sublime Package Control.
Update: My PR to map Titanium and Alloy file types to the Titanium docset has been merged, so the following is no longer relevant.
You’ll need to manually map JS, TSS and XML files to the Titanium docset by adding the following under Sublime Text > Preferences > Package Settings > DashDoc > Settings – User:
{ "syntax_docset_map": { "JMK": ["javascript", "lodash", "underscore", "nodejs", "titanium"], "JavaScript": ["javascript", "jquery", "jqueryui", "jquerym", "backbone", "marionette", "meteor", "sproutcore", "moo", "prototype", "bootstrap", "foundation", "lodash", "underscore", "ember", "sencha", "extjs", "knockout", "zepto", "yui", "d3", "svg", "dojo", "coffee", "nodejs", "express", "chai", "html", "css", "cordova", "phonegap", "unity3d", "titanium"], "XML": ["xml","titanium"], "TSS": ["titanium"] } }
Comments
Jong
Yes! Dash is very cool application. But ACS document not included.
If you want to download ACS document from Dash, please request ACS docset.
http://kapeli.com/contact
After request ACS docset, I got a below message :
“Please note that I don’t generate docsets unless more users ask for them.”
:)
Kristján Mikaelsson
Hi Fokke, thanks for a great tip.
The code is missing in the update and I’m not able to configure it on my own. Could you maybe update it again?
Fokke Zandbergen Post author
Fixed it, thx!
Richard Lustemberg
Absolutely great app! Thank you for sharing!
Ketan Majmudar
it might also be worth noting that if you use Alfred App you can get direct access to the dash docs immediately by typing dash then your search query.
First you will need to integrate Dash with Alfred.
Dash Application > Settings > Integration > Alfred
(this is a powerful and quick way to get into the Ti Docs from anywhere on your Mac at anytime!)
w wijkman
Hai Richard. Ben jij misschien je ov kaart kwijt?