Commit ddede5f9 authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

the workaround worked around another fix...

documenter pls
parent 7d802578
...@@ -9,12 +9,6 @@ pages_branch = "gh-pages" ...@@ -9,12 +9,6 @@ pages_branch = "gh-pages"
# This must match the repo slug on github! # This must match the repo slug on github!
github_repo_slug = ENV["CI_PROJECT_NAMESPACE"] * "/" * ENV["CI_PROJECT_NAME"] 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 # generate notebooks
notebooks_path = joinpath(@__DIR__, "src", "notebooks") notebooks_path = joinpath(@__DIR__, "src", "notebooks")
notebooks_basenames = filter(x -> endswith(x, ".jl"), readdir(notebooks_path)) notebooks_basenames = filter(x -> endswith(x, ".jl"), readdir(notebooks_path))
...@@ -63,6 +57,12 @@ find_mds(path) = ...@@ -63,6 +57,12 @@ find_mds(path) =
filter(x -> endswith(x, ".md"), readdir(joinpath(@__DIR__, "src", 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 # build the docs
makedocs( makedocs(
modules = [COBREXA], modules = [COBREXA],
...@@ -91,6 +91,10 @@ makedocs( ...@@ -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 # replace the "edit this" links for the generated documentation
function replace_in_doc(filename, replacement) function replace_in_doc(filename, replacement)
contents = open(f -> read(f, String), joinpath(@__DIR__, "build", filename)) contents = open(f -> read(f, String), joinpath(@__DIR__, "build", filename))
......
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