@@ -2927,7 +2927,7 @@ process.stdout.write(String(f_isempty("hello")));
29272927
29282928 # --- Test 2: HTML playground page exists ---
29292929 @testset " Playground HTML exists" begin
2930- html_path = joinpath (@__DIR__ , " .." , " docs" , " playground" , " index.html" )
2930+ html_path = joinpath (@__DIR__ , " .." , " docs" , " src " , " playground" , " index.html" )
29312931 @test isfile (html_path)
29322932 html = read (html_path, String)
29332933 @test occursin (" CodeMirror" , html)
@@ -3174,7 +3174,7 @@ process.stdout.write(String(f_isempty("hello")));
31743174
31753175 # --- Test 17: Playground page has required elements ---
31763176 @testset " Playground HTML elements" begin
3177- html_path = joinpath (@__DIR__ , " .." , " docs" , " playground" , " index.html" )
3177+ html_path = joinpath (@__DIR__ , " .." , " docs" , " src " , " playground" , " index.html" )
31783178 html = read (html_path, String)
31793179 @test occursin (" id=\" editor-wrap\" " , html)
31803180 @test occursin (" id=\" output\" " , html)
@@ -3381,47 +3381,43 @@ process.stdout.write(String(f_isempty("hello")));
33813381 end
33823382
33833383 # ==============================================================
3384- # DOC-001: Documenter .jl site
3384+ # DOC-001: Therapy .jl-powered docs site
33853385 # ==============================================================
33863386
3387- @testset " DOC-001: Documenter .jl site" begin
3387+ @testset " DOC-001: Therapy .jl docs site" begin
33883388 docs_dir = joinpath (@__DIR__ , " .." , " docs" )
33893389
3390- @testset " docs/make .jl exists" begin
3391- @test isfile (joinpath (docs_dir, " make .jl" ))
3390+ @testset " docs/app .jl exists" begin
3391+ @test isfile (joinpath (docs_dir, " app .jl" ))
33923392 end
33933393
3394- @testset " docs/Project.toml exists " begin
3394+ @testset " docs/Project.toml has Therapy " begin
33953395 @test isfile (joinpath (docs_dir, " Project.toml" ))
33963396 content = read (joinpath (docs_dir, " Project.toml" ), String)
3397- @test occursin (" Documenter " , content)
3397+ @test occursin (" Therapy " , content)
33983398 end
33993399
3400- @testset " docs/src pages exist" begin
3401- src = joinpath (docs_dir, " src" )
3402- @test isfile (joinpath (src, " index.md" ))
3403- @test isfile (joinpath (src, " getting_started.md" ))
3404- @test isfile (joinpath (src, " api.md" ))
3405- @test isfile (joinpath (src, " supported_functions.md" ))
3406- @test isfile (joinpath (src, " architecture.md" ))
3400+ @testset " docs/src routes exist" begin
3401+ @test isfile (joinpath (docs_dir, " src" , " routes" , " index.jl" ))
3402+ @test isfile (joinpath (docs_dir, " src" , " routes" , " getting-started.jl" ))
3403+ @test isfile (joinpath (docs_dir, " src" , " routes" , " api" , " index.jl" ))
34073404 end
34083405
3409- @testset " index.md has playground embed" begin
3410- content = read (joinpath (docs_dir, " src" , " index.md" ), String)
3411- @test occursin (" playground" , content)
3412- @test occursin (" iframe" , content)
3406+ @testset " docs/src components exist" begin
3407+ @test isfile (joinpath (docs_dir, " src" , " components" , " Layout.jl" ))
34133408 end
34143409
3415- @testset " api.md has @docs blocks" begin
3416- content = read (joinpath (docs_dir, " src" , " api.md" ), String)
3417- @test occursin (" compile" , content)
3418- @test occursin (" compile_module" , content)
3419- @test occursin (" JSOutput" , content)
3420- @test occursin (" build_playground" , content)
3410+ @testset " playground files exist" begin
3411+ pg = joinpath (docs_dir, " src" , " playground" )
3412+ @test isfile (joinpath (pg, " index.html" ))
3413+ @test isfile (joinpath (pg, " codegen.js" ))
3414+ @test isfile (joinpath (pg, " parser.js" ))
34213415 end
34223416
3423- @testset " playground embed CSS exists" begin
3424- @test isfile (joinpath (docs_dir, " src" , " assets" , " playground-embed.css" ))
3417+ @testset " homepage has playground iframe" begin
3418+ content = read (joinpath (docs_dir, " src" , " routes" , " index.jl" ), String)
3419+ @test occursin (" playground" , content)
3420+ @test occursin (" iframe" , content)
34253421 end
34263422 end
34273423
0 commit comments