Internal API

ExampleJuggler.@testscriptMacro
testscript(script)

Wrap script (or Pluto notebook seen as script) into a custom module and evaluate it in the context of the calling module. If the script contains a function runtests, call it. It is assumed that the script uses Test.@test to test correctness.

source
ExampleJuggler.@testmoduleMacro
@testmodule

Include script defining a module in the context of the calling module and call the runtests method if it is defined in this module, passing kwargs....

source
ExampleJuggler.@plotmoduleMacro
@plotmodule(modules, kwargs...)

Include module into context of calling module and execute generateplots(;kwargs...) if it exists.

source
ExampleJuggler.docmodulesFunction
     docmodules(example_dir, example_modules; kwargs...)

Generate markdown files for use with documenter from list of Julia code examples in example_dir via Literate.jl in form of modules.

Keyword arguments:

  • use_module_titles: use titles from module input files

See ExampleModule.jl for an example.

source
ExampleJuggler.example_md_dirFunction
 example_md_dir(subdir)

Return full path to the subdirectory of docs/src where the markdown files should be placed which later will be scanned by Documenter. Creates the directory if it doesn't already exist.

source