Skip to content

Commit 67d4f56

Browse files
committed
update build_docu.jl
1 parent 2ff6de3 commit 67d4f56

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/build_docu.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
# you must have installed the package LiveServer in your global environment
33

44
using Pkg
5+
6+
function globaldependencies()
7+
projectpath = Pkg.project().path
8+
basepath, _ = splitdir(projectpath)
9+
Pkg.activate()
10+
globaldependencies = keys(Pkg.project().dependencies)
11+
Pkg.activate(basepath)
12+
globaldependencies
13+
end
14+
15+
if !("LiveServer" in globaldependencies())
16+
println("Installing LiveServer globally!")
17+
run(`julia -e 'using Pkg; Pkg.add("LiveServer")'`)
18+
end
19+
520
if !("Documenter" keys(Pkg.project().dependencies))
621
using TestEnv
722
TestEnv.activate()

0 commit comments

Comments
 (0)