diff --git a/docs/make.jl b/docs/make.jl index e890b264..871e5f2c 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -90,11 +90,12 @@ for file in files rm(file) end -deploydocs( - repo = "github.com/FourierFlows/FourierFlowsDocumentation.git", - versions = ["stable" => "v^", "v#.#.#", "dev" => "dev"], - forcepush = true, - push_preview = true, - repo_previews = "github.com/FourierFlows/FourierFlows.jl.git", - devbranch = "main" -) +withenv("GITHUB_REPOSITORY" => "FourierFlows/FourierFlowsDocumentation") do + deploydocs( + repo = "github.com/FourierFlows/FourierFlowsDocumentation.git", + versions = ["stable" => "v^", "v#.#.#", "dev" => "dev"], + forcepush = true, + push_preview = true, + devbranch = "main" + ) +end