We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94d8299 commit caf2fffCopy full SHA for caf2fff
1 file changed
tests/test_plugin.py
@@ -20,11 +20,20 @@ def test_disabling_plugin(tmp_path: Path) -> None:
20
docs_dir.mkdir()
21
site_dir.mkdir()
22
docs_dir.joinpath("index.md").write_text("::: mkdocstrings")
23
+ config_file = tmp_path / "mkdocs.yml"
24
+ config_file.write_text(
25
+ """
26
+ site_name: Test
27
+ theme: mkdocs
28
+ plugins:
29
+ - mkdocstrings:
30
+ enabled: false
31
32
+ )
33
- mkdocs_config = load_config()
34
+ mkdocs_config = load_config(str(config_file))
35
mkdocs_config["docs_dir"] = str(docs_dir)
36
mkdocs_config["site_dir"] = str(site_dir)
- mkdocs_config["plugins"]["mkdocstrings"].config["enabled"] = False
37
mkdocs_config["plugins"].run_event("startup", command="build", dirty=False)
38
try:
39
build(mkdocs_config)
0 commit comments