Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonpbarrows committed Nov 20, 2021
1 parent 9e7f126 commit 6872368
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/launch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,14 @@ Launches a notebook server for the specified `Examples` folder.
"""
function notebook(example::Type{<:Examples}, notebook_target_dir = nothing)
if isnothing(notebook_target_dir)
in_pkg_path = startswith(pathof(SIIPExamples), pwd())
in_pkg_path = startswith(pathof(SIIPExamples), pwd())
notebook_target_dir = in_pkg_path ? NB_DIR : mktempdir()
end
literate_folder(example; execute = false, test = false, notebook_target_dir = notebook_target_dir)
literate_folder(
example;
execute = false,
test = false,
notebook_target_dir = notebook_target_dir,
)
IJulia.notebook(dir = joinpath(notebook_target_dir, get_dir(example)))
end

2 comments on commit 6872368

@claytonpbarrows
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/49067

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.5 -m "<description of version>" 6872368b3eeceb567ee321bb19de0e2a7ee61cfd
git push origin v0.1.5

Please sign in to comment.