Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LCSB-BioCore
COBREXA.jl
Commits
7a8ebc25
Verified
Commit
7a8ebc25
authored
May 06, 2021
by
Laurent Heirendt
✈
Browse files
add conversion of literate files to make
parent
681cf813
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/make.jl
View file @
7a8ebc25
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment