Skip to main content

Decently styled search results for sphinx-doc projects

Project description

Sphinx: pretty search results is an extension for the Sphinx documentation tool.

To display search results, Sphinx is fetching the source files of search hits and rendering excerpts in raw markup (Example).

This extension removes the markup from these source files (during build time), so the search results look decent.

Installation

Run pip install sphinxprettysearchresults.

Configuration

There are no custom configuration variables for the Sphinx: pretty search results extension.

After installing the extension, all you need to do is to register it.

Add sphinxprettysearchresults to the extensions array in your conf.py file, for example:

extensions = [
   'sphinxprettysearchresults'
]

After your next build, your project will no longer display raw markup in the search result excerpts.

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

sphinxprettysearchresults-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file sphinxprettysearchresults-0.1.1.tar.gz.

File metadata

File hashes

Hashes for sphinxprettysearchresults-0.1.1.tar.gz
Algorithm Hash digest
SHA256 58b449c447b976b733aa7ad382c48da0176f885adb555910e9007390fb2879e6
MD5 50bbb715b4981a80a96ceebafe502b2d
BLAKE2b-256 d6d899f540552076882a67272c7e24f725e282436104b1a76c474a0e5f89db13

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