Draw.io (diagrams.net) is a powerful, free diagramming tool that can be used to create various types of diagrams including flowcharts, network diagrams, UML diagrams, and more. This guide shows how to integrate Draw.io diagrams into your Sphinx documentation.
Draw.io supports multiple tabs (pages) in a single diagram file. When viewing the HTML export in a browser, you can navigate between tabs.
Caution
For PDF Export: If you plan to export your documentation as PDF, create separate Draw.io files for each tab/page. PDF export typically only shows one tab, so having multiple tabs may cause content to be hidden.
You can also embed Draw.io diagrams inside Sphinx-Needs to enable traceability:
..arch:: System Architecture with Draw.io
:id: ARCH_005
This architecture diagram shows the system components:
..raw:: html
:file: ./_diagrams/system-architecture.drawio.html