Skip to content

Commit

Permalink
Add README content
Browse files Browse the repository at this point in the history
  • Loading branch information
TimKam authored Jul 30, 2016
1 parent 8af5a47 commit 6a981d0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Sphinx: pretty search results
=============================
*Sphinx: pretty search results* is an extension for the `Sphinx documentation tool <http://www.sphinx-doc.org/en/stable/>`__.

To display search results, Sphinx is fetching the source files of search hits and rendering excerpts in raw markup
(`Example <http://www.sphinx-doc.org/en/stable/search.html?q=quickstart&check_keywords=yes&area=default>`__).

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.

0 comments on commit 6a981d0

Please sign in to comment.