Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 4c0c559

Browse files
authored
Use .gv file extension for GraphViz DOT output (#163)
1 parent 57e4008 commit 4c0c559

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ generates a graph of APIs in [DOT format][dot]
177177
that can be rendered by [GraphViz][graphviz] into a diagram.
178178

179179
```terminal
180-
$ swift run swift-doc diagram Alamofire/Source > graph.dot
181-
$ head graph.dot
180+
$ swift run swift-doc diagram Alamofire/Source > Alamofire.gv
181+
$ head Alamofire.gv
182182
digraph Anonymous {
183183
"Session" [shape=box];
184184
"NetworkReachabilityManager" [shape=box];
@@ -190,7 +190,7 @@ digraph Anonymous {
190190
"DataRequest" [shape=box];
191191
"Request" [shape=box];
192192
193-
$ dot -T svg graph.dot > graph.svg
193+
$ dot -T svg Alamofire.gv > Alamofire.svg
194194
```
195195

196196
Here's an excerpt of the graph generated for Alamofire:

0 commit comments

Comments
 (0)