From f447a4283fbb5e40076ccfea113b7ee6b9f5adc7 Mon Sep 17 00:00:00 2001 From: Abhro R <5664668+abhro@users.noreply.github.com> Date: Wed, 19 Jun 2024 16:17:32 -0400 Subject: [PATCH] Move bib plugin to pages.jl for JuliaAstro.org --- docs/make.jl | 7 +------ docs/pages.jl | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/make.jl b/docs/make.jl index b9d088b..16f88e3 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -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(; diff --git a/docs/pages.jl b/docs/pages.jl index 16214dc..9a9ecce 100644 --- a/docs/pages.jl +++ b/docs/pages.jl @@ -1,3 +1,4 @@ +using DocumenterCitations pages = [ "Home" => "index.md", @@ -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 +)