From 521ea3523852024ab47af8f7e47beafb01cb6b37 Mon Sep 17 00:00:00 2001 From: Olivier Cots Date: Wed, 21 Oct 2026 08:47:37 +0200 Subject: [PATCH] fix(docs): append repo root to LOAD_PATH so docs/ wins Same fix as CTSolvers 4ef5f46a and CTFlows#488. Co-Authored-By: Claude Sonnet 5.5 --- docs/make.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index 9110b586..b1714cac 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -4,8 +4,11 @@ # to serve the documentation (option 2 — Julia only): # julia --project=docs -e 'using LiveServer; LiveServer.serve(dir="docs/build/1", single_page=true)' # note: single_page=true is required so that reloading /getting-started serves the correct HTML -pushfirst!(LOAD_PATH, joinpath(@__DIR__)) -pushfirst!(LOAD_PATH, joinpath(@__DIR__, "..")) +# Append (not prepend): docs/Manifest.toml must win for shared deps; the repo root is only +# needed to find the local CTModels. Prepending it lets the root environment shadow docs/ and +# breaks the precompilation of extensions on weak dependencies installed only in docs/. +push!(LOAD_PATH, joinpath(@__DIR__)) +push!(LOAD_PATH, joinpath(@__DIR__, "..")) using Documenter using DocumenterVitepress