I want to document my swift project, and I find jazzy on the github.
after a look at the guide, I create a new simple project and want to have a try, here is my ViewController
with some document info:
import UIKit
/**
a view controller
*/
class ViewController: UIViewController {
// MARK: property
/// a simple var
var hello = 200
// MARK: Func
/// view did load
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
print(add(2, b: 2))
}
/// did receiveMemoryWarning
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
/// a document test func
func add(a:Int, b:Int)->Int{
return a + b
}
}
here is my command:
➜ DocumentDemo git:(master) ✗ jazzy --swift-version 2.1.1 \
--clean \
--author helloworld \
-x -scheme,DocumentDemo
Running xcodebuild
Parsing ViewController.swift (1/3)
Parsing AppDelegate.swift (2/3)
Parsing My.swift (3/3)
building site
jam out ♪♫ to your fresh new docs in `docs`
➜ DocumentDemo git:(master) ✗
and I expect the html to have some info about my view controller,but the result is nothing there:
I want to know how to use jazzy, hope some advices.