-
Notifications
You must be signed in to change notification settings - Fork 6
/
make.jl
46 lines (39 loc) · 1.48 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
using DocumenterCitations
using Documenter
using Pkg
PROJECT_TOML = Pkg.TOML.parsefile(joinpath(@__DIR__, "..", "Project.toml"))
VERSION = PROJECT_TOML["version"]
NAME = PROJECT_TOML["name"]
AUTHORS = join(PROJECT_TOML["authors"], ", ") * " and contributors"
GITHUB = "https://github.com/JuliaDocs/DocumenterCitations.jl"
bib = CitationBibliography(
joinpath(@__DIR__, "src", "refs.bib");
style=:numeric # default
)
println("Starting makedocs")
include("custom_styles/enumauthoryear.jl")
include("custom_styles/keylabels.jl")
makedocs(
authors=AUTHORS,
linkcheck=(get(ENV, "DOCUMENTER_CHECK_LINKS", "1") != "0"),
# Link checking is disabled in REPL, see `devrepl.jl`.
warnonly=[:linkcheck,],
sitename="DocumenterCitations.jl",
format=Documenter.HTML(
prettyurls=true,
canonical="https://juliadocs.org/DocumenterCitations.jl",
assets=String["assets/citations.css"],
footer="[$NAME.jl]($GITHUB) v$VERSION docs powered by [Documenter.jl](https://github.com/JuliaDocs/Documenter.jl).",
),
pages=[
"Home" => "index.md",
"Syntax" => "syntax.md",
"Citation Style Gallery" => "gallery.md",
"CSS Styling" => "styling.md",
"Internals" => "internals.md",
"References" => "references.md",
],
plugins=[bib],
)
println("Finished makedocs")
deploydocs(; repo="github.com/JuliaDocs/DocumenterCitations.jl.git", push_preview=true)