mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Deprecate defaults.get_schema
This commit is contained in:
@@ -8,10 +8,6 @@ from mkdocs.config import config_options as c
|
||||
from mkdocs.utils.yaml import get_yaml_loader, yaml_load
|
||||
|
||||
|
||||
def get_schema() -> base.PlainConfigSchema:
|
||||
return MkDocsConfig._schema
|
||||
|
||||
|
||||
# NOTE: The order here is important. During validation some config options
|
||||
# depend on others. So, if config option A depends on B, then A should be
|
||||
# listed higher in the schema.
|
||||
@@ -152,3 +148,8 @@ class MkDocsConfig(base.Config):
|
||||
"""Load config options from the open file descriptor of a YAML file."""
|
||||
loader = get_yaml_loader(config=self)
|
||||
self.load_dict(yaml_load(config_file, loader))
|
||||
|
||||
|
||||
def get_schema() -> base.PlainConfigSchema:
|
||||
"""Soft-deprecated, do not use."""
|
||||
return MkDocsConfig._schema
|
||||
|
||||
Reference in New Issue
Block a user