A Sphinx extension for replacing the built-in search with Algolia DocSearch
Project description
Algolia DocSearch for Sphinx
This extension for the Sphinx documentation generator replaces Sphinx's built-in search with Algolia DocSearch.
Before you begin
Apply for DocSearch. You'll get an email with your Algolia credentials.
This extension supports Python versions 3.8, 3.9, 3.10, and 3.11 and Sphinx versions 5 and later.
Install
Install the sphinx-docsearch
package:
pip install sphinx-docsearch
Configure
-
Add
sphinx-docsearch
to your Sphinx configuration:# conf.py extensions += ["sphinx_docsearch"]
-
Add your Algolia credentials to your Sphinx configuration:
# conf.py docsearch_app_id = "<DOCSEARCH_APP_ID>" docsearch_api_key = "<DOCSEARCH_SEARCH_API_KEY>" docsearch_index_name = "<DOCSEARCH_INDEX_NAME>"
See also: Configure DocSearch.
Customize
To change what the crawler should extract from your pages, see Record Extractor.
You can add custom templates, if your Sphinx HTML theme uses templates not provided by this extension.
You can customize the look of the DocSearch UI by adding your own CSS.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sphinx_docsearch-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e40dc285dd7a985f9cbdab50f276ae365c8bada8022fa1b3de52206bff55b54 |
|
MD5 | d89178f3cfa0ee13c74bfeab38e1fc33 |
|
BLAKE2b-256 | c7bef884ef064358ba09c1ba78e549baf4e9ef249a531a8f4395f66595ecb116 |