Skip to content

Commit 3238f1a

Browse files
committed
Fix playground iframe path and add siteinfo/versions stubs for GH Pages
1 parent 1182165 commit 3238f1a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

docs/make.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ makedocs(;
2626

2727
# Deployment handled by GitHub Actions (actions/deploy-pages)
2828
# No deploydocs() needed — workflow uploads docs/build/ directly
29+
30+
# Create stub files that Documenter.jl HTML expects but deploydocs() normally creates
31+
build_dir = joinpath(@__DIR__, "build")
32+
write(joinpath(build_dir, "siteinfo.js"), "var defined = 'dev';")
33+
write(joinpath(build_dir, "versions.js"), "var defined = 'dev';")

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A standalone Julia-to-JavaScript transpiler. Compile Julia functions to JavaScri
66

77
```@raw html
88
<div class="playground-embed">
9-
<iframe src="../assets/playground/index.html" title="Julia Playground"></iframe>
9+
<iframe src="assets/playground/index.html" title="Julia Playground"></iframe>
1010
</div>
1111
```
1212

0 commit comments

Comments
 (0)