News for hackers. Stuff that matters.
Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 08, 2013 @02:06PM (#5513405)
Hey guys & gals, I created cocoadocs to try and fill a gap in the iOS ecosystem. It's a site that acts similar to rubydocs in that it gets the latest cocoapods libraries and documents them using a custom flavour of appledoc. I'm planning on adding support for Xcode and Dash over the next few weeks to make it even easier to use!
Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 08, 2013 @02:49PM (#5513662)
I've been experimenting with adding Github search links for methods and properties too - so you can get context on their uses ( this has them when you mouse over further down the page: http://cocoadocs.org/docsets/AFIncrementalStore/0.4.0/Classe... )
Re:CocoaDocs - Documentation for iOS Libraries by bennyg on Monday April 08, 2013 @07:32PM (#5515442)
Looks great! Only one thing, how often is it updated? I pushed a new Podspec to the master repo about 5 days ago for one of my projects (http://cocoadocs.org/docsets/Colours/0.0.1/) and it should be v1.0.1. Just wondering if you are doing live grabbing of the data or have it cached somewhere?
Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 08, 2013 @08:16PM (#5515631)
Cached for the moment, I'm wrapping up the CI server which will be constantly updating podspecs from this week onwards.
Re:CocoaDocs - Documentation for iOS Libraries by brotchie on Monday April 08, 2013 @10:45PM (#5516150)
Nice! I have a "pod" in the Cocoa Pods repository and the documentation has been reproduced faithfully!

I like how you pull the github README to use at the documentation landing page.

Re:CocoaDocs - Documentation for iOS Libraries by mmorey on Monday April 08, 2013 @05:37PM (#5514802)
If you provide a /search?query=%s endpoint I would build an Alfred V2 Workflow for it. Downloading the whole documents.jsonp file each time is slow.
Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 08, 2013 @08:18PM (#5515641)
I'd love to but ATM its a static site hosted on s3, so no API at all. Moving to something which is API / Client is within my next major move, at that point it will be super easy.
Re:CocoaDocs - Documentation for iOS Libraries by nmcfarl on Monday April 08, 2013 @09:39PM (#5515962)
Just having a HTML doc with a meta refresh from the distribution to the latest version would make a lot of things easier.

IE have http://cocoadocs.org/docsets/NUI/ Redirects to: http://cocoadocs.org/docsets/NUI/0.2.7/

This would enable http://cocoadocs.org/docsets/%s shortcuts

Re:CocoaDocs - Documentation for iOS Libraries by MaxGabriel on Monday April 08, 2013 @11:05PM (#5516205)
Orta already made an issue for this in the CocoaDocs repo :)
Re:CocoaDocs - Documentation for iOS Libraries by SeoxyS on Monday April 08, 2013 @09:42PM (#5515973)
This is fantastic. Great work… I will be adding this to my repertoire of resources.
Re:CocoaDocs - Documentation for iOS Libraries by _frog on Monday April 08, 2013 @07:15PM (#5515372)
Fantastic! I can see this being incredibly useful for cases where you have multiple versions of a framework used in different projects. Right now you can install documentation into Xcode if the project uses appledoc[1], but there's no way to switch between versions.

On the subject of appledoc, are you using a custom template here? It seems to improve on the default one in a few places.

[1]: http://gentlebytes.com/appledoc/

Re:CocoaDocs - Documentation for iOS Libraries by MaxGabriel on Monday April 08, 2013 @07:39PM (#5515471)
If you use Cocoapods, when you install with Appledoc it names the documentation based on versions, e.g. TTTAttributedLabel 1.6.2 so you can keep multiple sets.

Of course, that gets messy real fast, so it's good that CocoaDocs is an option.

Re:CocoaDocs - Documentation for iOS Libraries by _frog on Monday April 08, 2013 @08:18PM (#5515639)
Wow I didn't know about that, that's really handy.
Re:CocoaDocs - Documentation for iOS Libraries by romaonthego on Monday April 08, 2013 @02:04PM (#5513391)
Brilliant!

Suggestion: I would love to see the full list of available pods (not just search) with short description next to them somewhere.

Re:CocoaDocs - Documentation for iOS Libraries by aaronbrethorst on Monday April 08, 2013 @02:16PM (#5513484)
Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 08, 2013 @02:47PM (#5513653)
Very cool!
Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 08, 2013 @02:08PM (#5513420)
Thanks, this is really easy to do as right now cocoadocs generates a jsonp file of every cocoapod: http://cocoadocs.org/documents.jsonp - so whilst ATM I'm not planning on doing this, someone can do it very easily.
Re:CocoaDocs - Documentation for iOS Libraries by incanus77 on Monday April 15, 2013 @04:49PM (#5554229)
This should follow the doc build rules set up in each pod. For example, I maintain MapBox and have a number of specific documentation directives:

https://github.com/mapbox/mapbox-ios-sdk/blob/release/MapBox...

Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 15, 2013 @04:56PM (#5554269)
I should, I just closed the issue an hour ago about this after looking through the repository and only finding your library and 2-3 others as a spec with meaningful appledoc options. I'll re-open it for my next deploy.
Re:CocoaDocs - Documentation for iOS Libraries by Smiller on Monday April 08, 2013 @02:38PM (#5513604)
That is great! Didn't know my lib is so well documented ;)
Re:CocoaDocs - Documentation for iOS Libraries by rococo on Monday April 08, 2013 @02:48PM (#5513659)
Not gonna plug your lib? :)
Re:CocoaDocs - Documentation for iOS Libraries by escoz on Monday April 08, 2013 @02:43PM (#5513635)
Awesome.. Now if only contributors helped with adding documentation to some of my classes..
Re:CocoaDocs - Documentation for iOS Libraries by geuis on Monday April 08, 2013 @02:33PM (#5513567)
Doesn't have anything on AvFoundation. That's kind of my litmus test.
Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 08, 2013 @02:39PM (#5513608)
AVFoundation is an apple library, which isn't on cocoapods meaning cocoadocs doesn't support it. Apple do their own documentation pretty well and I don't really see a need to duplicate that to be honest.
Re:CocoaDocs - Documentation for iOS Libraries by 1qaz2wsx3edc on Monday April 08, 2013 @03:02PM (#5513743)
They do provide great docs.

But if you're solving a find-ability the drop down list could either include those results or provide a redirect. This would just be an easy workflow thing.

Also, you're attempting to reflect the rubydocs ecosystem. An ecosystem which includes (core and stdlib) and gems. If you're reflecting that system accurately, you should include apple docs, and pods accordingly.

Just my two cents.

Re:CocoaDocs - Documentation for iOS Libraries by orta on Monday April 08, 2013 @03:10PM (#5513785)
I agree, I think redirecting to apple's libraries is a great idea! When the grand-parent said a lack of AVFoundation was a problem, I interpreted that as "you should document that" but I think linking to all of Cocoa/UIKit is a real useful feature. Thanks 1qaz2wsx3edc.
Re:CocoaDocs - Documentation for iOS Libraries by geuis on Monday April 08, 2013 @07:28PM (#5515427)
Ah I see. It wasn't clear (to me at least) that this wasn't meant to be globally inclusive. My initial take was that you were trying to make a better overall docs system for Obj-c. Having links back to the current definitive Apple docs would be great.
Re:CocoaDocs - Documentation for iOS Libraries by MaxGabriel on Monday April 08, 2013 @02:35PM (#5513586)
What? I'm pretty sure that CocoaDocs is for projects on CocoaPods, i.e. not Apple provided libraries.
Re:CocoaDocs - Documentation for iOS Libraries by zalambar on Monday April 08, 2013 @02:40PM (#5513617)
AVFoundation is a library provided by Apple. CocoaDocs documents third party libraries published through the CocoaPods (http://cocoapods.org/) tool.
Re:CocoaDocs - Documentation for iOS Libraries by coldtea on Monday April 08, 2013 @05:49PM (#5514867)
Err, this is about CocoaPods. You can go to ADC for AVFoundation.