Skip to content

Commit

Permalink
fix generation of documentation (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
frapac authored Sep 27, 2023
1 parent 972b99c commit ac946ee
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ Pkg.develop(PackageSpec(path=joinpath(dirname(@__FILE__), "..")))
Pkg.instantiate()

using Documenter, Argos
using Pkg.Artifacts

# Ensure ExaData is installed
artifact_toml = joinpath(@__DIR__, "..", "Artifacts.toml")
ensure_artifact_installed("ExaData", artifact_toml)

makedocs(
sitename = "Argos.jl",
Expand All @@ -14,7 +19,6 @@ makedocs(
),
modules = [Argos],
repo = "https://github.com/exanauts/Argos.jl/blob/{commit}{path}#{line}",
# strict = true,
checkdocs = :exports,
pages = [
"Home" => "index.md",
Expand Down
2 changes: 1 addition & 1 deletion src/Evaluators/full_space_evaluator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ the internal `stack` by calling the function [`update!`](@ref)
## Examples
```jldoctest; setup=:(using ExaPF, Argos)
```jldoctest; setup=:(using ExaPF, Argos; ExaPF.load_polar("case9.m"))
julia> flp = Argos.FullSpaceEvaluator(ExaPF.load_polar("case9.m"))
A FullSpaceEvaluator object
* device: CPU()
Expand Down
8 changes: 5 additions & 3 deletions src/Evaluators/reduced_evaluator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The reduced evaluator could be instantiated on the host memory, or on a specific
## Examples
```jldoctest; setup=:(using ExaPF, Argos)
```jldoctest; setup=:(using ExaPF, Argos; ExaPF.load_polar("case9.m"))
julia> nlp = Argos.ReducedSpaceEvaluator(ExaPF.load_polar("case9.m"))
A ReducedSpaceEvaluator object
* device: CPU()
Expand All @@ -38,8 +38,10 @@ julia> u = Argos.initial(nlp)
julia> Argos.update!(nlp, u); # solve power-flow
julia> Argos.objective(nlp, u) # get objective
5438.323706833448
julia> obj = Argos.objective(nlp, u); # get objective
julia> obj ≈ 5438.323706
true
```
Expand Down

0 comments on commit ac946ee

Please sign in to comment.