Skip to content

Search bar usage with mkdocs #99

Discussion options

You must be logged in to vote

Yeah, the search is a little strange here. Dunno how it search for title, filename and quote.
I think two things :

  • By default, material mkdocs add the filename/title frontmatter in the document’s heading 1.
  • But, the material search only search in CONTENTS, aka the other heading, maybe frontmatter title and file’s contents.

So searching a filename (and not the heading) using quote won’t work.

Edit : there is already an issue for this behavior on material mkdocs squidfunk/mkdocs-material#304

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Mara-Li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ Question Further information is requested 📫 Material Mkdocs Template Discussion about the mkdocs template
2 participants
Converted from issue

This discussion was converted from issue #99 on February 04, 2023 23:16.