nerdishbynature / octokit.swift

A Swift API Client for GitHub and GitHub Enterprise
MIT License
495 stars 126 forks source link

Documentation for most of the implemented API #27

Closed nwest closed 8 years ago

nwest commented 8 years ago

It might be neat to use https://github.com/realm/jazzy for a docs site.

nwest commented 8 years ago

This needs https://github.com/nerdishbynature/octokit.swift/commit/c59f701c9a32447ccac56f264d88d9a6b280bc0b to go green again.

pietbrauer commented 8 years ago

AFAIK cocoa pods uses jazzy and docs will be at http://cocoadocs.org/docsets/NBNRequestKit/0.1.0/. Would it be nice to include code examples? I kind of liked the documentation in the README tbh. But then I am not a fan of documentation either. We should decide on one way and then remove the docs from the README as documenting it twice is not very sufficient.

nwest commented 8 years ago

I actually started working on this because I wanted to try out jazzy, I didn't realize it gets generated when you push it to cocoapods.

It's possible to put code examples in the inline docs, which we could do. Another nice thing is that the docs show up when you option click classes and functions in Xcode.

If you're not a fan of inline docs and would prefer to keep the README style, we can close this. I'm not set on it.

pietbrauer commented 8 years ago

Nice, didn't realise the Xcode alt+click documentation is done automatically. Could you indent the lines so the comments /** start on the same indentation spot as the func definitions?

nwest commented 8 years ago

Markdown works, too.

screen shot 2015-11-25 at 8 02 31 am
pietbrauer commented 8 years ago

Super good, thanks a lot! Will push version 0.5.0 tomorrow then!