Skip to content

Commit

Permalink
Move bib plugin to pages.jl for JuliaAstro.org
Browse files Browse the repository at this point in the history
  • Loading branch information
abhro committed Jun 19, 2024
1 parent cbd43dd commit 90c4fbc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
8 changes: 3 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
using Documenter
using DocumenterCitations
using LombScargle

# # Generate all images
# include(joinpath(@__DIR__, "src", "images.jl"))
cp(joinpath(@__DIR__, "..", "perf", "benchmarks.png"),
joinpath(@__DIR__, "src", "benchmarks.png"))

bib = CitationBibliography(
joinpath(@__DIR__, "src", "references.bib");
style=:authoryear,
)
# gives `pages` and `bib`
include("pages.jl")

makedocs(
modules = [LombScargle],
sitename = "LombScargle",
pages = pages,
plugins = [bib],
)

Expand Down
13 changes: 12 additions & 1 deletion docs/pages.jl
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
pages = ["Home"=>"index.md"]
using DocumenterCitations

pages = ["Home" => "index.md"]


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

0 comments on commit 90c4fbc

Please sign in to comment.