Skip to content

Commit 749c38f

Browse files
committed
fix broken doctests
1 parent 63538a6 commit 749c38f

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "0.23"
5+
Documenter = "0.23.3"

docs/make.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
using Polynomials, Documenter
1+
using Documenter, Polynomials
2+
3+
DocMeta.setdocmeta!(Polynomials, :DocTestSetup, :(using Polynomials); recursive=true)
24

35
makedocs(modules = [Polynomials],
46
format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true"),
@@ -7,6 +9,7 @@ makedocs(modules = [Polynomials],
79
pages = [
810
"Manual" => "index.md",
911
],
12+
doctest=true
1013
)
1114

1215
deploydocs(repo = "github.com/JuliaMath/Polynomials.jl.git")

docs/src/index.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ differentiation, evaluation, and root finding over dense univariate polynomials.
66
To install the package, run
77

88
```julia
9-
Pkg.add("Polynomials")
9+
(v1.2) pkg> add Polynomials
1010
```
1111

1212
The package can then be loaded into the current session using
@@ -15,16 +15,8 @@ The package can then be loaded into the current session using
1515
using Polynomials
1616
```
1717

18-
```@meta
19-
DocTestSetup = :( using Polynomials )
20-
```
21-
2218
## Functions
2319

24-
```@meta
25-
CurrentModule = Polynomials
26-
```
27-
2820
```@docs
2921
Poly
3022
poly

src/Polynomials.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ polynomials of different variables causes an error.
3232
3333
# Examples
3434
35-
```julia
35+
```jldoctest
3636
julia> Poly([1, 0, 3, 4])
3737
Poly(1 + 3⋅x^2 + 4⋅x^3)
3838

0 commit comments

Comments
 (0)