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

add conversion of literate files to make

parent 681cf813
using Documenter, COBREXA
using Literate
ENV["TRAVIS_REPO_SLUG"] = "LCSB-BioCore/COBREXA.jl"
# generate notebooks
EXAMPLE = joinpath(@__DIR__, "src/notebooks", "example.jl")
OUTPUT = joinpath(@__DIR__, "src/tutorials")
folder = "stable"
## only temporary - will be removed once public
branch = "gh-pages"
Literate.markdown(EXAMPLE, OUTPUT; 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(EXAMPLE, OUTPUT)
makedocs(
modules = [COBREXA],
......@@ -19,3 +38,10 @@ makedocs(
"How to contribute" => "howToContribute.md",
],
)
# deploydocs(
# repo = "github.com/$(ENV["TRAVIS_REPO_SLUG"])",
# push_preview=true,
# deploy_config = deployconfig,
# )
\ No newline at end of file
Supports Markdown
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