Skip to content

Commit 63ce80c

Browse files
skip ci
1 parent 01bc572 commit 63ce80c

22 files changed

Lines changed: 164099 additions & 27 deletions

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@ confidential/
4141
!.vscode/tasks.json
4242
onelab
4343
showcase
44-
!showcase/*.jl
44+
!showcase/*.jl
45+
papers
46+
sprint

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"julia.environmentPath": "/home/amartins/Documents/KUL/LineCableModels/dev"
3-
}
1+
{}

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
2222
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
2323
PlotlyJS = "f0f68f2c-4968-5e81-91da-67840de0976a"
2424
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
25+
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
2526
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2627
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
2728
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
@@ -46,6 +47,7 @@ Measurements = "2.11.0"
4647
Pkg = "1.11.0"
4748
PlotlyJS = "0.18.15"
4849
Plots = "1.40.9"
50+
Printf = "1.11.0"
4951
Reexport = "1.2.2"
5052
Revise = "3.7.2"
5153
Serialization = "1.11.0"
@@ -60,6 +62,7 @@ Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"
6062
DisplayAs = "0b91fe84-8a4c-11e9-3e1d-67c38462b6d6"
6163
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
6264
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
65+
HypertextLiteral = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
6366
Infiltrator = "5903a43b-9cc3-4c30-8d17-598619ec4e9b"
6467
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
6568
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
@@ -75,7 +78,6 @@ SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
7578
SymSpellChecker = "bb1b64e9-0ccc-445c-80cb-5313b9f7dfe1"
7679
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7780
TestItemRunner = "f8b46487-2199-4994-9208-9a1283c18c0a"
78-
HypertextLiteral = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
7981

8082
[targets]
8183
dev = ["ArgParse", "BenchmarkTools", "Infiltrator", "JET", "JuliaFormatter", "LocalRegistry", "ProfileView", "Revise", "SymSpellChecker", "TestItemRunner"]

assets/img/sponsorlogo_WEWIS.svg

Lines changed: 247 additions & 0 deletions
Loading

docs/make.jl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,27 @@ function get_project_toml()
1717
return project_toml
1818
end
1919

20+
function open_in_default_browser(url::AbstractString)::Bool
21+
try
22+
if Sys.isapple()
23+
Base.run(`open $url`)
24+
true
25+
elseif Sys.iswindows()
26+
Base.run(`powershell.exe Start "'$url'"`)
27+
true
28+
elseif Sys.islinux()
29+
Base.run(`xdg-open $url`, devnull, devnull, devnull)
30+
true
31+
else
32+
false
33+
end
34+
catch ex
35+
false
36+
end
37+
end
38+
39+
40+
2041
# Get project data
2142
PROJECT_TOML = get_project_toml()
2243
PROJECT_VERSION = PROJECT_TOML["version"]
@@ -165,6 +186,11 @@ if haskey(ENV, "CI")
165186
versions = ["stable" => "v^", "dev" => "main"],
166187
branch = "gh-pages",
167188
)
189+
else
190+
open_in_default_browser(
191+
"file://$(abspath(joinpath(@__DIR__, "build", "index.html")))",
192+
) ||
193+
println("Failed to open the documentation in the browser.")
168194
end
169195
@info "Finished docs build." # Good to know the script completed
170196

0 commit comments

Comments
 (0)