-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |