Verified Commit 7bf10432 authored by Laurent Heirendt's avatar Laurent Heirendt
Browse files

[skip ci] fix nb viewer - removed too much

parent 1ac9bbac
...@@ -18,21 +18,21 @@ notebooks = ...@@ -18,21 +18,21 @@ notebooks =
joinpath.(notebooks_path, filter(x -> endswith(x, ".jl"), readdir(notebooks_path))) joinpath.(notebooks_path, filter(x -> endswith(x, ".jl"), readdir(notebooks_path)))
notebooks_outdir = joinpath(@__DIR__, "src", "notebooks") notebooks_outdir = joinpath(@__DIR__, "src", "notebooks")
# set the appropriate folder # only temporary - will be removed once properly tagged and released
folder = Base.CoreLogging.with_logger(Base.CoreLogging.NullLogger()) do folder = "dev"
Documenter.deploy_folder( branch = "gh-pages"
nothing;
repo = "github.com/$(ENV["TRAVIS_PULL_REQUEST"]).git", for notebook in notebooks
devbranch = "master", Literate.markdown(
push_preview = true, notebook,
devurl = "dev", 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 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 # generate index.md from .template and the quickstart in README.md
quickstart = match( quickstart = match(
r"<!--quickstart_begin-->\n([^\0]*)<!--quickstart_end-->", 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