Skip to content

Commit f8c3809

Browse files
committed
update ctbase compat
1 parent a54416b commit f8c3809

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

docs/make.jl

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
using Documenter
22
using CTModels
3-
#using CTBase # For automatic_reference_documentation
3+
using CTBase # For automatic_reference_documentation
44
using Plots
55
using JSON3
66
using JLD2
77
using Markdown
88
using MarkdownAST: MarkdownAST
99

10-
include(joinpath(@__DIR__, "docutils", "DocumenterReference.jl"))
11-
using .DocumenterReference
12-
1310
# ═══════════════════════════════════════════════════════════════════════════════
1411
# Configuration
1512
# ═══════════════════════════════════════════════════════════════════════════════
@@ -21,7 +18,6 @@ draft = false # Draft mode: if true, @example blocks in markdown are not execut
2118
const CTModelsPlots = Base.get_extension(CTModels, :CTModelsPlots)
2219
const CTModelsJSON = Base.get_extension(CTModels, :CTModelsJSON)
2320
const CTModelsJLD = Base.get_extension(CTModels, :CTModelsJLD)
24-
#const DocumenterReference = Base.get_extension(CTBase, :DocumenterReference)
2521

2622
# to add docstrings from external packages
2723
Modules = [Plots, CTModelsPlots, CTModelsJSON, CTModelsJLD]
@@ -82,7 +78,7 @@ makedocs(;
8278
# ───────────────────────────────────────────────────────────────────
8379
# Main module
8480
# ───────────────────────────────────────────────────────────────────
85-
DocumenterReference.automatic_reference_documentation(;
81+
CTBase.automatic_reference_documentation(;
8682
subdirectory=".",
8783
primary_modules=[CTModels => src("CTModels.jl")],
8884
exclude=EXCLUDE_SYMBOLS,
@@ -95,7 +91,7 @@ makedocs(;
9591
# ───────────────────────────────────────────────────────────────────
9692
# Core: Types
9793
# ───────────────────────────────────────────────────────────────────
98-
DocumenterReference.automatic_reference_documentation(;
94+
CTBase.automatic_reference_documentation(;
9995
subdirectory=".",
10096
primary_modules=[CTModels => src(
10197
"core/types.jl",
@@ -115,7 +111,7 @@ makedocs(;
115111
# ───────────────────────────────────────────────────────────────────
116112
# Core: Default & Utils
117113
# ───────────────────────────────────────────────────────────────────
118-
DocumenterReference.automatic_reference_documentation(;
114+
CTBase.automatic_reference_documentation(;
119115
subdirectory=".",
120116
primary_modules=[CTModels => src("core/default.jl", "core/utils.jl")],
121117
exclude=EXCLUDE_SYMBOLS,
@@ -128,7 +124,7 @@ makedocs(;
128124
# ───────────────────────────────────────────────────────────────────
129125
# OCP: Model (model, definition, time_dependence)
130126
# ───────────────────────────────────────────────────────────────────
131-
DocumenterReference.automatic_reference_documentation(;
127+
CTBase.automatic_reference_documentation(;
132128
subdirectory=".",
133129
primary_modules=[CTModels => src(
134130
"ocp/model.jl",
@@ -145,7 +141,7 @@ makedocs(;
145141
# ───────────────────────────────────────────────────────────────────
146142
# OCP: Times
147143
# ───────────────────────────────────────────────────────────────────
148-
DocumenterReference.automatic_reference_documentation(;
144+
CTBase.automatic_reference_documentation(;
149145
subdirectory=".",
150146
primary_modules=[CTModels => src("ocp/times.jl")],
151147
exclude=EXCLUDE_SYMBOLS,
@@ -158,7 +154,7 @@ makedocs(;
158154
# ───────────────────────────────────────────────────────────────────
159155
# OCP: State, Control, Variable
160156
# ───────────────────────────────────────────────────────────────────
161-
DocumenterReference.automatic_reference_documentation(;
157+
CTBase.automatic_reference_documentation(;
162158
subdirectory=".",
163159
primary_modules=[CTModels => src("ocp/state.jl", "ocp/control.jl", "ocp/variable.jl")],
164160
exclude=EXCLUDE_SYMBOLS,
@@ -171,7 +167,7 @@ makedocs(;
171167
# ───────────────────────────────────────────────────────────────────
172168
# OCP: Dynamics & Objective
173169
# ───────────────────────────────────────────────────────────────────
174-
DocumenterReference.automatic_reference_documentation(;
170+
CTBase.automatic_reference_documentation(;
175171
subdirectory=".",
176172
primary_modules=[CTModels => src("ocp/dynamics.jl", "ocp/objective.jl")],
177173
exclude=EXCLUDE_SYMBOLS,
@@ -184,7 +180,7 @@ makedocs(;
184180
# ───────────────────────────────────────────────────────────────────
185181
# OCP: Constraints
186182
# ───────────────────────────────────────────────────────────────────
187-
DocumenterReference.automatic_reference_documentation(;
183+
CTBase.automatic_reference_documentation(;
188184
subdirectory=".",
189185
primary_modules=[CTModels => src("ocp/constraints.jl")],
190186
exclude=EXCLUDE_SYMBOLS,
@@ -197,7 +193,7 @@ makedocs(;
197193
# ───────────────────────────────────────────────────────────────────
198194
# OCP: Solution & Dual
199195
# ───────────────────────────────────────────────────────────────────
200-
DocumenterReference.automatic_reference_documentation(;
196+
CTBase.automatic_reference_documentation(;
201197
subdirectory=".",
202198
primary_modules=[CTModels => src("ocp/solution.jl", "ocp/dual_model.jl")],
203199
exclude=EXCLUDE_SYMBOLS,
@@ -210,7 +206,7 @@ makedocs(;
210206
# ───────────────────────────────────────────────────────────────────
211207
# OCP: Print
212208
# ───────────────────────────────────────────────────────────────────
213-
DocumenterReference.automatic_reference_documentation(;
209+
CTBase.automatic_reference_documentation(;
214210
subdirectory=".",
215211
primary_modules=[CTModels => src("ocp/print.jl")],
216212
exclude=EXCLUDE_SYMBOLS,
@@ -223,7 +219,7 @@ makedocs(;
223219
# ───────────────────────────────────────────────────────────────────
224220
# Initial Guess
225221
# ───────────────────────────────────────────────────────────────────
226-
DocumenterReference.automatic_reference_documentation(;
222+
CTBase.automatic_reference_documentation(;
227223
subdirectory=".",
228224
primary_modules=[CTModels => src("init/initial_guess.jl")],
229225
exclude=EXCLUDE_SYMBOLS,
@@ -236,7 +232,7 @@ makedocs(;
236232
# ───────────────────────────────────────────────────────────────────
237233
# NLP Backends
238234
# ───────────────────────────────────────────────────────────────────
239-
DocumenterReference.automatic_reference_documentation(;
235+
CTBase.automatic_reference_documentation(;
240236
subdirectory=".",
241237
primary_modules=[CTModels => src(
242238
"nlp/nlp_backends.jl",
@@ -255,7 +251,7 @@ makedocs(;
255251
# ───────────────────────────────────────────────────────────────────
256252
# Extension: Plot
257253
# ───────────────────────────────────────────────────────────────────
258-
DocumenterReference.automatic_reference_documentation(;
254+
CTBase.automatic_reference_documentation(;
259255
subdirectory=".",
260256
primary_modules=[CTModelsPlots => ext(
261257
"CTModelsPlots.jl",
@@ -274,7 +270,7 @@ makedocs(;
274270
# ───────────────────────────────────────────────────────────────────
275271
# Extension: JLD & JSON (combined)
276272
# ───────────────────────────────────────────────────────────────────
277-
DocumenterReference.automatic_reference_documentation(;
273+
CTBase.automatic_reference_documentation(;
278274
subdirectory=".",
279275
primary_modules=[
280276
CTModelsJSON => ext("CTModelsJSON.jl"),

0 commit comments

Comments
 (0)