Skip to content

Commit bf6ff1d

Browse files
committed
fix docs links
1 parent 4a7498a commit bf6ff1d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/make.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ run_on_CI = (get(ENV, "CI", nothing) == "true")
3636
# Copy and reformat changelog
3737

3838
# (d) add contributing.md and changelog.md to the docs – and link to releases and issues
39+
const base_repository = "github.com/JuliaManifolds/AlgorithmsInterface.jl"
3940

40-
function add_links(line::String, url::String = "https://github.com/JuliaManifolds/Manopt.jl")
41+
function add_links(line::String, url::String = "https://$base_repository")
4142
# replace issues (#XXXX) -> ([#XXXX](url/issue/XXXX))
4243
while (m = match(r"\(\#([0-9]+)\)", line)) !== nothing
4344
id = m.captures[1]
@@ -53,7 +54,7 @@ function add_links(line::String, url::String = "https://github.com/JuliaManifold
5354
end
5455

5556
generated_path = joinpath(@__DIR__, "src")
56-
base_url = "https://github.com/JuliaManifolds/Manopt.jl/blob/master/"
57+
base_url = "https://$base_repository/blob/main/"
5758
isdir(generated_path) || mkdir(generated_path)
5859
for (md_file, doc_file) in [("Changelog.md", "changelog.md")]
5960
open(joinpath(generated_path, doc_file), "w") do io
@@ -102,6 +103,6 @@ makedocs(;
102103
expandfirst = ["interface.md", "stopping_criterion.md"],
103104
plugins = [bib, links],
104105
)
105-
deploydocs(; repo = "github.com/JuliaManifolds/AlgorithmsInterface.jl", push_preview = true)
106+
deploydocs(; repo = base_repository, push_preview = true)
106107
#back to main env
107108
Pkg.activate()

0 commit comments

Comments
 (0)