|
| 1 | +using Documenter, Literate # Documentation |
| 2 | +using RadonKA, Wavelets, NFFT, FFTW # Extensions |
| 3 | +using CairoMakie, ImageGeoms, ImagePhantoms # Documentation Example Packages |
| 4 | + |
| 5 | +# Generate examples |
| 6 | +OUTPUT_BASE = joinpath(@__DIR__(), "src", "generated") |
| 7 | +INPUT_BASE = joinpath(@__DIR__(), "src", "literate") |
| 8 | +for (root, dirs, files) in walkdir(INPUT_BASE) |
| 9 | + for dir in dirs |
| 10 | + OUTPUT = joinpath(OUTPUT_BASE, dir) |
| 11 | + INPUT = joinpath(INPUT_BASE, dir) |
| 12 | + for file in filter(f -> endswith(f, ".jl"), readdir(INPUT)) |
| 13 | + Literate.markdown(joinpath(INPUT, file), OUTPUT) |
| 14 | + end |
| 15 | + end |
| 16 | +end |
| 17 | + |
| 18 | +modules = [LinearOperatorCollection, |
| 19 | + isdefined(Base, :get_extension) ? Base.get_extension(LinearOperatorCollection, :LinearOperatorFFTWExt) : LinearOperatorCollection.LinearOperatorFFTWExt, |
| 20 | + isdefined(Base, :get_extension) ? Base.get_extension(LinearOperatorCollection, :LinearOperatorNFFTExt) : LinearOperatorCollection.LinearOperatorNFFTExt, |
| 21 | + isdefined(Base, :get_extension) ? Base.get_extension(LinearOperatorCollection, :LinearOperatorRadonKAExt) : LinearOperatorCollection.LinearOperatorRadonKAExt, |
| 22 | + isdefined(Base, :get_extension) ? Base.get_extension(LinearOperatorCollection, :LinearOperatorWaveletExt) : LinearOperatorCollection.LinearOperatorWaveletExt] |
| 23 | + |
| 24 | +makedocs( |
| 25 | + format = Documenter.HTML(prettyurls=get(ENV, "CI", "false") == "true", |
| 26 | + canonical="https://github.com/JuliaImageRecon/LinearOperatorCollection.jl", |
| 27 | + assets=String[], |
| 28 | + collapselevel=1, |
| 29 | + ), |
| 30 | + modules = modules, |
| 31 | + sitename = "LinearOperatorCollection", |
| 32 | + authors = "Tobias Knopp, Niklas Hackelberg and Contributors", |
| 33 | + pages = [ |
| 34 | + "Home" => "index.md", |
| 35 | + "Getting Started" => "generated/tutorials/overview.md", |
| 36 | + "Tutorials" => Any[ |
| 37 | + "Weighting Operator" => "generated/tutorials/weighting.md", |
| 38 | + "FFT Operator" => "generated/tutorials/fft.md", |
| 39 | + "Diagonal Operator" => "generated/tutorials/diagonal.md", |
| 40 | + "Gradient Operator" => "generated/tutorials/gradient.md", |
| 41 | + #"Sampling Operator" => "generated/tutorials/sampling.md", |
| 42 | + #"NFFT Operator" => "generated/tutorials/nfft.md", |
| 43 | + "Wavelet Operator" => "generated/tutorials/wavelet.md", |
| 44 | + "Radon Operator" => "generated/tutorials/radon.md", |
| 45 | + "Product Operator" => "generated/tutorials/product.md", |
| 46 | + "Normal Operator" => "generated/tutorials/normal.md", |
| 47 | + ], |
| 48 | + "How to" => Any[ |
| 49 | + #"Implement Custom Operators" => "generated/howtos/custom.md", |
| 50 | + "Enable GPU Acceleration" => "generated/howtos/gpu.md", |
| 51 | + ], |
| 52 | + #"Explanations" => Any[ |
| 53 | + # "Operator Structure" => "operators.md", |
| 54 | + #], |
| 55 | + "Reference" => "references.md" |
| 56 | + ], |
| 57 | + warnonly = [:missing_docs] |
| 58 | +) |
| 59 | + |
| 60 | +deploydocs(repo = "github.com/JuliaImageRecon/LinearOperatorCollection.jl") |
0 commit comments