|
| 1 | +using Pkg |
| 2 | + |
| 3 | +Pkg.develop(PackageSpec(path=joinpath(dirname(@__FILE__), ".."))) |
| 4 | +# # when first running instantiate |
| 5 | +Pkg.instantiate() |
| 6 | +using Documenter |
| 7 | +using Documenter.Remotes |
| 8 | +using oneAPI |
| 9 | + |
| 10 | +oneAPI.versioninfo() |
| 11 | + |
| 12 | +makedocs( |
| 13 | + sitename = "oneAPI.jl", |
| 14 | + format = Documenter.HTML( |
| 15 | + prettyurls = Base.get(ENV, "CI", nothing) == "true", |
| 16 | + canonical = "https://exanauts.github.io/ExaPF.jl/stable/", |
| 17 | + mathengine = Documenter.KaTeX(), |
| 18 | + ), |
| 19 | + modules = [oneAPI], |
| 20 | + pages = [ |
| 21 | + "Home" => "index.md", |
| 22 | + "Installation" => "installation.md", |
| 23 | + "Getting Started" => "getting_started.md", |
| 24 | + "Usage" => [ |
| 25 | + "Array Programming" => "arrays.md", |
| 26 | + "Kernel Programming" => "kernels.md", |
| 27 | + "Memory Management" => "memory.md", |
| 28 | + "Device Intrinsics" => "device.md", |
| 29 | + "Performance Guide" => "usage/performance.md", |
| 30 | + ], |
| 31 | + "API Reference" => [ |
| 32 | + "Overview" => "api.md", |
| 33 | + "Context & Device Management" => "api/context.md", |
| 34 | + "Array Operations" => "api/arrays.md", |
| 35 | + "Kernel Programming" => "api/kernels.md", |
| 36 | + "Memory Management" => "api/memory.md", |
| 37 | + "Compiler & Reflection" => "api/compiler.md", |
| 38 | + "Level Zero (oneL0)" => "level_zero.md", |
| 39 | + "oneMKL" => "onemkl.md", |
| 40 | + ], |
| 41 | + "Troubleshooting" => "troubleshooting.md", |
| 42 | + ], |
| 43 | + checkdocs = :none, # Don't error on missing docstrings |
| 44 | + warnonly = [:cross_references, :missing_docs], # Only warn, don't error |
| 45 | +) |
| 46 | + |
| 47 | +deploydocs( |
| 48 | + repo = "github.com/JuliaGPU/oneAPI.jl.git", |
| 49 | + target = "build", |
| 50 | + devbranch = "main", |
| 51 | + devurl = "dev", |
| 52 | + push_preview = true, |
| 53 | +) |
| 54 | + |
0 commit comments