diff --git a/src/Literate.jl b/src/Literate.jl index 7f235fd..4212699 100644 --- a/src/Literate.jl +++ b/src/Literate.jl @@ -318,28 +318,19 @@ function markdown(inputfile, outputdir; preprocess = identity, postprocess = ide if documenter # change the Edit on GitHub link repo = get(ENV, "TRAVIS_REPO_SLUG", nothing) - build_dir = get(ENV, "TRAVIS_BUILD_DIR", nothing) - @show repo - @show build_dir if repo === nothing path = "" else pkg = String(first(split(last(split(repo, '/')), '.'))) - @show pkg pkgsrc = Base.find_package(pkg) - @show pkgsrc if pkgsrc === nothing path = "" else repo_root = first(split(pkgsrc, joinpath("src", pkg * ".jl"))) - @show repo_root path = relpath(inputfile, repo_root) - @show path path = replace(path, "\\" => "/") - @show path end end - @show path content = """ # ```@meta # EditURL = "@__REPO_ROOT_URL__$(path)"