
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
sphinx-docsearch
Advanced tools
This extension for the Sphinx documentation generator replaces Sphinx's built-in search with Algolia DocSearch.
Apply for DocSearch. You'll get an email with your Algolia credentials.
This extension supports Python versions 3.8 and later and Sphinx versions 5 and later.
For a list of supported themes, see HTML theme support
Install the sphinx-docsearch package:
pip install sphinx-docsearch
Add sphinx-docsearch to 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:
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.
FAQs
A Sphinx extension for replacing the built-in search with Algolia DocSearch
We found that sphinx-docsearch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.