-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmake.jl
More file actions
45 lines (40 loc) · 1.57 KB
/
make.jl
File metadata and controls
45 lines (40 loc) · 1.57 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
using PosteriorStats
using Distributions
using Documenter
using DocumenterCitations
using DocumenterInterLinks
DocMeta.setdocmeta!(PosteriorStats, :DocTestSetup, :(using PosteriorStats); recursive=true)
bib = CitationBibliography(joinpath(@__DIR__, "src", "references.bib"); style=:numeric)
links = InterLinks(
"Distributions" => "https://juliastats.org/Distributions.jl/stable/",
"IntervalSets" => (
"https://juliamath.github.io/IntervalSets.jl/stable/",
joinpath(@__DIR__, "inventories", "IntervalSets.toml"),
),
"MCMCDiagnosticTools" => "https://julia.arviz.org/MCMCDiagnosticTools/stable/",
"PSIS" => "https://julia.arviz.org/PSIS/stable/",
"Statistics" => "https://docs.julialang.org/en/v1/",
"StatsBase" => (
"https://juliastats.org/StatsBase.jl/stable/",
"https://juliastats.org/StatsBase.jl/dev/objects.inv",
),
)
# Increase the terminal width from 80 to 90 chars to avoid column truncation
withenv("COLUMNS" => 90) do
makedocs(;
modules=[PosteriorStats],
repo=Remotes.GitHub("arviz-devs", "PosteriorStats.jl"),
sitename="PosteriorStats.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
edit_link="main",
assets=[joinpath("assets", "citations.css")],
),
pages=["Home" => "index.md", "API" => "api.md", "References" => "references.md"],
warnonly=[:missing_docs],
plugins=[bib, links],
)
end
deploydocs(;
repo="github.com/arviz-devs/PosteriorStats.jl.git", devbranch="main", push_preview=true
)