I tried finding a way to download documentation of titanium appcelerator for offline reading
I searched a lot but couldn't find any direct or indirect way to download it
Has anyone downloaded documentation ?
I tried finding a way to download documentation of titanium appcelerator for offline reading
I searched a lot but couldn't find any direct or indirect way to download it
Has anyone downloaded documentation ?
I made a shell script out of user1537325's answer. This is specific to Ubuntu 12.04, but you can probably modify it to your own OS without too much trouble. Be sure to upvote his answer as well.
https://gist.github.com/eric-hu/4952258
Warning: The layout and color scheme of the generated docs look different from those of the online docs for Titanium 3.0. I'm not sure if there are differences yet. The output from jsduck also included many warnings about "Unknown type".
It is not possible (as far as I know) to make the docs offline directly using the online version.
However it is possible to build the docs using the source code, as we all know that Titanium is open-source.
git clone https://github.com/appcelerator/titanium_mobile.git
cd titanium_mobile-master
pyyml
and pygments
, you can install them with: sudo easy_install pyyml, pygments
gem install jsduck
apidoc/docgen.py --format=jsduck --output=dist/apidoc
cd dist/apidoc
jsduck --touch-examples-ui --output Whole titanium.js
, where Whole
is the output directory containing the generated docsIf you want the builtins to be included in your generated docs make the last command:
jsduck --builtin-classes --touch-examples-ui --output Whole titanium.js
That is it, you have a full searchable Ti docs offline.
By the way, I have found a working solution for one of the most common problems Ti developers face.
Working offline with Titanium Studio:
After going offline, Titanium Studio won't allow you to neither create new projects nor build/package existing projects, to work this around:
-- I have applied this procedure prior to inventing the one below, so I am not sure if it has any effect: http://developer.appcelerator.com/question/119830/use-titanium-withour-internet-connection-or-logged-off, Adam Fisher's procedure.
~/.titanium
vim auth_session.json
false
to true
.Now you can build and create new project as you like.
There's an app for the Mac called Dash (http://kapeli.com/dash). Dash is an off-line documentation browser for software developers. It supports many languages, one of which is the Titanium API; it's a must...if you use a Mac.
However, all the documentation for the Titanium API is available as JSON files (http://docs.appcelerator.com/titanium/data/index.html), so I guess it's just a matter of building an off-line JSON reader.
R
You cannot directly download the API documentations from the appcelerator site, but you can use offline surfing softwares to download the website for offline reading
Here are some links from where you'll get some notes
I made a shell script out of user1537325's answer. This is specific to Ubuntu 12.04, but you can probably modify it to your own OS without too much trouble. Be sure to upvote his answer as well.
https://gist.github.com/eric-hu/4952258
Warning: The layout and color scheme of the generated docs look different from those of the online docs for Titanium 3.0. I'm not sure if there are differences yet. The output from jsduck also included many warnings about "Unknown type".
You can download the .mobi file from "http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/BNAPP_ebook" and use a mobi to pdf to converter to convert it to pdf format. You can use the free service provided at : http://www.mobi-to-pdf.com/ to do the conversion. Hope this helps.
© 2022 - 2024 — McMap. All rights reserved.