Skip to content

Commit

Permalink
Fix broken documentation link.
Browse files Browse the repository at this point in the history
  • Loading branch information
irm-codebase committed Dec 15, 2024
1 parent 93ba743 commit 19902d9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/creating/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To test your model pipeline, `config.init.time_subset` is a good way to limit yo
See our [time adjustment page](../advanced/time.md) for more details.

!!! info "See also"
The full set of available configuration options is documented in the [configuration schema](../reference/config_schema.md).
The full set of available configuration options is documented in the [configuration schema][model-configuration-schema].
This provides you with a description of each configuration option and the default which will be used if you do not provide a value.

## Deep-dive into some key configuration options
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ nav:
- reference/api/attrdict.md
- reference/api/exceptions.md
- reference/api/logging.md
- Model configuration schema: reference/config_schema.md
- reference/config_schema.md
- reference/data_table_schema.md
- reference/model_schema.md
- reference/math_schema.md
Expand Down
8 changes: 8 additions & 0 deletions src/calliope/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ class Solve(ConfigBaseModel):
class CalliopeConfig(ConfigBaseModel):
"""Calliope configuration class."""

model_config = {
"title": "Model configuration schema",
"extra": "forbid",
"frozen": True,
"revalidate_instances": "always",
"use_attribute_docstrings": True,
}

init: Init = Init()
build: Build = Build()
solve: Solve = Solve()

0 comments on commit 19902d9

Please sign in to comment.