Mkdocs Exclude Search

screenshot of Mkdocs Exclude Search
mkdocs

A mkdocs plugin that excludes selected chapters from the docs search index.

Overview

The mkdocs-exclude-search plugin is a valuable addition for anyone using MkDocs who wants to manage their documentation's search functionality more effectively. This plugin allows users to exclude selected chapters or sections from the search index, providing easy configuration options and flexibility for various documentation needs. While MkDocs Material has introduced built-in search exclusions for straightforward cases, this plugin enhances the capability with more advanced features.

With mkdocs-exclude-search, users can customize their documentation search experience to ensure that only relevant content is searchable. Whether dealing with multiple chapters, specific subsections, or entire directories, this plugin offers a comprehensive set of options for fine-tuning what is indexed in search results.

Features

  • Wildcard Exclusions: Easily exclude specific files or entire directories using wildcard patterns, providing flexibility in managing content visibility.
  • Subsection Control: Exclude specific subsections within a document while keeping other parts indexed for search, enabling precise control over what users see.
  • Exclude Unreferenced Files: Automatically filter out all markdown files not referenced in the navigation section, streamlining search results to only include relevant documents.
  • Simple Configuration: Set up exclusions with a straightforward syntax in the mkdocs.yml, making it easy to configure without extensive documentation.
  • Focus on Specific Chapters: Exclude entire chapters or select headings, ensuring that search results remain relevant to the content users are actively looking for.
  • Integration with Existing Systems: Works seamlessly alongside other MkDocs plugins, enhancing the overall documentation experience without major disruptions.
  • Defaults for Ease of Use: Offers sensible defaults like excluding unreferenced files disabled by default, reducing potential confusion for new users.
mkdocs
MkDocs

MkDocs is a fast, simple and downright gorgeous static site generator that's geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file.

documentation
Documentation

Documentation themes are built specifically for writing technical and product documentation. They are normally written and maintained in Markdown. The often include a navigation menu, search bar, clear headings, semantic document structure and clean typography.