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
ddede5f9
Commit
ddede5f9
authored
Nov 04, 2021
by
Miroslav Kratochvil
Browse files
the workaround worked around another fix...
documenter pls
parent
7d802578
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/make.jl
View file @
ddede5f9
...
...
@@ -9,12 +9,6 @@ pages_branch = "gh-pages"
# This must match the repo slug on github!
github_repo_slug
=
ENV
[
"CI_PROJECT_NAMESPACE"
]
*
"/"
*
ENV
[
"CI_PROJECT_NAME"
]
# Documenter tries to guess the repo slug from git remote URL but that doesn't
# work really well here, this is the only fallback. If this breaks, "Edit on
# GitHub" links will stop working. (See Documenter.jl source in
# src/Utilities/Utilities.jl, in November 2021 it was around line 500) -mk
ENV
[
"TRAVIS_REPO_SLUG"
]
=
github_repo_slug
# generate notebooks
notebooks_path
=
joinpath
(
@__DIR__
,
"src"
,
"notebooks"
)
notebooks_basenames
=
filter
(
x
->
endswith
(
x
,
".jl"
),
readdir
(
notebooks_path
))
...
...
@@ -63,6 +57,12 @@ find_mds(path) =
filter
(
x
->
endswith
(
x
,
".md"
),
readdir
(
joinpath
(
@__DIR__
,
"src"
,
path
))),
)
# Documenter tries to guess the repo slug from git remote URL but that doesn't
# work really well here, this is the only fallback. If this breaks, "Edit on
# GitHub" links will stop working. (See Documenter.jl source in
# src/Utilities/Utilities.jl, in November 2021 it was around line 500) -mk
ENV
[
"TRAVIS_REPO_SLUG"
]
=
github_repo_slug
# build the docs
makedocs
(
modules
=
[
COBREXA
],
...
...
@@ -91,6 +91,10 @@ makedocs(
],
)
# remove the workaround (this would cause deploydocs() to get confused and try
# to deploy the travis way)
delete!
(
ENV
,
"TRAVIS_REPO_SLUG"
)
# replace the "edit this" links for the generated documentation
function
replace_in_doc
(
filename
,
replacement
)
contents
=
open
(
f
->
read
(
f
,
String
),
joinpath
(
@__DIR__
,
"build"
,
filename
))
...
...
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