-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathmake.jl
More file actions
44 lines (37 loc) · 1.13 KB
/
make.jl
File metadata and controls
44 lines (37 loc) · 1.13 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
using Documenter, FiniteDiff
DocMeta.setdocmeta!(
FiniteDiff,
:DocTestSetup,
:(using FiniteDiff);
recursive=true,
)
cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force=true)
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force=true)
# create index from README and contributing
open(joinpath(@__DIR__, "src", "index.md"), "w") do io
println(
io,
"""
```@meta
EditURL = "https://github.com/JuliaDiff/FiniteDiff.jl/blob/master/README.md"
```
""",
)
for line in eachline(joinpath(dirname(@__DIR__), "README.md"))
println(io, line)
end
for line in eachline(joinpath(@__DIR__, "src", "reproducibility.md"))
println(io, line)
end
end
include("pages.jl")
makedocs(sitename="FiniteDiff.jl",
authors="Chris Rackauckas",
modules=[FiniteDiff],
clean=true,
doctest=false,
format=Documenter.HTML(assets=["assets/favicon.ico"],
canonical="https://docs.sciml.ai/FiniteDiff/stable/"),
warnonly=[:missing_docs],
pages=pages)
deploydocs(repo="github.com/JuliaDiff/FiniteDiff.jl.git"; push_preview=true)