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 and later and Sphinx versions 5 and later.
For a list of supported themes, see HTML theme support
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:
Customize
To change what the crawler should extract from your pages, see Record Extractor.
If you're using a Sphinx theme that's not supported, you can add custom templates to add the DocSearch UI. You can further customize the look of the DocSearch UI by adding custom CSS. For more information, see Customize.
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.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20551387629cc77ac67fadde06fdafdb00a1bc0fe30c2a59fb16205d37069693 |
|
MD5 | ddfd91b761c667d289e779a2ecbb96a7 |
|
BLAKE2b-256 | 18687b7c27246095fc32cd5074fdc3783618f92e2edcfd2188e79c5ab3e05094 |