From eb337382a3ce5db4d698bae8f46c18ca31c127bd Mon Sep 17 00:00:00 2001 From: Paul Tiede Date: Mon, 10 Jun 2024 15:47:48 -0400 Subject: [PATCH] try again --- docs/make.jl | 18 +++++++++--------- docs/tutorials.jl | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index 8cea1c48..a3840ba3 100755 --- a/docs/make.jl +++ b/docs/make.jl @@ -17,16 +17,16 @@ TUTORIALS = [ "Overview" => "tutorials/index.md", "Beginner" =>[ "tutorials/beginner/LoadingData.md", - "tutorials/beginner/GeometricModeling.md" + #"tutorials/beginner/GeometricModeling.md" ], - "Intermediate" => [ - "tutorials/intermediate/ClosureImaging.md", - "tutorials/intermediate/StokesIImaging.md", - "tutorials/intermediate/PolarizedImaging.md" - ], - "Advanced" => [ - "tutorials/advanced/HybridImaging.md", - ] + #"Intermediate" => [ + # "tutorials/intermediate/ClosureImaging.md", + # "tutorials/intermediate/StokesIImaging.md", + # "tutorials/intermediate/PolarizedImaging.md" + # ], + #"Advanced" => [ + # "tutorials/advanced/HybridImaging.md", + # ] ] makedocs(; diff --git a/docs/tutorials.jl b/docs/tutorials.jl index 8275e98c..1816976e 100644 --- a/docs/tutorials.jl +++ b/docs/tutorials.jl @@ -24,7 +24,7 @@ withenv("JULIA_DEBUG"=>"Literate") do d = "$((rsplit(p, "/")[1]))" p_ = get_example_path(p) @info d - jl_expr = "using Literate; preprocess(path, str) = replace(str, \"__DIR = @__DIR__\" => \"__DIR = \\\"\$(dirname(path))\\\"\"); Literate.markdown(\"$(p_)\", \"$(joinpath(OUTPUT, d))\"; name=\"$name\", execute=false, documenter=true, preprocess=Base.Fix1(preprocess, \"$(p_)\"))" + jl_expr = "using Literate; preprocess(path, str) = replace(str, \"__DIR = @__DIR__\" => \"__DIR = \\\"\$(dirname(path))\\\"\"); Literate.markdown(\"$(p_)\", \"$(joinpath(OUTPUT, d))\"; name=\"$name\", execute=true, flavor=Literate.DocumenterFlavor(), preprocess=Base.Fix1(preprocess, \"$(p_)\"))" cm = `julia --project=$(@__DIR__) -e $(jl_expr)` run(cm)