work on better figures

This commit is contained in:
jverzani
2025-07-02 06:25:10 -04:00
parent 50cc2b2193
commit 5013211954
12 changed files with 1098 additions and 61 deletions

View File

@@ -7,16 +7,19 @@
#alternatives/plotly_plotting.html
function _add_plotly(f)
lineno = 117
#lineno = 117
str = """
<script src="https://cdn.plot.ly/plotly-2.11.0.min.js"></script>
"""
r = readlines(f)
inserted = false
open(f, "w") do io
for (i,l) enumerate(r)
i == lineno && println(io, str)
if contains(l, "require.min.js")
!inserted && println(io, """
<script src="https://cdn.plot.ly/plotly-2.6.3.min.js"></script>
""")
inserted = true
end
println(io, l)
end
end
@@ -29,6 +32,7 @@ function (@main)(args...)
for fᵢ files
f = joinpath(root, fᵢ)
if endswith(f, ".html")
dirname(f) == "_book" && continue
_add_plotly(f)
end
end