Browse Source

Fix warning to not mention the same thing three times.

pull/83/head
Fredrik Ekre 6 years ago
parent
commit
233b3746a8
  1. 4
      src/Literate.jl

4
src/Literate.jl

@ -223,8 +223,8 @@ function replace_default(content, sym;
if (match(r"@__REPO_ROOT_URL__", content) !== nothing) || if (match(r"@__REPO_ROOT_URL__", content) !== nothing) ||
(match(r"@__NBVIEWER_ROOT_URL__", content) !== nothing) || (match(r"@__NBVIEWER_ROOT_URL__", content) !== nothing) ||
(match(r"@__BINDER_ROOT_URL__", content) !== nothing) (match(r"@__BINDER_ROOT_URL__", content) !== nothing)
@warn("expansion of `@__REPO_ROOT_URL__`, `@__REPO_ROOT_URL__` and " * @warn("expansion of `@__REPO_ROOT_URL__`, `@__NBVIEWER_ROOT_URL__` and " *
" `@__REPO_ROOT_URL__` will only be correct if running from " * " `@__BINDER_ROOT_URL__` will only be correct if running from " *
"DocumentationGenerator.jl, Travis CI or GitHub Actions.") "DocumentationGenerator.jl, Travis CI or GitHub Actions.")
end end
end end

Loading…
Cancel
Save