Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support theme-namespaced plugin loading (#2998)
This is mainly aimed at 'material' theme which also ships plugins with it. It will be able to ship plugins under the name e.g. 'material/search' and that will ensure the following effects: * If the current theme is 'material', the plugin 'material/search' will always be preferred over 'search'. * If the current theme *isn't* 'material', the only way to use this plugin is by specifying `plugins: [material/search]`. One can also specify `plugins: ['/search']` instead of `plugins: ['search']` to definitely avoid the theme-namespaced plugin. Previously: * #2591 @squidfunk
- Loading branch information
Showing
3 changed files
with
103 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6fca6b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this feature! Ideally, this could be released in the coming weeks before the next funding goal is hit, as it will force me to release the new search plugin which this change is mostly about. I will then up the MkDocs version requirement in Material for MkDocs to that version.