Skip to content

Commit b3728d7

Browse files
authored
Merge pull request #2 from algebraic-solving/docu
fixes documentation build process
2 parents b54d72d + ccc983f commit b3728d7

File tree

8 files changed

+46
-23
lines changed

8 files changed

+46
-23
lines changed

docs/make.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
using msolve_jll
2-
using Nemo
3-
using LinearAlgebra
41
using AlgebraicSolving
52
using Documenter
63

7-
#= push!(LOAD_PATH, "../src") =#
8-
9-
include("../src/imports.jl")
10-
include("../src/exports.jl")
4+
push!(LOAD_PATH, "../src")
115

126
DocMeta.setdocmeta!(AlgebraicSolving, :DocTestSetup, :(using AlgebraicSolving); recursive=true)
137

@@ -19,7 +13,7 @@ makedocs(
1913
modules = [AlgebraicSolving],
2014
doctest = true,
2115
clean = true,
22-
strict = true,
16+
checkdocs = :none,
2317
sitename = "AlgebraicSolving.jl",
2418
format = Documenter.HTML(),
2519
pages = [

docs/src/2-groebner-bases.md renamed to docs/src/groebner-bases.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
```@meta
22
CurrentModule = AlgebraicSolving
3+
DocTestSetup = quote
4+
using AlgebraicSolving
5+
end
6+
```
7+
8+
```@setup algebraicsolving
9+
using AlgebraicSolving
10+
```
11+
12+
```@contents
13+
Pages = ["groebner-bases.md"]
314
```
415

516
# Gröbner bases

docs/src/4-katsura.md renamed to docs/src/katsura.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
```@meta
22
CurrentModule = AlgebraicSolving
3+
DocTestSetup = quote
4+
using AlgebraicSolving
5+
end
6+
```
7+
8+
```@setup algebraicsolving
9+
using AlgebraicSolving
10+
```
11+
12+
```@contents
13+
Pages = ["katsura.md"]
314
```
415

516
# Examples

docs/src/3-solvers.md renamed to docs/src/solvers.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
```@meta
22
CurrentModule = AlgebraicSolving
3+
DocTestSetup = quote
4+
using AlgebraicSolving
5+
end
6+
```
7+
8+
```@setup algebraicsolving
9+
using AlgebraicSolving
10+
```
11+
12+
```@contents
13+
Pages = ["solvers.md"]
314
```
415

516
# Algebraic Systems Solving

docs/src/1-types.md renamed to docs/src/types.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
```@meta
22
CurrentModule = AlgebraicSolving
3+
DocTestSetup = quote
4+
using AlgebraicSolving
5+
end
6+
```
7+
8+
```@setup algebraicsolving
9+
using AlgebraicSolving
10+
```
11+
12+
```@contents
13+
Pages = ["types.md"]
314
```
415

516
# Data Types
@@ -15,7 +26,6 @@ We use [Nemo](https://www.nemocas.org/index.html)'s multivariate polynomial
1526
ring structures:
1627

1728
```@repl
18-
using AlgebraicSolving
1929
R, (x,y,z) = PolynomialRing(QQ, ["x", "y", "z"], ordering=:degrevlex)
2030
```
2131
The above example defines a multivariate polynomial ring in three variables `x`,
@@ -24,7 +34,6 @@ for printing polynomials in the following. One can also define polynomial rings
2434
over finite fields:
2535

2636
```@repl
27-
using AlgebraicSolving
2837
R, (x,y,z) = PolynomialRing(GF(101), ["x", "y", "z"], ordering=:degrevlex)
2938
```
3039

@@ -35,7 +44,6 @@ data structures connected to ideals in order to make computational algebra more
3544
effective:
3645

3746
```@repl
38-
using AlgebraicSolving
3947
R, (x,y,z) = PolynomialRing(QQ, ["x", "y", "z"], ordering=:degrevlex)
4048
I = Ideal([x+y+1, y*z^2-13*y^2])
4149
```

src/algorithms/groebner-bases.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ At the moment the underlying algorithm is based on variants of Faugère's F4 Alg
2424
2525
# Examples
2626
```jldoctest
27-
julia> using AlgebraicSolving
28-
2927
julia> R, (x,y,z) = PolynomialRing(GF(101),["x","y","z"], ordering=:degrevlex)
3028
(Multivariate Polynomial Ring in x, y, z over Galois field with characteristic 101, Nemo.gfp_mpoly[x, y, z])
3129
@@ -78,8 +76,6 @@ At the moment the underlying algorithm is based on variants of Faugère's F4 Alg
7876
7977
# Examples
8078
```jldoctest
81-
julia> using AlgebraicSolving
82-
8379
julia> R, (x,y,z) = PolynomialRing(GF(101),["x","y","z"], ordering=:degrevlex)
8480
(Multivariate Polynomial Ring in x, y, z over Galois field with characteristic 101, Nemo.gfp_mpoly[x, y, z])
8581

src/algorithms/solvers.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ is greater then zero an empty array is returned.
213213
214214
# Examples
215215
```jldoctest
216-
julia> using AlgebraicSolving
217-
218216
julia> R,(x1,x2,x3) = PolynomialRing(QQ, ["x1","x2","x3"])
219217
(Multivariate Polynomial Ring in x1, x2, x3 over Rational Field, Nemo.fmpq_mpoly[x1, x2, x3])
220218
@@ -268,8 +266,6 @@ is greater then zero an empty array is returned.
268266
269267
# Examples
270268
```jldoctest
271-
julia> using AlgebraicSolving
272-
273269
julia> R,(x1,x2,x3) = PolynomialRing(QQ, ["x1","x2","x3"])
274270
(Multivariate Polynomial Ring in x1, x2, x3 over Rational Field, Nemo.fmpq_mpoly[x1, x2, x3])
275271

src/examples/katsura.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ Also note that indices have been shifted to start from 1.
2222
2323
# Example
2424
```jldoctest
25-
julia> using AlgebraicSolving
26-
2725
julia> katsura(2)
2826
Nemo.fmpq_mpoly[x1 + 2*x2 + 2*x3 - 1, x1^2 + 2*x2^2 + 2*x3^2 - x1, 2*x1*x2 + 2*x2*x3 - x2]
2927
```
@@ -47,8 +45,6 @@ Returns the Katsura ideal in the given polynomial ring `R`.
4745
4846
# Example
4947
```jldoctest
50-
julia> using AlgebraicSolving
51-
5248
julia> R, _ = QQ["x", "y", "z"]
5349
(Multivariate Polynomial Ring in x, y, z over Rational Field, Nemo.fmpq_mpoly[x, y, z])
5450

0 commit comments

Comments
 (0)