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
ddede5f9
Commit
ddede5f9
authored
3 years ago
by
Miroslav Kratochvil
Browse files
Options
Downloads
Patches
Plain Diff
the workaround worked around another fix...
documenter pls
parent
7d802578
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/make.jl
+10
-6
10 additions, 6 deletions
docs/make.jl
with
10 additions
and
6 deletions
docs/make.jl
+
10
−
6
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
))
...
...
This diff is collapsed.
Click to expand it.
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