From 3068a9454edda37352b1494143c42be081f3569b Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Sun, 13 Feb 2022 18:57:28 +0100 Subject: [PATCH] Set version to 3.4.1 --- Project.toml | 2 +- start_server.jl | 52 ------------------------------------------------- 2 files changed, 1 insertion(+), 53 deletions(-) delete mode 100644 start_server.jl diff --git a/Project.toml b/Project.toml index ba80c184..63d251fc 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "PlutoStaticHTML" uuid = "359b1769-a58e-495b-9770-312e911026ad" authors = ["Rik Huijzer "] -version = "3.4.0" +version = "3.4.1" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" diff --git a/start_server.jl b/start_server.jl deleted file mode 100644 index 65826de3..00000000 --- a/start_server.jl +++ /dev/null @@ -1,52 +0,0 @@ -using Pkg; -Pkg.activate(; temp=true) -Pkg.add("LiveServer") - -ENV["DISABLE_NOTEBOOK_BUILD"] = true - -using LiveServer - -PKGDIR = @__DIR__ - -Pkg.activate(joinpath(PKGDIR, "docs")) - -dir = joinpath(PKGDIR, "docs", "src") - -function build_docs() - println("Running docs/make.jl") - include(joinpath(PKGDIR, "docs", "make.jl")) -end - -function custom_callback(file::AbstractString) - if endswith(file, ".jl") - revise() - build_docs() - end - LiveServer.file_changed_callback(file) -end - -function custom_simplewatcher() - # The callback, defined by LiveServer.jl, receives a file. - cb(file) = custom_callback(file) - sw = LiveServer.SimpleWatcher(cb) - - src_dir = joinpath(PKGDIR, "src") - for path in readdir(src_dir; join=true) - println("Watching $path") - LiveServer.watch_file!(sw, path) - end - - scripts_dir = joinpath(PKGDIR, "docs", "src", "assets") - for path in readdir(scripts_dir; join=true) - println("Watching $path") - LiveServer.watch_file!(sw, path) - end - return sw -end - -fw = custom_simplewatcher() - -build_docs() - -build_dir = joinpath(PKGDIR, "docs", "build") -serve(fw; dir=build_dir)