Skip to content

Commit

Permalink
add warning about windows not fully supported
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Feb 12, 2024
1 parent 42285cf commit 3ace873
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import NodeJS_18_jll: npm

@assert isfile(npm)


if Sys.iswindows()
@warn "Windows might not be supported because of https://github.com/JuliaPackaging/Yggdrasil/issues/8095"
end

node_root = normpath(joinpath(@__DIR__, "../node"))
run(`$npm --version`)
println(run(`$npm --prefix=$node_root --scripts-prepend-node-path=true install $node_root`))
6 changes: 6 additions & 0 deletions src/PlutoPDF.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ function pluto_to_pdf(notebook_path::AbstractString, output_path::Union{Abstract
html_to_pdf(filename, output_path; kwargs...)
end

function __init__()
if Sys.iswindows()
@warn "Windows might not be supported because of https://github.com/JuliaPackaging/Yggdrasil/issues/8095"
end
end

@deprecate pdf(args...; kwargs...) pluto_to_pdf(args...; kwargs...)

end

0 comments on commit 3ace873

Please sign in to comment.