From 99cb7d5ad8878287249f3c87831689a6f14c3774 Mon Sep 17 00:00:00 2001 From: Andrew Smith <67955708+smith-and@users.noreply.github.com> Date: Thu, 22 Apr 2021 11:33:18 -0400 Subject: [PATCH] Fixed Local Default The default path created for the meta block at the top of the literate markdown files did not compile without error when using Documenter. Instead of having an `` tag placed, the modification returns pwd() which is consistent with the source when running locally and allows for offline document compilation. --- src/Literate.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Literate.jl b/src/Literate.jl index bb6ef16..ed09846 100644 --- a/src/Literate.jl +++ b/src/Literate.jl @@ -186,9 +186,9 @@ function replace_default(content, sym; nbviewer_root_url = "https://nbviewer.jupyter.org/urls/$(base_url)" push!(repls, "@__NBVIEWER_ROOT_URL__" => nbviewer_root_url) else - push!(repls, "@__REPO_ROOT_URL__" => get(config, "repo_root_url", "")) - push!(repls, "@__NBVIEWER_ROOT_URL__" => get(config, "nbviewer_root_url", "")) - push!(repls, "@__BINDER_ROOT_URL__" => get(config, "binder_root_url", "")) + push!(repls, "@__REPO_ROOT_URL__" => get(config, "repo_root_url", pwd())) + push!(repls, "@__NBVIEWER_ROOT_URL__" => get(config, "nbviewer_root_url", pwd())) + push!(repls, "@__BINDER_ROOT_URL__" => get(config, "binder_root_url", pwd())) end # run some Documenter specific things