Browse Source

try to find pkg from TRAVIS_REPO_SLUG

pull/1/head
Fredrik Ekre 8 years ago
parent
commit
907cbf2b5f
  1. 3
      src/Examples.jl

3
src/Examples.jl

@ -217,7 +217,8 @@ function markdown(inputfile, outputdir; preprocess = identity, postprocess = ide
# run some Documenter specific things # run some Documenter specific things
if documenter if documenter
# change the Edit on GitHub link # change the Edit on GitHub link
pkg = "Examples" repo = get(ENV, "TRAVIS_REPO_SLUG", "")
pkg = first(split(last(split(repo, '/')), '.'))
content = """ content = """
#' ```@meta #' ```@meta
#' EditURL = "@__REPO_ROOT_URL__$(relpath(inputfile, Pkg.dir(pkg)))" #' EditURL = "@__REPO_ROOT_URL__$(relpath(inputfile, Pkg.dir(pkg)))"

Loading…
Cancel
Save