From de5b6b4b3a17f9afa4734600f089756e101ac77a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Sat, 5 Aug 2023 12:31:18 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20(BetaSchedules)=20fix=20plotlyJS?= =?UTF-8?q?=20display,=20set=20prettyurl=20to=20true=20and=20savefig=20in?= =?UTF-8?q?=20folder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Project.toml | 1 - docs/make.jl | 3 +-- docs/src/beta_schedules.md | 11 +++++------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/docs/Project.toml b/docs/Project.toml index 24160e5..ce47589 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -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" diff --git a/docs/make.jl b/docs/make.jl index 954c995..98bf9f9 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -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[] ), diff --git a/docs/src/beta_schedules.md b/docs/src/beta_schedules.md index 9d355c3..7ba4757 100644 --- a/docs/src/beta_schedules.md +++ b/docs/src/beta_schedules.md @@ -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 - - + + ```