Metadata-Version: 2.5
Name: sphinx-searchlite
Version: 0.2.2
Summary: Client-side BM25 documentation search for any Sphinx theme
Project-URL: Repository, https://github.com/python-project-templates/sphinx-searchlite
Project-URL: Homepage, https://github.com/python-project-templates/sphinx-searchlite
Author-email: the sphinx-searchlite authors <t.paine154@gmail.com>
License: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.11
Requires-Dist: sphinx<10,>=7.2.6
Provides-Extra: develop
Requires-Dist: build; extra == 'develop'
Requires-Dist: bump-my-version; extra == 'develop'
Requires-Dist: check-dist; extra == 'develop'
Requires-Dist: codespell; extra == 'develop'
Requires-Dist: hatchling; extra == 'develop'
Requires-Dist: mdformat; extra == 'develop'
Requires-Dist: mdformat-frontmatter; extra == 'develop'
Requires-Dist: mdformat-tables>=1; extra == 'develop'
Requires-Dist: myst-parser; extra == 'develop'
Requires-Dist: pytest; extra == 'develop'
Requires-Dist: pytest-cov; extra == 'develop'
Requires-Dist: ruff; extra == 'develop'
Requires-Dist: twine; extra == 'develop'
Requires-Dist: ty; extra == 'develop'
Requires-Dist: uv; extra == 'develop'
Requires-Dist: wheel; extra == 'develop'
Description-Content-Type: text/markdown

# sphinx-searchlite

Client-side documentation search for any Sphinx theme. It needs no search
service, no runtime dependency, and no build step beyond Sphinx itself.

[![Build Status](https://github.com/python-project-templates/sphinx-searchlite/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/python-project-templates/sphinx-searchlite/actions/workflows/build.yaml)
[![codecov](https://codecov.io/gh/python-project-templates/sphinx-searchlite/branch/main/graph/badge.svg)](https://codecov.io/gh/python-project-templates/sphinx-searchlite)
[![License](https://img.shields.io/github/license/python-project-templates/sphinx-searchlite)](https://github.com/python-project-templates/sphinx-searchlite)
[![PyPI](https://img.shields.io/pypi/v/sphinx-searchlite.svg)](https://pypi.python.org/pypi/sphinx-searchlite)

## Quick start

Install the package:

```bash
pip install sphinx-searchlite
```

Add it to `conf.py`:

```python
extensions = ["sphinx_searchlite"]
```

Build your docs and open any page. Press `/` or `⌘K` (`Ctrl+K` on Linux and
Windows) to open the search dialog. If your theme has its own search box,
clicking it opens the same dialog.

## Documentation

- [How-to guides](docs/src/how-to.md): keep the theme's search box, write your
  own UI, add triggers, and restyle the dialog.
- [Reference](docs/src/reference.md): configuration options, the JavaScript
  API, the index format, and CSS custom properties.
- [Explanation](docs/src/explanation.md): why searchlite exists, how ranking
  works, and how the dialog picks its colors.

> [!NOTE]
> This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).
