-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Visualising Flows - swap example to check-uk-visa
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
# Visualising flows | ||
|
||
To see an interactive visualisation of a smart answer flow, append `/y/visualise` to the root of a smart answer URL e.g. `http://smartanswers.dev.gov.uk/<smart-answer>/y/visualise` or `https://www.gov.uk/<smart-answer>/y/visualise` | ||
To see an interactive visualisation of a smart answer flow, append `/y/visualise` to the root of a smart answer URL e.g. `http://smart-answers.dev.gov.uk/<smart-answer>/y/visualise` or `https://www.gov.uk/<smart-answer>/y/visualise` | ||
|
||
To see a static visualisation of a smart answer flow, using Graphviz: | ||
|
||
```bash | ||
# Download graphviz representation | ||
$ curl https://www.gov.uk/marriage-abroad/y/visualise.gv --silent > /tmp/marriage-abroad.gv | ||
$ curl https://www.gov.uk/check-uk-visa/y/visualise.gv --silent > /tmp/check-uk-visa.gv | ||
|
||
# Use Graphviz to generate a PNG | ||
$ dot /tmp/marriage-abroad.gv -Tpng > /tmp/marriage-abroad.png | ||
$ dot /tmp/check-uk-visa.gv -Tpng > /tmp/check-uk-visa.png | ||
|
||
# Open the PNG | ||
$ open /tmp/marriage-abroad.png | ||
$ open /tmp/check-uk-visa.png | ||
``` | ||
|
||
__NOTE.__ This assumes you already have Graphviz installed. You can install it using Homebrew on a Mac (`brew install graphviz`). |