From d54efee13ce05dda66b8e53e8647a4f5c5729e31 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Wed, 20 Jun 2018 15:19:25 +0200 Subject: [PATCH] test some env vars --- src/Literate.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Literate.jl b/src/Literate.jl index b3012dc..3c51d01 100644 --- a/src/Literate.jl +++ b/src/Literate.jl @@ -320,6 +320,11 @@ 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 build_dir + if build_dir !== nothing + @show relpath(inputfile, build_dir) + end if repo === nothing println("repo === nothing") path = ""