Skip to content

Commit

Permalink
We fixed it?
Browse files Browse the repository at this point in the history
  • Loading branch information
oameye committed Jan 23, 2025
1 parent 372cbbb commit 1b8bc7b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
16 changes: 12 additions & 4 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ using ModelingToolkit
using OrdinaryDiffEqTsit5
using SteadyStateDiffEq

TimeEvolution = Base.get_extension(HarmonicBalance, :TimeEvolution)
ModelingToolkitExt = Base.get_extension(HarmonicBalance, :ModelingToolkitExt)
SteadyStateDiffEqExt = Base.get_extension(HarmonicBalance, :SteadyStateDiffEqExt)

bib = CitationBibliography(
joinpath(@__DIR__, "src", "refs.bib");
style=:numeric, # default
Expand All @@ -32,9 +36,9 @@ makedocs(;
authors="Quest group",
modules=[
HarmonicBalance,
Base.get_extension(HarmonicBalance, :TimeEvolution),
Base.get_extension(HarmonicBalance, :ModelingToolkitExt),
Base.get_extension(HarmonicBalance, :SteadyStateDiffEqExt),
TimeEvolution,
ModelingToolkitExt,
SteadyStateDiffEqExt,
HarmonicBalance.LinearResponse,
],
format=DocumenterVitepress.MarkdownVitepress(;
Expand All @@ -47,7 +51,11 @@ makedocs(;
source="src",
build="build",
draft=!CI,
warnonly=[:linkcheck, :cross_references],
warnonly=if CI
[:linkcheck, :cross_references]
else
[:linkcheck, :cross_references, :missing_docs,:docs_block]
end,
doctest=false, # We test it in the CI, no need to run it here
plugins=[bib],
)
Expand Down
16 changes: 3 additions & 13 deletions docs/src/manual/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ Order = [:function]
get_Jacobian
```


## Extensions

### OrdinaryDiffEq
Expand All @@ -112,20 +111,11 @@ Order = [:function]
steady_state_sweep
```

```@autodocs; canonical=false
Modules = [Base.get_extension(HarmonicBalance, :SteadyStateDiffEqExt)]
Private = false
Order = [:function]
```

### ModelingToolkit

```@docs
ODEProblem
```

```@autodocs; canonical=false
Modules = [Base.get_extension(HarmonicBalance, :ModelingToolkitExt)]
Private = false
Order = [:function]
ModelingToolkit.ODESystem
ModelingToolkit.SciMLBase.SteadyStateProblem
ModelingToolkit.SciMLBase.NonlinearProblem
```
10 changes: 5 additions & 5 deletions ext/ModelingToolkitExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function declare_parameter(var::Num)
return eval(var_sym)
end

"""
@doc """
$(TYPEDSIGNATURES)
Creates and ModelingToolkit.ODESystem from a HarmonicEquation.
Expand Down Expand Up @@ -66,7 +66,7 @@ function ModelingToolkit.ODESystem(eom::HarmonicEquation)
return sys
end

"""
@doc """
$(TYPEDSIGNATURES)
Creates and ModelingToolkit.ODESystem from a DifferentialEquation.
Expand Down Expand Up @@ -97,7 +97,7 @@ function ModelingToolkit.ODESystem(diff_eq::DifferentialEquation)
return sys
end

"""
@doc """
$(TYPEDSIGNATURES)
Creates and ModelingToolkit.ODEProblem from a DifferentialEquation.
Expand All @@ -120,7 +120,7 @@ function ModelingToolkit.ODEProblem(
return prob
end

"""
@doc """
$(TYPEDSIGNATURES)
Creates and ModelingToolkit.NonlinearProblem from a DifferentialEquation.
Expand All @@ -132,7 +132,7 @@ function ModelingToolkit.NonlinearProblem(
return NonlinearProblem(ss_prob)
end

"""
@doc """
$(TYPEDSIGNATURES)
Creates and ModelingToolkit.SteadyStateProblem from a DifferentialEquation.
Expand Down

0 comments on commit 1b8bc7b

Please sign in to comment.