From 40ab1122b071ee4ce3f5ee4b74cd8e71dbf034f6 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Wed, 14 Aug 2024 20:54:44 +0200 Subject: [PATCH] hide cdn bundle warning --- .github/workflows/IntegrationTest.yml | 2 ++ src/notebook/Export.jl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/IntegrationTest.yml b/.github/workflows/IntegrationTest.yml index aa9c032acf..bd7e9eeb3b 100644 --- a/.github/workflows/IntegrationTest.yml +++ b/.github/workflows/IntegrationTest.yml @@ -24,6 +24,8 @@ on: branches-ignore: - release +env: + JULIA_PLUTO_IGNORE_CDN_BUNDLE_WARNING: true jobs: test: diff --git a/src/notebook/Export.jl b/src/notebook/Export.jl index d49261a5ce..fa9cd5d02d 100644 --- a/src/notebook/Export.jl +++ b/src/notebook/Export.jl @@ -36,7 +36,7 @@ function cdnified_html(filename::AbstractString; URIs.resolvereference(cdn_root, url) |> string end catch e - @warn "Could not use bundled CDN version of $(filename). You should only see this message if you are using a fork of Pluto." exception=(e,catch_backtrace()) maxlog=1 + get(ENV, "JULIA_PLUTO_IGNORE_CDN_BUNDLE_WARNING", "false") == "true" || @warn "Could not use bundled CDN version of $(filename). You should only see this message if you are using a fork of Pluto." exception=(e,catch_backtrace()) maxlog=1 nothing end end,