11execute = isempty (ARGS ) || ARGS [1 ] == " run"
22
3- using ImageGeoms
3+ org, reps = :JuliaImageRecon , :ImageGeoms
4+ eval (:(using $ reps))
45using Documenter
56using Literate
67
@@ -13,7 +14,7 @@ lit = joinpath(@__DIR__, "lit")
1314src = joinpath (@__DIR__ , " src" )
1415gen = joinpath (@__DIR__ , " src/generated" )
1516
16- base = " JuliaImageRecon/ImageGeoms .jl"
17+ base = " $org / $reps .jl"
1718repo_root_url =
1819 " https://github.com/$base /blob/main/docs/lit/examples"
1920nbviewer_root_url =
@@ -22,7 +23,8 @@ binder_root_url =
2223 " https://mybinder.org/v2/gh/$base /gh-pages?filepath=dev/generated/examples"
2324
2425
25- DocMeta. setdocmeta! (ImageGeoms, :DocTestSetup , :(using ImageGeoms); recursive= true )
26+ repo = eval (:($ reps))
27+ DocMeta. setdocmeta! (repo, :DocTestSetup , :(using $ reps); recursive= true )
2628
2729for (root, _, files) in walkdir (lit), file in files
2830 splitext (file)[2 ] == " .jl" || continue # process .jl files only
@@ -45,14 +47,14 @@ isci = get(ENV, "CI", nothing) == "true"
4547format = Documenter. HTML (;
4648 prettyurls = isci,
4749 edit_link = " main" ,
48- canonical = " https://JuliaImageRecon .github.io/ImageGeoms .jl/stable/" ,
49- # assets = String[ ],
50+ canonical = " https://$org .github.io/$repo .jl/stable/" ,
51+ assets = [ " assets/custom.css " ],
5052)
5153
5254makedocs (;
53- modules = [ImageGeoms ],
55+ modules = [repo ],
5456 authors = " Jeff Fessler and contributors" ,
55- sitename = " ImageGeoms .jl" ,
57+ sitename = " $repo .jl" ,
5658 format,
5759 pages = [
5860 " Home" => " index.md" ,
@@ -69,6 +71,6 @@ if isci
6971 versions = [" stable" => " v^" , " dev" => " dev" ],
7072 forcepush = true ,
7173# push_preview = true,
72- # see https://JuliaImageRecon .github.io/ImageGeoms .jl/previews/PR##
74+ # see https://$org .github.io/$repo .jl/previews/PR##
7375 )
7476end
0 commit comments