diff --git a/docs/src/advanced/2_custom_model.md b/docs/src/advanced/2_custom_model.md index 1699e84d6e3ecf680fae188aed316d4ee207e1e5..b722f5f94aff529e5c42fc70d31bef5f9b5fa76d 100644 --- a/docs/src/advanced/2_custom_model.md +++ b/docs/src/advanced/2_custom_model.md @@ -21,7 +21,7 @@ and overload the required accessors. The accessors are functions that extract some relevant information, such as [`stoichiometry`](@ref) and [`bounds`](@ref), returning a fixed simple data type that can be further used by COBREXA. You may see a complete list of accessors -[here](../functions#Base-Types). +[here](../functions.md#Base-Types). A good solution to the second concern is a slightly more involved, as writing generic data modifiers is notoriously hard. Still, there is support for easily diff --git a/docs/src/functions.md b/docs/src/functions.md index 8061d75b387f128b93bf5a19b0eb23a403871311..ba14973e110a033bbd8da7a01496b1c37c91533d 100644 --- a/docs/src/functions.md +++ b/docs/src/functions.md @@ -77,6 +77,11 @@ Modules = [COBREXA] Pages = map(file -> joinpath("base", "utils", file), readdir("../src/base/utils")) ``` +```@autodocs +Modules = [COBREXA] +Pages = map(file -> joinpath("base", "macros", file), readdir("../src/base/macros")) +``` + ### Logging and debugging helpers ```@autodocs diff --git a/src/base/macros/change_bounds.jl b/src/base/macros/change_bounds.jl index 648ded28fce78da28ccb1fc3835f8efc8ea4d6d0..c379760829068e40bf8d3fba8e6d5c7ed8b98b10 100644 --- a/src/base/macros/change_bounds.jl +++ b/src/base/macros/change_bounds.jl @@ -27,7 +27,7 @@ macro _change_bounds_fn(model_type, idx_type, args...) docstring = """ $fname( model::$model_type, - $idx_var::$idx_type, + $idx_var::$idx_type; lower = $missing_default, upper = $missing_default, )