LukeCarrier / mkdocs-drawio-exporter

Exports your Draw.io diagrams at build time for easier embedding into your documentation
https://pypi.org/project/mkdocs-drawio-exporter/
MIT License
81 stars 9 forks source link

Is it possible to use non standard shape libraries? #44

Closed stoney95 closed 6 months ago

stoney95 commented 1 year ago

Using the exporter works fine. But the exports don't display Icons / Shapes that are coming from non-standard shape libraries.

When drawing my diagram I added them with "+ More Shapes" and then selecting - in my case - the Azure shapes.

Screenshot 2023-02-01 at 13 17 42
LukeCarrier commented 1 year ago

Not right now, but this is a great enhancement request 🙂

I can't commit to ETAs right now as I'm not actively using this plugin but I will keep the issue open in case I or someone else has a go at implementing it.

codymwalker commented 1 year ago

I saw the same behavior with non-standard shapes. It looks like this is possible without any code changes though. Testing locally with the draw.io CLI arguments, I was able to get the shapes showing by passing --embed-svg-images. You have the ability to pass additional arguments to the exporter via the MkDocs config, which get added to the underlying command.

plugins:
    - drawio-exporter:
        format: svg
        drawio_args: [--embed-svg-images]

Hope that helps @stoney95.