Skip to content

Commit a52d507

Browse files
committed
Update
1 parent 0c08b2a commit a52d507

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

docs/make.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ end
2323
# Copy the src into a new directory for the latex build
2424
cp(joinpath(@__DIR__, "src"), joinpath(@__DIR__, "latex_src"); force = true)
2525
f_latex = Distributed.@spawnat :any make_latex()
26-
make_html()
26+
f_html = Distributed.@spawnat :any make_html()
2727
fetch(f_latex)
28+
fetch(f_html)
2829
# Hack for deploying: copy the pdf (and only the PDF) into the HTML build
2930
# directory! We don't want to copy everything in `latex_build` because it
3031
# includes lots of extraneous LaTeX files.

docs/make_utilities.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ function _link_example(content)
7676
return replace(content, line => new_title)
7777
end
7878

79+
function _add_edit_url(filename, url)
80+
contents = read(filename, String)
81+
open(filename, "w") do io
82+
write(io, "```@meta\nEditURL = \"$url\"\n```\n\n")
83+
write(io, contents)
84+
return
85+
end
86+
return
87+
end
88+
7989
function literate_tutorials()
8090
tutorial_dir = joinpath(@__DIR__, "src", "tutorials")
8191
for (root, dir, files) in walkdir(tutorial_dir)
@@ -110,16 +120,6 @@ function literate_tutorials()
110120
return
111121
end
112122

113-
function _add_edit_url(filename, url)
114-
contents = read(filename, String)
115-
open(filename, "w") do io
116-
write(io, "```@meta\nEditURL = \"$url\"\n```\n\n")
117-
write(io, contents)
118-
return
119-
end
120-
return
121-
end
122-
123123
# ==============================================================================
124124
# Add tutorial overview
125125
# ==============================================================================

0 commit comments

Comments
 (0)