Skip to content

Commit 2de6a98

Browse files
committed
Add custom CSS for citations
1 parent 95ce75f commit 2de6a98

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

docs/make.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ makedocs(;
1616
authors="Seth Axen <[email protected]> and contributors",
1717
repo=Remotes.GitHub("arviz-devs", "PSIS.jl"),
1818
sitename="PSIS.jl",
19-
format=Documenter.HTML(; prettyurls=get(ENV, "CI", "false") == "true", assets=String[]),
19+
format=Documenter.HTML(;
20+
prettyurls=get(ENV, "CI", "false") == "true",
21+
assets=[joinpath("assets", "citations.css")],
22+
),
2023
pages=[
2124
"Home" => "index.md",
2225
"Plotting" => "plotting.md",

docs/src/assets/citations.css

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* Adapted from DocumenterCitations.jl's docs */
2+
.citation dl {
3+
display: grid;
4+
grid-template-columns: max-content auto;
5+
}
6+
7+
.citation dt {
8+
grid-column-start: 1;
9+
}
10+
11+
.citation dd {
12+
grid-column-start: 2;
13+
margin-bottom: 0.75em;
14+
}
15+
16+
.citation ul {
17+
padding: 0 0 2.25em 0;
18+
margin: 0;
19+
list-style: none !important;
20+
}
21+
22+
.citation ul li {
23+
text-indent: -2.25em;
24+
margin: 0.33em 0.5em 0.5em 2.25em;
25+
}
26+
27+
.citation ol li {
28+
padding-left: 0.75em;
29+
}

0 commit comments

Comments
 (0)