Unverified Commit ef980f3d authored by Laurent Heirendt's avatar Laurent Heirendt Committed by GitHub
Browse files

Merge pull request #248 from LCSB-BioCore/lh-fix-nbviewer

fix nb viewer
parents 2c9f1b6a 7bf10432
......@@ -18,21 +18,21 @@ notebooks =
joinpath.(notebooks_path, filter(x -> endswith(x, ".jl"), readdir(notebooks_path)))
notebooks_outdir = joinpath(@__DIR__, "src", "notebooks")
# set the appropriate folder
folder = Base.CoreLogging.with_logger(Base.CoreLogging.NullLogger()) do
Documenter.deploy_folder(
nothing;
repo = "github.com/$(ENV["TRAVIS_PULL_REQUEST"]).git",
devbranch = "master",
push_preview = true,
devurl = "dev",
# only temporary - will be removed once properly tagged and released
folder = "dev"
branch = "gh-pages"
for notebook in notebooks
Literate.markdown(
notebook,
notebooks_outdir;
repo_root_url = "https://github.com/$(ENV["TRAVIS_REPO_SLUG"])/blob/master",
nbviewer_root_url = "https://nbviewer.jupyter.org/github/$(ENV["TRAVIS_REPO_SLUG"])/blob/gh-pages/$(folder)",
binder_root_url = "https://mybinder.org/v2/gh/$(ENV["TRAVIS_REPO_SLUG"])/$(branch)?filepath=$(folder)",
)
Literate.notebook(notebook, notebooks_outdir)
end
## only temporary - will be removed once properly released
branch = "gh-pages"
folder = "dev"
# generate index.md from .template and the quickstart in README.md
quickstart = match(
r"<!--quickstart_begin-->\n([^\0]*)<!--quickstart_end-->",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment