Skip to content

Conversation

@waylan
Copy link
Member

@waylan waylan commented Apr 5, 2021

Replace the global variable mkdocs.config.DEFAULT_SCHEMA with
the function mkdocs.config.defaults.get_schema(). An instance is no
longer created on import (eliminating circular imports under certain
circumstances) and each call to get_schema() builds a new instance
of each object. Fixes #2289.

waylan added 2 commits April 5, 2021 16:24
Replace the global variable `mkdocs.config.DEFAULT_SCHEMA` with
the function `mkdocs.config.defaults.get_schema()`. An instance is no
longer created on import (eliminating circular imports under certain
circumstances) and each call to `get_schema()` builds a new instance
of each object. Fixes mkdocs#2289.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config.validate keeps 'mdx_configs' values across different instances

1 participant