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.9 and later and Sphinx versions 7 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-docsearchto 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
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.3.0.tar.gz.
File metadata
- Download URL: sphinx_docsearch-0.3.0.tar.gz
- Upload date:
- Size: 246.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24e131a6cd1c7f3bb28080576a31f767c7bb8d84a9dc947de1fa1ed7aaf69e70
|
|
| MD5 |
fa84c7af08acb1176c0e09b771179170
|
|
| BLAKE2b-256 |
a5055ac17452f431536ca7810745e6368232744ea24f7b255e13846e085d69a5
|
Provenance
The following attestation bundles were made for sphinx_docsearch-0.3.0.tar.gz:
Publisher:
ci.yml on algolia/sphinx-docsearch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_docsearch-0.3.0.tar.gz -
Subject digest:
24e131a6cd1c7f3bb28080576a31f767c7bb8d84a9dc947de1fa1ed7aaf69e70 - Sigstore transparency entry: 836193869
- Sigstore integration time:
-
Permalink:
algolia/sphinx-docsearch@0c1030513ce25923386a2ba94bbde62044452d99 -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/algolia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@0c1030513ce25923386a2ba94bbde62044452d99 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_docsearch-0.3.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_docsearch-0.3.0-py3-none-any.whl
- Upload date:
- Size: 141.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7abbdfcf5f65c529bb49be0e663fb4687982fa0f32d614e2ad1687f6a65d23
|
|
| MD5 |
afb2b2dc3ee29cd3c9e302b24ed37534
|
|
| BLAKE2b-256 |
a2c55914fb7e854180bde310117c227e986b1491933c3061bd063594c51d5d17
|
Provenance
The following attestation bundles were made for sphinx_docsearch-0.3.0-py3-none-any.whl:
Publisher:
ci.yml on algolia/sphinx-docsearch
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_docsearch-0.3.0-py3-none-any.whl -
Subject digest:
fa7abbdfcf5f65c529bb49be0e663fb4687982fa0f32d614e2ad1687f6a65d23 - Sigstore transparency entry: 836193871
- Sigstore integration time:
-
Permalink:
algolia/sphinx-docsearch@0c1030513ce25923386a2ba94bbde62044452d99 -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/algolia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@0c1030513ce25923386a2ba94bbde62044452d99 -
Trigger Event:
push
-
Statement type: