|
67 | 67 | # |
68 | 68 | # (b) if docs is not the current active environment, switch to it |
69 | 69 | # (from https://github.com/JuliaIO/HDF5.jl/pull/1020/) |
| 70 | +using Pkg |
70 | 71 | if Base.active_project() != joinpath(@__DIR__, "Project.toml") |
71 | | - using Pkg |
72 | 72 | Pkg.activate(@__DIR__) |
73 | | - # local temp hack - load ManifoldsBase and Manifold in dev as well |
74 | | - Pkg.develop(PackageSpec(; path=(@__DIR__) * "/../")) |
75 | | - Pkg.resolve() |
76 | | - Pkg.instantiate() |
77 | 73 | end |
| 74 | +# load LieGroups in dev mode |
| 75 | +Pkg.develop(PackageSpec(; path=(@__DIR__) * "/../")) |
| 76 | +Pkg.resolve() |
| 77 | +Pkg.instantiate() |
78 | 78 |
|
79 | 79 | # (c) If quarto is set, or we are on CI, run quarto |
80 | 80 | if run_quarto || run_on_CI |
81 | | - using CondaPkg |
82 | | - CondaPkg.withenv() do |
83 | | - @info "Rendering Quarto" |
84 | | - tutorials_folder = (@__DIR__) * "/../tutorials" |
85 | | - # instantiate the tutorials environment if necessary |
86 | | - Pkg.activate(tutorials_folder) |
87 | | - # For a breaking release -> also set the tutorials folder to the most recent version |
88 | | - Pkg.develop(PackageSpec(; path=(@__DIR__) * "/../")) |
89 | | - Pkg.resolve() |
90 | | - Pkg.instantiate() |
91 | | - Pkg.build("IJulia") # build `IJulia` to the right version. |
92 | | - Pkg.activate(@__DIR__) # but return to the docs one before |
93 | | - run(`quarto render $(tutorials_folder)`) |
94 | | - return nothing |
95 | | - end |
| 81 | + @info "Rendering Quarto" |
| 82 | + tutorials_folder = (@__DIR__) * "/../tutorials" |
| 83 | + # instantiate the tutorials environment if necessary |
| 84 | + Pkg.activate(tutorials_folder) |
| 85 | + # For a breaking release -> also set the tutorials folder to the most recent version |
| 86 | + Pkg.develop(PackageSpec(; path=(@__DIR__) * "/../")) |
| 87 | + Pkg.resolve() |
| 88 | + Pkg.instantiate() |
| 89 | + Pkg.activate(@__DIR__) # but return to the docs one before |
| 90 | + run(`quarto render $(tutorials_folder)`) |
96 | 91 | else |
97 | 92 | # fallback to at least create empty files for tutorials that are directly linked from the docs |
98 | 93 | touch(joinpath(@__DIR__, "src/tutorials/getstarted.md")) |
|
0 commit comments