Skip to main content

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

  1. Add sphinx-docsearch to your Sphinx configuration:

    # conf.py
    extensions += ["sphinx_docsearch"]
    
  2. 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


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.3.0.tar.gz (246.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_docsearch-0.3.0-py3-none-any.whl (141.6 kB view details)

Uploaded Python 3

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

Hashes for sphinx_docsearch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 24e131a6cd1c7f3bb28080576a31f767c7bb8d84a9dc947de1fa1ed7aaf69e70
MD5 fa84c7af08acb1176c0e09b771179170
BLAKE2b-256 a5055ac17452f431536ca7810745e6368232744ea24f7b255e13846e085d69a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_docsearch-0.3.0.tar.gz:

Publisher: ci.yml on algolia/sphinx-docsearch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_docsearch-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_docsearch-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa7abbdfcf5f65c529bb49be0e663fb4687982fa0f32d614e2ad1687f6a65d23
MD5 afb2b2dc3ee29cd3c9e302b24ed37534
BLAKE2b-256 a2c55914fb7e854180bde310117c227e986b1491933c3061bd063594c51d5d17

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_docsearch-0.3.0-py3-none-any.whl:

Publisher: ci.yml on algolia/sphinx-docsearch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page