generate doc with gist