From 11afc633d3063ab5cb3eb68cfb522a20c5297070 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 7 Dec 2021 03:51:52 +0100 Subject: [PATCH] update to Pluto 0.17 --- Project.toml | 6 +++--- src/PlutoPDF.jl | 2 +- test/runtests.jl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Project.toml b/Project.toml index d54d952..989a88c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PlutoPDF" uuid = "6eb38059-8c05-41f7-8871-5e7e2697ace6" license = "MIT" -version = "0.1.1" +version = "0.1.2" [deps] DefaultApplication = "3f0dd361-4fe0-5fc6-8523-80b14ec94d85" @@ -13,8 +13,8 @@ Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781" [compat] julia = "1.6" JSON = "0.20, 0.21" -NodeJS = "1.1.1" -Pluto = "0.14.7,0.15" +NodeJS = "1.3.0" +Pluto = "0.16, 0.17" DefaultApplication = "1" [extras] diff --git a/src/PlutoPDF.jl b/src/PlutoPDF.jl index 39c1070..91b55f0 100644 --- a/src/PlutoPDF.jl +++ b/src/PlutoPDF.jl @@ -66,7 +66,7 @@ function pluto_to_pdf(notebook_path::AbstractString, output_path::Union{Abstract s = Pluto.ServerSession(;options=c) @info "Running notebook..." nb = Pluto.SessionActions.open(s, notebook_path; run_async=false) - html_contents = Pluto.generate_html(nb; binder_url_js="undefined", version="cd7c123") + html_contents = Pluto.generate_html(nb; binder_url_js="undefined") Pluto.SessionActions.shutdown(s, nb) filename = tempname() * ".html" diff --git a/test/runtests.jl b/test/runtests.jl index 9c4d134..7c3411b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -6,8 +6,8 @@ using PlutoPDF testfile = download("https://raw.githubusercontent.com/fonsp/Pluto.jl/main/sample/Tower%20of%20Hanoi.jl") -outfile = @test_nowarn pluto_to_pdf(testfile; open=false) + +outfile = pluto_to_pdf(testfile; open=get(ENV, "CI", "no") == "no") @test isfile(outfile) @test endswith(outfile, ".pdf") -