Skip to content

Commit

Permalink
update vsc content and activation paths
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastyBlacksmith committed Aug 16, 2023
1 parent 0ddcb46 commit 4d4c569
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 02_Getting_started.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
# !!! tip "Visual Studio Code"
#md # An alternative to using the REPL through a terminal is
#nb # An alternative to using `IJulia` within a notebook is
# to work with <b>V</b>isual <b>S</b>tudio <b>C</b>ode.
# to work with <b>V</b>isual <b>S</b>tudio <b>C</b>ode or its open source altenative VSCodium.
# VSC is a source code editor for which a `julia` extension is available.
# After installing the application, simply click on the <kbd>"Extension"</kbd> symbol on the left side and
# search for `julia`.
# Once installt `julia` remains usable and can be selected as a programming language in new documents.
#
# For further guidance and visual aid, check out the provided [video]()!
# For further guidance and visual aid, check out the provided [video](https://av.tib.eu/media/62060)!


# ### Variables
Expand Down
8 changes: 7 additions & 1 deletion generate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ end
return str
end

@everywhere function fix_activation_output(str)
str = replace(str, r"~/.*/projects/trebuchet" => "~/projects/trebuchet")
str = replace(str, r"^.*Updating registry .*````" => "````")
return str
end

function copy_project(output)
out_proj = joinpath(@__DIR__, "output", output, "projects", "trebuchet")
mkpath(out_proj)
Expand Down Expand Up @@ -80,7 +86,7 @@ pmap(files) do file
# Literate.notebook(file, notebook_out; execute=false, preprocess = replace_includes)
# Literate.markdown(file, markdown_out; credit = false, execute=true, preprocess = replace_includes, postprocess = md_print∘setup_link_replace)
if contains(file, "Overview") return end
Literate.markdown(file, lesson_out; credit = false, execute=true, flavor=Literate.CarpentriesFlavor(), preprocess = replace_includescarpentries_div_names, postprocess = setup_link_replaceremove_sandbox_outputhandle_repl)
Literate.markdown(file, lesson_out; credit = false, execute=true, flavor=Literate.CarpentriesFlavor(), preprocess = replace_includescarpentries_div_names, postprocess = setup_link_replaceremove_sandbox_outputhandle_replfix_activation_output)
end

@everywhere Pkg.activate(@__DIR__)

0 comments on commit 4d4c569

Please sign in to comment.