From 692efd67def3b8fc426cd45acd077fadd811b437 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Tue, 10 Sep 2024 00:38:18 -0400 Subject: [PATCH] Add zoom support, add ELK example --- docs/src/configuration.md | 39 +++++++++++++++++++++++++++++++++++++++ yardang/conf.py.j2 | 3 +++ 2 files changed, 42 insertions(+) diff --git a/docs/src/configuration.md b/docs/src/configuration.md index 454f7a5..df53819 100644 --- a/docs/src/configuration.md +++ b/docs/src/configuration.md @@ -168,3 +168,42 @@ graph TD; B-->D; C-->D; ``` + +```mermaid +%%{init: {"flowchart": {"defaultRenderer": "elk"}} }%% + +graph TD + A[\Replenish Value Add stock/] --->C + B(Order product with Value Add) --->C + C{Frequent process?} --->|Yes|D + C --->|No|F + D{New template?} --->|Yes|E + D --->|No|G + E(Create work order template) --->G + F(Create work order) --->H + G(Copy template to work order) --->I + H(Add materials to work order processes) --->J + I(Adjust material quantities) --->J + J(Monitor work orders) --->K + K{Material quantities in stock?} --->|No|L + K --->|Yes|M + L(Procure materials) --->M + M(Change status to In Progress) --->N + N{External Vendor to perform step?} --->|Yes|O + N --->|No|P + O(Add vendor costs) --->Q + P[\Perform work order step/] --->R + Q([Ship materials to Vendor]) --->S --->X + R{Additional processing required?} --->|Yes|N + R--->|No|T + S[\Perform work order step/] --->U + T(Receive final stock) --->V + U(Receive product from vendor) --->W + V(Ship product on order) --->Y + W{Partial quantity received?} --->|Yes|X + W --->|No|Z + X[Create work order backorder] ---> J + Y(Change status to complete) --->AA + Z(Pay vendor invoice) --->R + AA([Finish]) +``` diff --git a/yardang/conf.py.j2 b/yardang/conf.py.j2 index 509df4e..742d661 100644 --- a/yardang/conf.py.j2 +++ b/yardang/conf.py.j2 @@ -79,6 +79,9 @@ myst_fence_as_directive = ["mermaid"] nb_execution_mode = "{{nb_execution_mode}}" nb_execution_excludepatterns = {{nb_execution_excludepatterns}} +#sphinxcontrib.mermaid +mermaid_d3_zoom = True + # autosummary autosummary_generate = True