Skip to content

Commit 0ef731a

Browse files
committed
Enable PlutoSliderServer
1 parent 0b64016 commit 0ef731a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

PlutoPages.jl

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ md"""
181181
## `.jl`: PlutoSliderServer.jl
182182
"""
183183

184+
# ╔═╡ bb905046-59b7-4da6-97ad-dbb9055d823a
185+
const pluto_deploy_settings = PlutoSliderServer.get_configuration(PlutoSliderServer.default_config_path())
186+
184187
# ╔═╡ b638df55-fd74-4ae8-bdbd-ec7b18214b40
185188
function prose_from_code(s::String)::String
186189
replace(replace(
@@ -694,7 +697,13 @@ function template_handler(
694697

695698
# TODO these relative paths can't be right...
696699
h = @htl """
697-
<pluto-editor statefile=$(reg_s.url) notebookfile=$(reg_n.url) disable_ui>
700+
<pluto-editor
701+
statefile=$(reg_s.url)
702+
notebookfile=$(reg_n.url)
703+
slider_server_url=$(pluto_deploy_settings.Export.slider_server_url)
704+
binder_url=$(pluto_deploy_settings.Export.binder_url)
705+
disable_ui
706+
>
698707
"""
699708

700709
frontmatter = Pluto.frontmatter(input.absolute_path)
@@ -946,6 +955,7 @@ end
946955
# ╠═692c1e0b-07e1-41b3-abcd-2156bda65b41
947956
# ╟─adb1ddac-d992-49ca-820f-e1ed8ca33bf8
948957
# ╠═e2510a44-df48-4c05-9453-8822deadce24
958+
# ╠═bb905046-59b7-4da6-97ad-dbb9055d823a
949959
# ╠═b638df55-fd74-4ae8-bdbd-ec7b18214b40
950960
# ╠═87b4431b-438b-4da4-9d06-79e7f3a2fe05
951961
# ╟─cd4e479c-deb7-4a44-9eb0-c3819b5c4067

0 commit comments

Comments
 (0)