From 8ed78852affe77cd9f9daafc531eb999ed08bd6b Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Tue, 21 Jul 2026 13:57:33 -0500 Subject: [PATCH] Render RADIUS diagrams in Read the Docs --- docs-es/conf.py | 2 +- docs-es/requirements.txt | 3 ++- docs-es/v2.0/radius-es.md | 6 +++--- docs/v2.0/radius.md | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs-es/conf.py b/docs-es/conf.py index e47eb31a..3f6722b0 100644 --- a/docs-es/conf.py +++ b/docs-es/conf.py @@ -16,7 +16,7 @@ author = "LibreQoE, LLC" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions = ["myst_parser"] +extensions = ["myst_parser", "sphinxcontrib.mermaid"] myst_enable_extensions = [ 'substitution' diff --git a/docs-es/requirements.txt b/docs-es/requirements.txt index 17ed7e25..5838e5f0 100644 --- a/docs-es/requirements.txt +++ b/docs-es/requirements.txt @@ -1,3 +1,4 @@ sphinx==6.2.1 sphinx_rtd_theme -myst-parser \ No newline at end of file +myst-parser +sphinxcontrib-mermaid diff --git a/docs-es/v2.0/radius-es.md b/docs-es/v2.0/radius-es.md index 6b4dc793..0757e671 100644 --- a/docs-es/v2.0/radius-es.md +++ b/docs-es/v2.0/radius-es.md @@ -18,7 +18,7 @@ el acceso de clientes pasa por LibreQoS hasta el BNG y después a Internet. Los paquetes Accounting indican a LibreQoS qué circuito activo de abonado es dueño del tráfico que ya puede observar. -```mermaid +```{mermaid} flowchart LR CPE[CPE del cliente] --> ACCESS[Red de acceso] ACCESS --> LQOS[Shaper LibreQoS en línea] @@ -31,7 +31,7 @@ LibreQoS no termina PPPoE y la contabilidad RADIUS no redirige el tráfico de clientes a través de LibreQoS. El BNG termina PPPoE; LibreQoS usa la identidad de contabilidad para crear y eliminar el circuito de shaping correspondiente. -```mermaid +```{mermaid} sequenceDiagram participant CPE as CPE del abonado participant BNG as BNG / NAS @@ -154,7 +154,7 @@ LibreQoS. LibreQoS necesita paquetes de contabilidad, no paquetes Access-Request ni Access-Accept. El proxy gestiona la relación de secreto compartido en ambos tramos y es el cliente RADIUS incluido en `radius_accounting.clients`. -```mermaid +```{mermaid} flowchart LR CPE[CPE del abonado] -->|PPPoE| BNG[BNG MikroTik] BNG -->|UDP 1812/1813| PROXY[Proxy RADIUS] diff --git a/docs/v2.0/radius.md b/docs/v2.0/radius.md index 669fdb1f..f3adeb91 100644 --- a/docs/v2.0/radius.md +++ b/docs/v2.0/radius.md @@ -16,7 +16,7 @@ it can inspect traffic inside the PPPoE session: customer access flows through LibreQoS to the BNG, then to the Internet. The Accounting packets tell LibreQoS which active subscriber circuit owns the traffic it can already observe. -```mermaid +```{mermaid} flowchart LR CPE[Customer CPE] --> ACCESS[Access network] ACCESS --> LQOS[LibreQoS inline shaper] @@ -29,7 +29,7 @@ LibreQoS does not terminate PPPoE and RADIUS accounting does not redirect customer traffic through LibreQoS. The BNG terminates PPPoE; LibreQoS uses the accounting identity to create and remove the corresponding shaping circuit. -```mermaid +```{mermaid} sequenceDiagram participant CPE as Subscriber CPE participant BNG as BNG / NAS @@ -149,7 +149,7 @@ proxy to LibreQoS. LibreQoS needs Accounting packets, not Access-Request or Access-Accept packets. The proxy owns the shared-secret relationship on both legs and is the RADIUS client listed in `radius_accounting.clients`. -```mermaid +```{mermaid} flowchart LR CPE[Subscriber CPE] -->|PPPoE| BNG[MikroTik BNG] BNG -->|UDP 1812/1813| PROXY[RADIUS proxy] -- knotmirror 0.0.1