File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626from mkdocs .config import config_options as opt
2727from mkdocs .plugins import BasePlugin
2828from mkdocs .utils import write_file
29- from mkdocs_autorefs .plugin import AutorefsPlugin
29+ from mkdocs_autorefs .plugin import AutorefsConfig , AutorefsPlugin
3030
3131from mkdocstrings ._cache import download_and_cache_url , download_url_with_gz
3232from mkdocstrings .extension import MkdocstringsExtension
@@ -181,6 +181,7 @@ def on_config(self, config: MkDocsConfig) -> MkDocsConfig | None:
181181 except KeyError :
182182 # Otherwise, add a limited instance of it that acts only on what's added through `register_anchor`.
183183 autorefs = AutorefsPlugin ()
184+ autorefs .config = AutorefsConfig ()
184185 autorefs .scan_toc = False
185186 config .plugins ["autorefs" ] = autorefs
186187 log .debug (f"Added a subdued autorefs instance { autorefs !r} " )
You can’t perform that action at this time.
0 commit comments