-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documenter interlinks and citations (#73)
* Remove outdated docs of Distributions integration * Add DocumenterInterLinks as docs dependency * Copy example to `psis` docstring * Link out to MCMCDiagnosticTools docs * Filter out warnings line in doctests * Add MCMCDiagnosticTools as docs dep * Increment patch number * Add references file * Add bibliography to docs * Reference bibliography entry everywhere * Add custom CSS for citations * Match Distributions test dependency bound
- Loading branch information
Showing
9 changed files
with
145 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "PSIS" | ||
uuid = "ce719bf2-d5d0-4fb9-925d-10a81b42ad04" | ||
authors = ["Seth Axen <[email protected]> and contributors"] | ||
version = "0.9.6" | ||
version = "0.9.7" | ||
|
||
[deps] | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
[deps] | ||
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244" | ||
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656" | ||
MCMCDiagnosticTools = "be115224-59cd-429b-ad48-344e309966f0" | ||
PSIS = "ce719bf2-d5d0-4fb9-925d-10a81b42ad04" | ||
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" | ||
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | ||
|
||
[compat] | ||
Distributions = "0.23.2, 0.24, 0.25" | ||
Distributions = "0.25.81" | ||
Documenter = "1" | ||
DocumenterCitations = "1.2" | ||
DocumenterInterLinks = "1" | ||
MCMCDiagnosticTools = "0.3.2" | ||
Plots = "1.10.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
using Distributions, Plots, PSIS | ||
using Documenter | ||
using DocumenterCitations | ||
using DocumenterInterLinks | ||
|
||
DocMeta.setdocmeta!(PSIS, :DocTestSetup, :(using PSIS); recursive=true) | ||
|
||
bib = CitationBibliography(joinpath(@__DIR__, "src", "references.bib"); style=:numeric) | ||
|
||
links = InterLinks( | ||
"MCMCDiagnosticTools" => "https://julia.arviz.org/MCMCDiagnosticTools/stable/" | ||
) | ||
|
||
makedocs(; | ||
modules=[PSIS], | ||
authors="Seth Axen <[email protected]> and contributors", | ||
repo=Remotes.GitHub("arviz-devs", "PSIS.jl"), | ||
sitename="PSIS.jl", | ||
format=Documenter.HTML(; prettyurls=get(ENV, "CI", "false") == "true", assets=String[]), | ||
format=Documenter.HTML(; | ||
prettyurls=get(ENV, "CI", "false") == "true", | ||
assets=[joinpath("assets", "citations.css")], | ||
), | ||
pages=[ | ||
"Home" => "index.md", | ||
"Plotting" => "plotting.md", | ||
"API" => "api.md", | ||
"Internal" => "internal.md", | ||
"References" => "references.md", | ||
], | ||
doctestfilters=[r"└.*"], # ignore locations in warning messages | ||
warnonly=:missing_docs, | ||
plugins=[bib, links], | ||
) | ||
|
||
deploydocs(; repo="github.com/arviz-devs/PSIS.jl.git", devbranch="main") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* Adapted from DocumenterCitations.jl's docs */ | ||
.citation dl { | ||
display: grid; | ||
grid-template-columns: max-content auto; | ||
} | ||
|
||
.citation dt { | ||
grid-column-start: 1; | ||
} | ||
|
||
.citation dd { | ||
grid-column-start: 2; | ||
margin-bottom: 0.75em; | ||
} | ||
|
||
.citation ul { | ||
padding: 0 0 2.25em 0; | ||
margin: 0; | ||
list-style: none !important; | ||
} | ||
|
||
.citation ul li { | ||
text-indent: -2.25em; | ||
margin: 0.33em 0.5em 0.5em 2.25em; | ||
} | ||
|
||
.citation ol li { | ||
padding-left: 0.75em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@article{VehtariSimpson2021, | ||
title = {Pareto Smoothed Importance Sampling}, | ||
author = {Vehtari, Aki and Simpson, Daniel and Gelman, Andrew and Yao, Yuling and Gabry, Jonah}, | ||
year = {2024}, | ||
journal = {Journal of Machine Learning Research}, | ||
volume = {25}, | ||
number = {72}, | ||
pages = {1--58}, | ||
url = {http://jmlr.org/papers/v25/19-556.html}, | ||
eprint = {1507.02646}, | ||
archiveprefix = {arXiv} | ||
} | ||
|
||
@article{ZhangStephens2009, | ||
title = {A New and Efficient Estimation Method for the Generalized Pareto Distribution}, | ||
author = {Zhang, Jin and Stephens, Michael A.}, | ||
year = {2009}, | ||
journal = {Technometrics : a journal of statistics for the physical, chemical, and engineering sciences}, | ||
volume = {51}, | ||
number = {3}, | ||
pages = {316--325}, | ||
publisher = {ASA Website}, | ||
doi = {10.1198/tech.2009.08017}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# References | ||
|
||
```@bibliography | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41c6f03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
41c6f03
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/121411
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: