Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiede committed Jun 10, 2024
1 parent 1bafdd6 commit eb33738
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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(;
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit eb33738

Please sign in to comment.