Update doctest version guard (1.2 -> 1.4)

And add the same to docs/make.jl
This commit is contained in:
janEbert 2020-04-06 13:53:36 +02:00
parent 0e9bc82626
commit 684570660a
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ using Documenter, Flux, NNlib
DocMeta.setdocmeta!(Flux, :DocTestSetup, :(using Flux); recursive=true)
makedocs(modules=[Flux, NNlib],
doctest = true,
doctest = VERSION >= v"1.4",
sitename = "Flux",
pages = ["Home" => "index.md",
"Building Models" =>

View File

@ -41,7 +41,7 @@ Random.seed!(0)
end
@testset "Docs" begin
if VERSION >= v"1.2"
if VERSION >= v"1.4"
DocMeta.setdocmeta!(Flux, :DocTestSetup, :(using Flux); recursive=true)
doctest(Flux)
end