Skip to content

Commit 1dd94d8

Browse files
authored
[docs] overhaul the docs (#194)
1 parent 95410dd commit 1dd94d8

12 files changed

Lines changed: 1373 additions & 1387 deletions

docs/Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[deps]
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33
Dualization = "191a621a-6537-11e9-281d-650236a99e60"
4+
ECOS = "e2685f51-7e38-5353-a97d-a921fd2c8199"
5+
JuMP = "4076af6c-e467-56ae-b986-b466b2749572"
46

57
[compat]
6-
Documenter = "0.24"
8+
Documenter = "1"

docs/make.jl

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,27 @@
33
# Use of this source code is governed by an MIT-style license that can be found
44
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
55

6-
using Documenter, Dualization
6+
import Documenter
7+
import Dualization
78

8-
makedocs(
9-
modules = [Dualization],
10-
doctest = false,
11-
clean = true,
12-
# See https://github.com/JuliaDocs/Documenter.jl/issues/868
9+
Documenter.makedocs(
10+
sitename = "Dualization.jl",
11+
authors = "Guilherme Bodin, and contributors",
1312
format = Documenter.HTML(
1413
assets = ["assets/favicon.ico"],
1514
mathengine = Documenter.MathJax(),
1615
prettyurls = get(ENV, "CI", nothing) == "true",
1716
),
18-
sitename = "Dualization.jl",
19-
authors = "Guilherme Bodin, and contributors",
20-
pages = ["Home" => "index.md", "manual.md", "examples.md", "reference.md"],
17+
pages = [
18+
"Home" => "index.md",
19+
"manual.md",
20+
"mathematical_background.md",
21+
"reference.md",
22+
],
23+
modules = [Dualization],
24+
checkdocs = :exports,
25+
doctest = true,
26+
clean = true,
2127
)
2228

2329
Documenter.deploydocs(;

docs/src/examples.md

Lines changed: 0 additions & 139 deletions
This file was deleted.

docs/src/index.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,35 @@
1-
# Dualization.jl Documentation
1+
# Dualization.jl
22

3-
Dualization.jl is a package written on top of MathOptInterface that allows users to write the dual of a JuMP model automatically.
4-
This package has two main features: the `dualize` function, which enables users to get a dualized JuMP model, and the `DualOptimizer`, which enables users to solve a problem by providing the solver the dual of the problem.
3+
[Dualization.jl](https://github.com/jump-dev/Dualization.jl) is an extension
4+
package for [MathOptInterface.jl](https://github.com/jump-dev/MathOptInterface.jl)
5+
that formulates the dual of conic optimization problems.
6+
7+
Dualization.jl has two main features:
8+
9+
* The [`dualize`](@ref) function that computes the dual formulation of either
10+
a [MathOptInterface.jl](https://github.com/jump-dev/MathOptInterface.jl) or a
11+
[JuMP](https://github.com/jump-dev/JuMP.jl) model.
12+
* The [`dual_optimizer`](@ref) function that creates a MathOptInterface-compatible
13+
optimizer that solves the dual of the problem instead of the primal.
14+
15+
## License
16+
17+
[Dualization.jl](https://github.com/jump-dev/Dualization.jl) is licensed under
18+
the [MIT License](https://github.com/jump-dev/Dualization.jl/blob/master/LICENSE.md).
519

620
## Installation
721

8-
To install the package you can use `Pkg.add` as follows:
22+
Install Dualization using `Pkg.add`:
923
```julia
10-
pkg> add Dualization
24+
import Pkg
25+
Pkg.add("Dualization")
1126
```
1227

1328
## Contributing
1429

15-
Contributions to this package are more than welcome, if you find a bug or have any suggestions for the documentation please post it on the [github issue tracker](https://github.com/jump-dev/Dualization.jl/issues).
30+
Contributions to this package are more than welcome, if you find a bug or have
31+
any suggestions for the documentation please post it on the
32+
[GitHub issue tracker](https://github.com/jump-dev/Dualization.jl/issues).
1633

17-
When contributing please note that the package follows the [JuMP style guide](https://jump.dev/JuMP.jl/stable/developers/style/).
34+
When contributing, please note that the package follows the
35+
[JuMP style guide](https://jump.dev/JuMP.jl/stable/developers/style/).

0 commit comments

Comments
 (0)