@@ -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
5354end
5455
5556generated_path = joinpath (@__DIR__ , " src" )
56- base_url = " https://github.com/JuliaManifolds/Manopt.jl/ blob/master /"
57+ base_url = " https://$base_repository / blob/main /"
5758isdir (generated_path) || mkdir (generated_path)
5859for (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
107108Pkg. activate ()
0 commit comments