-
Notifications
You must be signed in to change notification settings - Fork 1
/
devrepl.jl
36 lines (32 loc) · 904 Bytes
/
devrepl.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Source this script as e.g.
#
# include("PATH/TO/devrepl.jl")
#
# from *any* Julia REPL or run it as e.g.
#
# julia -i --banner=no PATH/TO/devrepl.jl
#
# from anywhere. This will change the current working directory and
# activate/initialize the correct Julia environment for you.
#
# You may also run this in vscode to initialize a development REPL
#
using Pkg
Pkg.activate("test")
function _instantiate()
path_DocumenterInterLinks = joinpath("..", "DocumenterInterLinks.jl")
if isdir(path_DocumenterInterLinks)
Pkg.develop(path=path_DocumenterInterLinks)
end
Pkg.develop(path=".")
end
if !isfile(joinpath("test", "Manifest.toml"))
_instantiate()
end
include("test/init.jl")
# Disable link-checking in interactive REPL, since it is the slowest part
# of building the docs.
ENV["DOCUMENTER_CHECK_LINKS"] = "0"
if abspath(PROGRAM_FILE) == @__FILE__
help()
end