@@ -10,29 +10,27 @@ At the end of each run the user is prompted to rerun the make process. Using rev
10
10
use the updated `*.md` and source files. This way the Julia session keeps alive and the
11
11
individual builds are much faster.
12
12
=#
13
-
14
- #=
15
13
using Pkg
14
+ using Revise
15
+ using LiveServer
16
+
16
17
Pkg. activate (@__DIR__ )
17
- Pkg.instantiate()
18
+ Pkg. develop ( PackageSpec (path = dirname ( @__DIR__ ))) # adds the package this script is called from
18
19
print (" Do you want to update docs environment? [y/n] " )
19
20
answer = readline ()
20
21
if ! isempty (answer) && answer[1 ] == ' y'
21
22
Pkg. update ()
22
23
end
23
-
24
- using Revise
25
- using LiveServer
26
- using REPL.TerminalMenus
24
+ Pkg. instantiate ()
27
25
28
26
port = isempty (ARGS ) ? 8000 : parse (Int, ARGS [1 ])
29
27
@assert 8000 ≤ port ≤ 9000 " port has to be in range 8000..9000!"
30
28
31
29
@info " Start server..."
32
30
@async serve (;dir= joinpath (@__DIR__ , " build" ), port)
33
31
34
- menu = RadioMenu(["Run again!", "Quit!"])
35
- while true
32
+ run = true
33
+ while run
36
34
revise ()
37
35
@info " Start building docs..."
38
36
try
@@ -41,23 +39,22 @@ while true
41
39
@info " make.jl error" e
42
40
end
43
41
44
- println ("\nDocs are served at http://localhost:$port" )
45
-
46
- if request("What now?", menu) != 1
47
- break
42
+ printstyled (" \n\ n Docs are served at http://localhost:$port \n\n " , color = :blue , bold = true )
43
+ println ( " Run again? Enter! Exit with 'q'. " )
44
+ if readline () == " q "
45
+ global run = false
48
46
end
49
47
end
50
- =#
51
48
52
49
53
- using Pkg
54
- Pkg. activate (@__DIR__ )
55
- using NetworkDynamics
56
- using LiveServer
50
+ # using Pkg
51
+ # Pkg.activate(@__DIR__)
52
+ # using NetworkDynamics
53
+ # using LiveServer
57
54
58
- cd (pkgdir (NetworkDynamics))
55
+ # cd(pkgdir(NetworkDynamics))
59
56
60
- servedocs (
61
- literate_dir = joinpath (" docs" , " examples" ),
62
- skip_dir = joinpath (" docs" , " src" , " generated" )
63
- )
57
+ # servedocs(
58
+ # literate_dir = joinpath("docs", "examples"),
59
+ # skip_dir = joinpath("docs", "src", "generated")
60
+ # )
0 commit comments