🩹 (BetaSchedules) fix plotlyJS display, set prettyurl to true and savefig in folder

This commit is contained in:
Laureηt 2023-08-05 12:31:18 +02:00
parent 234183b459
commit de5b6b4b3a
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
3 changed files with 6 additions and 9 deletions

View file

@ -3,4 +3,3 @@ Diffusers = "90edb7a8-79d7-49b2-b6b1-9322c3fdead8"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
PlotlyJS = "f0f68f2c-4968-5e81-91da-67840de0976a"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"

View file

@ -1,6 +1,5 @@
using Diffusers
using Documenter
using Plots
DocMeta.setdocmeta!(Diffusers, :DocTestSetup, :(using Diffusers); recursive=true)
@ -10,7 +9,7 @@ makedocs(;
repo="https://github.com/Laurent2916/Diffusers.jl/blob/{commit}{path}#{line}",
sitename="Diffusers.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
prettyurls=true,
edit_link="main",
assets=String[]
),

View file

@ -52,8 +52,6 @@ p1 = plot(
)
)
savefig(p1, "fig_beta_schedules.html")
p2 = plot(
[
scatter(y=α̅_linear, name="Linear"),
@ -89,14 +87,15 @@ p2 = plot(
)
)
savefig(p2, "fig_alpha_bar_schedules.html")
mkpath("beta_schedules")
savefig(p1, "beta_schedules/beta_schedules.html")
savefig(p2, "beta_schedules/alpha_bar_schedules.html")
nothing
```
```@raw html
<object type="text/html" data="../fig_beta_schedules.html" style="width:100%;height:420px;"></object>
<object type="text/html" data="../fig_alpha_bar_schedules.html" style="width:100%;height:420px;"></object>
<object type="text/html" data="beta_schedules.html" style="width:100%;height:420px;"></object>
<object type="text/html" data="alpha_bar_schedules.html" style="width:100%;height:420px;"></object>
```