-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathmake.jl
47 lines (40 loc) · 1.24 KB
/
make.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
### Process examples
using Pkg
Pkg.add(Pkg.PackageSpec(; url="https://github.com/JuliaGaussianProcesses/JuliaGPsDocs.jl")) # While the package is unregistered, it's a workaround
using JuliaGPsDocs
using KernelFunctions
using PDMats, Kronecker # we have to load all optional packages to generate the full API documentation
JuliaGPsDocs.generate_examples(KernelFunctions)
### Build documentation
using Documenter
# Doctest setup
DocMeta.setdocmeta!(
KernelFunctions,
:DocTestSetup,
quote
using KernelFunctions
end; # we have to load all packages used (implicitly) within jldoctest blocks in the API docstrings
recursive=true,
)
makedocs(;
sitename="KernelFunctions.jl",
format=Documenter.HTML(),
modules=[KernelFunctions],
pages=[
"Home" => "index.md",
"userguide.md",
"kernels.md",
"transform.md",
"metrics.md",
"create_kernel.md",
"API" => "api.md",
"Design" => "design.md",
"Examples" => JuliaGPsDocs.find_generated_examples(KernelFunctions),
],
strict=true,
checkdocs=:exports,
doctestfilters=JuliaGPsDocs.DOCTEST_FILTERS,
)
deploydocs(;
repo="github.com/JuliaGaussianProcesses/KernelFunctions.jl.git", push_preview=true
)