forked from SciML/DiffEqDocs.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.jl
71 lines (65 loc) · 2.91 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
using Documenter, DiffEqBase, SciMLBase, OrdinaryDiffEq, OrdinaryDiffEqCore
import ODEProblemLibrary,
SDEProblemLibrary, DDEProblemLibrary, DAEProblemLibrary, BVProblemLibrary
using Sundials, DASKR
cp("./docs/Manifest.toml", "./docs/src/assets/Manifest.toml", force = true)
cp("./docs/Project.toml", "./docs/src/assets/Project.toml", force = true)
ENV["PLOTS_TEST"] = "true"
ENV["GKSwstype"] = "100"
include("pages.jl")
makedocs(
modules = [
DiffEqBase,
SciMLBase,
ODEProblemLibrary,
SDEProblemLibrary,
DDEProblemLibrary,
DAEProblemLibrary,
BVProblemLibrary,
OrdinaryDiffEq,
OrdinaryDiffEqCore,
Sundials, DASKR
],
linkcheck = true,
linkcheck_ignore = ["https://www.izhikevich.org/publications/spikes.htm",
"https://biojulia.net/post/hardware/",
"https://archimede.dm.uniba.it/~testset/report/pollu.pdf",
"http://www.radford.edu/~thompson/vodef90web/problems/demosnodislin/Demos_Pitagora/DemoHires/demohires.pdf",
"https://www.radford.edu/%7Ethompson/RP/nonnegative.pdf",
"http://www.radford.edu/~thompson/vodef90web/problems/demosnodislin/Demos_Pitagora/DemoOrego/demoorego.pdf",
"https://zenodo.org/record/5883749#.Yg-d698xmu4",
"https://www.sciencedirect.com/science/article/abs/pii/S0375960109009591",
"https://www.sciencedirect.com/science/article/abs/pii/0375960176901018",
"https://www.worldscientific.com/doi/abs/10.1142/S0218127499001024",
"https://www.worldscientific.com/doi/abs/10.1142/S0218127499001383",
"https://www.wolframalpha.com/input/?i=u%27%3D-sqrt%28u%29",
"https://www.mathworks.com/help/simulink/gui/absolutetolerance.html",
"https://www.mathworks.com/help/matlab/math/choose-an-ode-solver.html",
"https://journals.ametsoc.org/view/journals/atsc/20/2/1520-0469_1963_020_0130_dnf_2_0_co_2.xml"
],
doctest = false, clean = true,
warnonly = [:missing_docs],
format = Documenter.HTML(assets = ["assets/favicon.ico"],
canonical = "https://docs.sciml.ai/DiffEqDocs/stable/"),
sitename = "DifferentialEquations.jl",
authors = "Chris Rackauckas",
pages = pages)
#Redirect old links
# cd(joinpath(@__DIR__, "build")) do
# for (root, dirs, files) in walkdir(".")
# for file in files
# path = relpath(joinpath(root, file), ".")
# m = match(r"(.+)/index\.html$", path)
# m === nothing && continue
# redirect = "$(m[1]).html"
# @info "Adding redirect for $(m[1]) from $(redirect)"
# isfile(redirect) && (@warn "$redirect exists, skip"; continue)
# open(redirect, "w") do io
# write(io, """
# <meta http-equiv="refresh" content="0; url=$(basename(m[1]))/"/>
# """)
# end
# end
# end
# end
deploydocs(repo = "github.com/SciML/DiffEqDocs.jl.git")