Skip to content

Commit 5ccf5ab

Browse files
committed
Add docs path
1 parent abe570e commit 5ccf5ab

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/runtests.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@ using Test
22
using Documenter
33
using DocumenterDiagrams
44

5+
const DOCS_PATH = joinpath(@__DIR__, "docs")
6+
57
function main()
6-
@time include(joinpath(@__DIR__, "docs", "make.jl"))
8+
@time include(joinpath(DOCS_PATH, "make.jl"))
79

8-
@test isdir(joinpath(@__DIR__, "docs", "build"))
9-
@test isfile(joinpath(@__DIR__, "docs", "build", "index.html"))
10+
@test isdir(joinpath(DOCS_PATH, "build"))
11+
@test isfile(joinpath(DOCS_PATH, "build", "index.html"))
1012

11-
html = read(joinpath(@__DIR__, "docs", "build", "index.html"), String)
13+
html = read(joinpath(DOCS_PATH, "build", "index.html"), String)
1214

1315
@test !isnothing(match(r"\<svg.*\>.*(DocumenterDiagrams).*\<\/svg\>", html))
1416

15-
rm(joinpath(@__DIR__, "docs", "build"); recursive=true, force=true)
17+
rm(joinpath(DOCS_PATH, "build"); recursive=true, force=true)
1618

1719
return nothing
1820
end

0 commit comments

Comments
 (0)