From 6726ef23935ecd10c58e8976a99f8f4b1d87574c Mon Sep 17 00:00:00 2001 From: Mattt Date: Mon, 10 Aug 2020 04:53:59 -0700 Subject: [PATCH] Use .gv file extension for GraphViz DOT output --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d86248fe..8c89d340 100644 --- a/README.md +++ b/README.md @@ -177,8 +177,8 @@ generates a graph of APIs in [DOT format][dot] that can be rendered by [GraphViz][graphviz] into a diagram. ```terminal -$ swift run swift-doc diagram Alamofire/Source > graph.dot -$ head graph.dot +$ swift run swift-doc diagram Alamofire/Source > Alamofire.gv +$ head Alamofire.gv digraph Anonymous { "Session" [shape=box]; "NetworkReachabilityManager" [shape=box]; @@ -190,7 +190,7 @@ digraph Anonymous { "DataRequest" [shape=box]; "Request" [shape=box]; -$ dot -T svg graph.dot > graph.svg +$ dot -T svg Alamofire.gv > Alamofire.svg ``` Here's an excerpt of the graph generated for Alamofire: