Material v7 breaks mkdocs-localsearch
See original GitHub issue- I’ve read the [contribution guidelines][1] and agree with them
I’ve found a bug and checked that …
- … the problem doesn’t occur with the default MkDocs template
- … the problem is not in any of my customizations (CSS, JS, template)
- … the documentation does not mention anything about my problem
- … there are no open or closed issues that are related to my problem
Description
See https://github.com/wilhelmer/mkdocs-localsearch/issues/12.
Does not occur with any of the v7 beta versions, only in the release versions.
Steps to reproduce the bug
- Create a blank MkDocs project.
- Install and set up mkdocs-localsearch as described in the docs.
- Build.
Project configuration
site_name: My Docs
theme:
name: material
custom_dir: theme
use_directory_urls: false
plugins:
- search
- localsearch
System information
- OS: macOS
- Browser: Firefox and Chrome, latest
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
localsearch broke after update from mkdocs-material-insiders ...
localsearch fails after update from v7 insiders to v8 Insiders https://github.com/squidfunk/mkdocs-material-insiders
Read more >Changelog - Material for MkDocs - GitHub Pages
Bumped MkDocs version to 1.3.0 to mitigate breaking changes in Jinja ... is disabled (7.0.0 regression); Fixed localsearch integration (7.0.0 regression) ...
Read more >mkdocs-localsearch - PyPI
A MkDocs plugin to replace the native "search" plugin with a search plugin that also works locally (file:// protocol). Only works with the...
Read more >mkdocs-material Changelog - PyUp.io
Bumped MkDocs version to 1.3.0 to mitigate breaking changes in Jinja ... Fixed localsearch integration (7.0.0 regression)
Read more >Configuration - MkDocs
Project settings are configured by default using a YAML configuration file in the project directory named mkdocs.yml . You can specify another path...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released with 7.0.4
Well. I’m stupid:
https://github.com/squidfunk/mkdocs-material/blob/9ed181b697537dc71407ab4529e2791cdfbf8b23/src/assets/javascripts/components/search/_/index.ts#L87-L88
I added this because I wanted the search to degrade gracefully (= just hide) when served on
file://
, forgetting about thelocalsearch
plugin 🤦♂️ Fixed in eb35ab94.