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-docsearchto 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_docsearch-0.0.1.tar.gz.
File metadata
- Download URL: sphinx_docsearch-0.0.1.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
394d6349c323c647e0097a8231362d18bf7cca4814d754911f0f70b670b63990
|
|
| MD5 |
7d24280087598e4883fab876da195d23
|
|
| BLAKE2b-256 |
4a028ce9c2e6b8120257366dda35d6eba14f2814ae7b1a12a36ce56e63ab60f3
|
File details
Details for the file sphinx_docsearch-0.0.1-py3-none-any.whl.
File metadata
- Download URL: sphinx_docsearch-0.0.1-py3-none-any.whl
- Upload date:
- Size: 40.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1041-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eddc8be356eb750207d817f8f0e7da8ed81e0f9dfe7903d04a1bd63e8b98a34
|
|
| MD5 |
a6757513fdce32d8f1155d2979d50ea6
|
|
| BLAKE2b-256 |
f2b63a44d225f86dc6ec8f1aefb340c47045f8b5a00ac96893f63b01fbc0cda9
|