diff --git a/docs/getting-started/examples.md b/docs/getting-started/examples.md index 0e7b3916..39f262a4 100644 --- a/docs/getting-started/examples.md +++ b/docs/getting-started/examples.md @@ -169,3 +169,19 @@ with Diagram("Stateful Architecture", show=False): ``` ![stateful architecture diagram](/img/stateful_architecture_diagram.png) + +## Using Custom Images + +```python +from diagrams import Diagram +from diagrams.custom import Custom +from diagrams.k8s.compute import Pod + +with Diagram("Custom Node Example", show=False): + pod = Pod("pod") + node = Custom("service", "/img/diagrams.png") + + node >> pod +```` + +![custom node diagram](/img/custom_node_example_diagram.png) diff --git a/website/static/img/custom_node_example_diagram.png b/website/static/img/custom_node_example_diagram.png new file mode 100644 index 00000000..55bcf81f Binary files /dev/null and b/website/static/img/custom_node_example_diagram.png differ