Skip to content

Enable local search provider in VitePress documentation#33

Merged
amavashev merged 1 commit intomainfrom
claude/add-article-search-0OezT
Mar 15, 2026
Merged

Enable local search provider in VitePress documentation#33
amavashev merged 1 commit intomainfrom
claude/add-article-search-0OezT

Conversation

@amavashev
Copy link
Contributor

Summary

This change enables the local search functionality in the VitePress documentation site by configuring the search provider in the theme configuration.

Key Changes

  • Added search configuration object to themeConfig in .vitepress/config.ts
  • Set search provider to 'local' to enable client-side search indexing and querying

Implementation Details

The local search provider allows users to search through documentation content without requiring external search services. This is a built-in VitePress feature that indexes pages at build time and provides search results on the client side.

https://claude.ai/code/session_01MCTjfZFEBUx2Gs7x4BJ9FE

As the docs library grows, sidebar navigation alone isn't sufficient.
VitePress's built-in MiniSearch provider adds full-text search with
a Ctrl+K modal, zero external dependencies, and automatic indexing.

https://claude.ai/code/session_01MCTjfZFEBUx2Gs7x4BJ9FE
@amavashev amavashev merged commit 7d085c5 into main Mar 15, 2026
1 check passed
@amavashev amavashev deleted the claude/add-article-search-0OezT branch March 17, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants