Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move bib plugin to pages.jl for JuliaAstro.org #47

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ using Documenter
using Orbits
using Transits
using Documenter.Remotes: GitHub
using DocumenterCitations

setup = quote
using Transits
end

bib = CitationBibliography(
joinpath(@__DIR__, "src", "refs.bib");
style=:authoryear
)

DocMeta.setdocmeta!(Transits, :DocTestSetup, setup; recursive=true)

# gives us `pages` and `bib`
include("pages.jl")

makedocs(;
Expand Down
8 changes: 8 additions & 0 deletions docs/pages.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using DocumenterCitations

pages = [
"Home" => "index.md",
Expand All @@ -6,3 +7,10 @@ pages = [
"Benchmarks" => "bench.md",
"API/Reference" => "api.md",
]

# put bib here for juliaastro.github.io so that the builder for that site can
# pick it up
bib = CitationBibliography(
joinpath(@__DIR__, "src", "refs.bib");
style=:authoryear
)
Loading