-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathmake.jl
More file actions
54 lines (49 loc) · 1.77 KB
/
make.jl
File metadata and controls
54 lines (49 loc) · 1.77 KB
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
48
49
50
51
52
53
54
using Base: get_extension
using DifferentiationInterface
import DifferentiationInterface as DI
using Documenter
using DocumenterInterLinks
using ADTypes: ADTypes
using ForwardDiff: ForwardDiff
using Zygote: Zygote
links = InterLinks(
"ADTypes" => "https://sciml.github.io/ADTypes.jl/stable/",
"Reactant" => "https://enzymead.github.io/Reactant.jl/stable/",
"SparseConnectivityTracer" => "https://adrianhill.de/SparseConnectivityTracer.jl/stable/",
"SparseMatrixColorings" => "https://gdalle.github.io/SparseMatrixColorings.jl/stable/",
"Symbolics" => "https://symbolics.juliasymbolics.org/stable/",
)
readme_str = read(joinpath(@__DIR__, "..", "README.md"), String)
readme_str = replace(readme_str, "> [!CAUTION]\n> " => "!!! warning\n ")
write(joinpath(@__DIR__, "src", "index.md"), readme_str)
makedocs(;
modules = [DifferentiationInterface],
authors = "Guillaume Dalle, Adrian Hill",
sitename = "DifferentiationInterface.jl",
format = Documenter.HTML(; assets = ["assets/favicon.ico"]),
pages = [
"Home" => "index.md",
"Tutorials" => ["tutorials/basic.md", "tutorials/advanced.md"],
"api.md",
"Explanation" => [
"explanation/arguments.md",
"explanation/operators.md",
"explanation/backends.md",
"explanation/advanced.md",
],
"FAQ" => ["faq/limitations.md", "faq/differentiability.md"],
"Development" => [
"dev/internals.md",
"dev/math.md",
"dev/contributing.md",
],
],
plugins = [links],
)
deploydocs(;
repo = "github.com/JuliaDiff/DifferentiationInterface.jl",
devbranch = "main",
dirname = "DifferentiationInterface",
tag_prefix = "DifferentiationInterface-",
push_preview = false,
)