Skip to content

Commit

Permalink
Add DocMeta to doctest call in docs job
Browse files Browse the repository at this point in the history
So we can use unexported methods in the doctests
  • Loading branch information
cgarling committed May 20, 2024
1 parent a358ec8 commit e7eb0e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ jobs:
Pkg.instantiate()'
- run: |
julia --project=docs -e '
using Documenter: doctest
using StarFormationHistories
import Documenter: doctest, DocMeta
import StarFormationHistories
# To use unexported methods (`zzz`) as StarFormationHistories.zzz in doctests
DocMeta.setdocmeta!(StarFormationHistories, :DocTestSetup, :(using StarFormationHistories); recursive=true)
doctest(StarFormationHistories)'
- run: julia --project=docs docs/make.jl
env:
Expand Down

0 comments on commit e7eb0e6

Please sign in to comment.