Posted at

GitHub で Graphviz を使う

More than 3 years have passed since last update.

GitHub は素で対応してないので、外部サービスを使います。

![](http://g.gravizo.com/g? と書いて、Graphviz のコードを続けるだけ。最後に ) で閉じます。

具体的には、次の Markdown で、下記の図が生成されます。

![](http://g.gravizo.com/g?

digraph G {
CoreData [shape=box]
FLMAssetFetchService [shape=box]
AppDelegate -> FLMAssetFetchService [label="1.start"]
FLMAssetFetchService -> FLMAssetFetchOperation [label="2.Kick"]
FLMAssetFetchOperation -> FLMAssetFetchService [label="3.NSNotification(FetchedAsset)"]
FLMAssetFetchOperation -> FLMFetchedAssetTransformer [label="ALAsset or PHAsset"]
FLMFetchedAssetTransformer -> FLMAssetFetchOperation [label=FLMFetchedAsset]
FLMAssetFetchService -> "FLMAssetStoreOperation" [label="4.FetchedAsset"]
"FLMAssetStoreOperation" -> CoreData [label="5.Commit FLMPhoto, FLMAlbum"]
"FLMAssetStoreOperation" -> App [label="6.Notify via NSNotification"]
}
)

ドキュメント書くときにすごく便利です(*´ω`*)