Skip to content

Commit 7609d36

Browse files
authored
Docs: add previewand set meta prior to makedocs (#27)
This fixes doc errors on the first run in a session. The current implementation works fine in later runs, but when we build to deploy there is only one run. This also turns on previews.
1 parent 803455b commit 7609d36

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/make.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using Documenter
22
using Graphics
33

4+
DocMeta.setdocmeta!(Graphics, :DocTestSetup, :(using Graphics); recursive=true)
5+
46
makedocs(
57
sitename = "Graphics",
68
format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true"),
@@ -10,8 +12,7 @@ makedocs(
1012
checkdocs = :exports
1113
)
1214

13-
DocMeta.setdocmeta!(Graphics, :DocTestSetup, :(using Graphics); recursive=true)
14-
1515
deploydocs(
16-
repo = "github.com/JuliaGraphics/Graphics.jl.git"
16+
repo = "github.com/JuliaGraphics/Graphics.jl.git",
17+
push_preview = true
1718
)

0 commit comments

Comments
 (0)