From 95ae33309cd4225f5bd786e0dad3aba7fc76c9c8 Mon Sep 17 00:00:00 2001 From: Helen Pickavance Date: Wed, 2 Oct 2024 12:09:52 +0100 Subject: [PATCH] Update Visualising Flows - swap example to check-uk-visa --- docs/debugging/visualising-flows.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/debugging/visualising-flows.md b/docs/debugging/visualising-flows.md index 9b54dd79c9b..546d85ed8b0 100644 --- a/docs/debugging/visualising-flows.md +++ b/docs/debugging/visualising-flows.md @@ -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//y/visualise` or `https://www.gov.uk//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//y/visualise` or `https://www.gov.uk//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`).