From 907cbf2b5f212ba67481a459ce39762af446c7ad Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Sat, 14 Apr 2018 12:10:38 +0200 Subject: [PATCH] try to find pkg from TRAVIS_REPO_SLUG --- src/Examples.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Examples.jl b/src/Examples.jl index b9a3568..cf2483d 100644 --- a/src/Examples.jl +++ b/src/Examples.jl @@ -217,7 +217,8 @@ function markdown(inputfile, outputdir; preprocess = identity, postprocess = ide # run some Documenter specific things if documenter # change the Edit on GitHub link - pkg = "Examples" + repo = get(ENV, "TRAVIS_REPO_SLUG", "") + pkg = first(split(last(split(repo, '/')), '.')) content = """ #' ```@meta #' EditURL = "@__REPO_ROOT_URL__$(relpath(inputfile, Pkg.dir(pkg)))"