From dd0797fcfd085a87e701c0af7ee38fa5fde0f4f7 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 7 Apr 2025 14:54:50 -0400 Subject: [PATCH] docs: Make the graph render correctly. I'm not sure how this worked before but I corrected to use the `graphviz` directive and then full graphviz graph syntax which seemed to fix whatever issues it was having. --- scripts/user_retirement/docs/special_cases.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/user_retirement/docs/special_cases.rst b/scripts/user_retirement/docs/special_cases.rst index ae544c3208..bded2d76bc 100644 --- a/scripts/user_retirement/docs/special_cases.rst +++ b/scripts/user_retirement/docs/special_cases.rst @@ -19,9 +19,10 @@ re-tried. You can do this using the Django admin. In this example, a user retirement errored during forums retirement, so we manually reset their state from ``ERRORED`` to ``ENROLLMENTS_COMPLETE``. -.. digraph:: retirement_states_example +.. graphviz:: :align: center + digraph G { //rankdir=LR; // Rank Direction Left to Right ranksep = "0.3"; @@ -49,6 +50,7 @@ from ``ERRORED`` to ``ENROLLMENTS_COMPLETE``. } ERRORED -> ENROLLMENTS_COMPLETE[style="bold,dashed",color=black,label=" via django\nadmin"] + } Now, the user retirement driver scripts will automatically resume this user's retirement the next time they are executed.