Skip to content

Commit

Permalink
fix abs path problem
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Aug 10, 2024
1 parent ea955e5 commit 3dc291f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PlutoPages"
uuid = "d5dc3dd1-4774-47c7-8860-0a1ad9e34b8c"
authors = ["Luca Ferranti", "Fons van der Plas"]
version = "0.1.5"
version = "0.1.6"

[deps]
BetterFileWatching = "c9fd44ac-77b5-486c-9482-9798bd063cc6"
Expand Down
4 changes: 4 additions & 0 deletions src/PlutoPages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ function run_plutopages_notebook(;
cache_dir::String,
kwargs...
)
@assert isabspath(input_dir)
@assert isabspath(output_dir)
@assert isabspath(cache_dir)
run_with_replacements(
PlutoPages_notebook_path,
plutopages_replacements(; input_dir, output_dir, cache_dir, ap=Base.active_project(), lp=LOAD_PATH);
Expand All @@ -83,6 +86,7 @@ end


function create_subdirs(root_dir::String)
root_dir = Pluto.tamepath(root_dir)
@assert isdir(root_dir)
input_dir = joinpath(root_dir, "src")
@assert isdir(input_dir) "Input directory is empty: $(input_dir).\n\nUse PlutoPages in a directory with a 'src' subdirectory. Your notebooks and markdown files go in there."
Expand Down
3 changes: 2 additions & 1 deletion src/pluto control.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function run_with_replacements(notebook_path::AbstractString, inputs::Dict{Symbo
)
session = Pluto.ServerSession(;options)

@info "PlutoPages: Starting Pluto server..."
@info "PlutoPages: Starting Pluto notebook..."
notebook_task = Threads.@spawn try
notebook = open_notebook_with_replacements!(session, notebook_path, inputs)

Expand Down Expand Up @@ -90,6 +90,7 @@ function run_with_replacements(notebook_path::AbstractString, inputs::Dict{Symbo
end

pluto_server_instance = if run_server
@info "PlutoPages: Starting Pluto server... \n(Ignore the message 'Go to ... in your browser to start writing.')"
Pluto.run!(session)
end

Expand Down

2 comments on commit 3dc291f

@fonsp
Copy link
Member Author

@fonsp fonsp commented on 3dc291f Aug 10, 2024

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 created: JuliaRegistries/General/112852

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

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.6 -m "<description of version>" 3dc291f95f8faed5dc07b9233ad7cd624e07c9c0
git push origin v0.1.6

Please sign in to comment.