8000 Built-in Search plugin can not be disabled properly · Issue #8128 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content
Built-in Search plugin can not be disabled properly #8128
@jpizquierdo

Description

@jpizquierdo

Context

When trying to implement the disable of the search following this:
https://squidfunk.github.io/mkdocs-material/plugins/search/#config.enabled

It does not work as described in documentation.

Bug description

I am trying yo disable the search, and I do not have any other plugins enabled.
So I decided to use inside mkdocs.yml:

plugins:
  - search:
      enabled: false

When I try the mkdocs serve this error 404 is shown:
Image

And search is still there as you can see in my following image. (Not only with mkdocs serve, also in Vercel deployment):

Image

Nevertheless I found a trick to make it work, and it is to put an empty plugins in mkdocs.yml:

plugins: []

Related links

Reproduction

9.6.10-search-enabled-not-working.zip

Steps to reproduce

  1. try to disable search as explained above
  2. mkdocs serve
  3. the search is still there and error is shown in logging

Browser

Chrome

Before submitting

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0