A Sphinx extension for replacing the built-in search with Algolia DocSearch
Project description
Algolia DocSearch Sphinx extension
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
extension from PyPI:
pip install sphinx-docsearch
Configure
-
Add
sphinx-docsearch
to your Sphinx configuration fileconf.py
:extensions += ["sphinx_docsearch"]
-
Add your Algolia credentials to your Sphinx configuration:
docsearch_app_id = "<DOCSEARCH_APP_ID>" docsearch_api_key = "<DOCSEARCH_SEARCH_API_KEY>" docsearch_index_name = "<DOCSEARCH_INDEX_NAME>"
-
Optional: change configuration settings
Customize
- Customize crawling (link to DocSearch or Crawler doc)
- Add custom templates
- Add custom 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
sphinx_docsearch-0.0.2.tar.gz
(39.0 kB
view hashes)
Built Distribution
Close
Hashes for sphinx_docsearch-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c5bbe367deac98e0c9b11154006e6a8ef725df5f68286ff29f91feb431adc21 |
|
MD5 | 2d57fda0209213745f42fc7577e61a14 |
|
BLAKE2b-256 | 9a38733d17d1ff4a394ceffc143ab2940916cdbbaaec53fe392d23b16ddc4827 |