Skip to content

Commit

Permalink
Add API documentation for supported operations (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Jun 5, 2024
1 parent 459f86b commit 701d504
Show file tree
Hide file tree
Showing 59 changed files with 3,073 additions and 641 deletions.
2 changes: 1 addition & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Documenter.makedocs(
"developer/contributing.md",
"developer/credits.md",
],
"reference.md",
"API Reference" => ["reference/api.md", "reference/atoms.md"],
"release_notes.md",
],
)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ There are a few ways to get started with Convex:

* Read the [Installation](@ref) guide
* Read the introductory tutorial [Quick Tutorial](@ref)
* Read the list of [Supported Operations](@ref)
* Read the list of [Supported operations](@ref)
* Browse some of our examples

!!! tip
Expand Down
2 changes: 1 addition & 1 deletion docs/src/manual/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ in a Convex.jl expression.
Expressions in Convex.jl are formed by applying any *atom* (mathematical
function defined in Convex.jl) to variables, constants, and other
expressions. For a list of these functions, see
[Supported Operations](@ref). Atoms are applied to expressions using
[Supported operations](@ref). Atoms are applied to expressions using
operator overloading. For example, `2+2` calls Julia's built-in
addition operator, while `2+x` calls the Convex.jl addition method and
returns a Convex.jl expression. Many of the useful language features in
Expand Down
9 changes: 7 additions & 2 deletions docs/src/reference.md → docs/src/reference/api.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Reference
# API

!!! info
See [Supported operations](@ref) for a list of the operations supported by
Convex.

```@docs
Convex.AbstractVariable
Expand All @@ -8,7 +12,7 @@ Convex.get_constraints
Convex.add_constraint!
Convex.vexity
Convex.vexity!
Convex.sign
Base.sign(x::Convex.AbstractVariable)
Convex.sign!
Convex.VarType
Convex.vartype
Expand All @@ -26,4 +30,5 @@ Convex.ProblemDepot.foreach_problem
Convex.ProblemDepot.PROBLEMS
Convex.conic_form!
Convex.new_conic_form!
Convex.write_to_file
```
Loading

0 comments on commit 701d504

Please sign in to comment.