Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
COBREXA.jl
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LCSB-BioCore
COBREXA.jl
Commits
753cdfa5
Unverified
Commit
753cdfa5
authored
3 years ago
by
Miroslav Kratochvil
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #368 from LCSB-BioCore/mk-no-notebook-tmpfiles
do not deploy notebook build artifacts to docs
parents
af062399
018e4764
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/make.jl
+24
-2
24 additions, 2 deletions
docs/make.jl
with
24 additions
and
2 deletions
docs/make.jl
+
24
−
2
View file @
753cdfa5
...
...
@@ -14,8 +14,9 @@ end
# generate notebooks
notebooks_path
=
joinpath
(
@__DIR__
,
"src"
,
"notebooks"
)
notebooks
=
joinpath
.
(
notebooks_path
,
filter
(
x
->
endswith
(
x
,
".jl"
),
readdir
(
notebooks_path
)))
notebooks_basenames
=
filter
(
x
->
endswith
(
x
,
".jl"
),
readdir
(
notebooks_path
))
@info
"base names:"
notebooks_basenames
notebooks
=
joinpath
.
(
notebooks_path
,
notebooks_basenames
)
notebooks_outdir
=
joinpath
(
@__DIR__
,
"src"
,
"notebooks"
)
# only temporary - will be removed once properly tagged and released
...
...
@@ -92,7 +93,28 @@ replace_in_doc(
"blob/master/docs/src/howToContribute.md"
=>
"blob/master/.github/CONTRIBUTING.md"
,
)
# clean up notebooks -- we do not need to deploy all the stuff that was
# generated in the process
#
# extra fun: failing programs (such as plotting libraries) may generate core
# dumps that contain the dumped environment strings, which in turn contain
# github auth tokens. These certainly need to be avoided.
notebooks_names
=
[
n
[
begin
:
end
-
3
]
for
n
in
notebooks_basenames
]
notebooks_allowed_files
=
vcat
(
"index.html"
,
notebooks_names
.*
".ipynb"
)
@info
"allowed files:"
notebooks_allowed_files
for
(
root
,
dirs
,
files
)
in
walkdir
(
joinpath
(
@__DIR__
,
"build"
,
"notebooks"
))
for
f
in
files
if
!
(
f
in
notebooks_allowed_files
)
@info
"removing notebook build artifact `
$
(joinpath(root, f))'"
rm
(
joinpath
(
root
,
f
))
end
end
end
# also remove the index template
rm
(
joinpath
(
@__DIR__
,
"build"
,
"index.md.template"
))
# deploy the result
deploydocs
(
repo
=
"github.com/
$
(ENV["
TRAVIS_REPO_SLUG
"]).git"
,
target
=
"build"
,
...
...
This diff is collapsed.
Click to expand it.
cylon-x
@cylon-x
mentioned in commit
64d9b5ab
·
3 years ago
mentioned in commit
64d9b5ab
mentioned in commit 64d9b5ab54b124d17881d8cc007278090de12a5f
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment