Embed interactive .html plot in documentation using Documenter.jl

I was wondering if it is possible to embed an interactive .html plot as outputted by Plots plotlyjs() savefig to a documentation page as rendered by Documenter.jl.
I tried copy pasting the raw HTML from the plot .html file in a @raw html block but this does not seem to work. A blank canvas is shown on the rendered documentation page.

Thanks!

I found a solution:

```@example
using PlotlyJS

plt = plot(scatter(x=1:10, y=1:10))

savefig(plt, "figure.html")
```

```@raw html
<iframe src="figure.html" style="height:500px;width:100%;"></iframe>
```
4 Likes