Skip to main content

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

  1. Add sphinx-docsearch to your Sphinx configuration file conf.py:

    extensions += ["sphinx_docsearch]
    
  2. 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>"
    
  3. Optional: change configuration settings

Customize

  • Customize crawling (link to DocSearch or Crawler doc)
  • Add custom templates
  • Add custom CSS

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.0.1.tar.gz (39.0 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.0.1-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

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

Hashes for sphinx_docsearch-0.0.1.tar.gz
Algorithm Hash digest
SHA256 394d6349c323c647e0097a8231362d18bf7cca4814d754911f0f70b670b63990
MD5 7d24280087598e4883fab876da195d23
BLAKE2b-256 4a028ce9c2e6b8120257366dda35d6eba14f2814ae7b1a12a36ce56e63ab60f3

See more details on using hashes here.

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

Hashes for sphinx_docsearch-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8eddc8be356eb750207d817f8f0e7da8ed81e0f9dfe7903d04a1bd63e8b98a34
MD5 a6757513fdce32d8f1155d2979d50ea6
BLAKE2b-256 f2b63a44d225f86dc6ec8f1aefb340c47045f8b5a00ac96893f63b01fbc0cda9

See more details on using hashes here.

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