Skip to content

Commit

Permalink
docs: implement support for local make with env
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Buer <[email protected]>
  • Loading branch information
ErikBuer committed Dec 31, 2023
1 parent 8d64a73 commit b4c6d4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ push!(LOAD_PATH,"../src/")

using Documenter

# Check if LOCAL is defined; if not, set it to false
const LOCAL = get(ENV, "LOCAL", "false") == "true"

if LOCAL
include("../src/RadioPropagation.jl")
using .RadioPropagation
Expand Down
2 changes: 1 addition & 1 deletion docs/make_local.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ using Pkg
Pkg.activate("docs/")
Pkg.instantiate()

LOCAL = true
ENV["LOCAL"] = "true"

include("make.jl")

0 comments on commit b4c6d4b

Please sign in to comment.