diff --git a/doc/faq.rst b/doc/faq.rst index 4b608b780..4446463b8 100644 --- a/doc/faq.rst +++ b/doc/faq.rst @@ -119,6 +119,36 @@ Google Analytics {% endblock %} +Google Search + To replace Sphinx's built-in search function with Google Search, proceed as + follows: + + 1. Go to https://cse.google.com/cse/all to create the Google Search code + snippet. + + 2. Copy the code snippet and paste it into ``_templates/searchbox`` in your + Sphinx project: + + .. code-block:: html+django + +
+

{{ _('Quick search') }}

+ + +
+ + 3. Add ``searchbox.html`` to the :confval:`html_sidebars` configuration value. + .. _api role: https://git.savannah.gnu.org/cgit/kenozooid.git/tree/doc/extapi.py .. _xhtml to reST: http://docutils.sourceforge.net/sandbox/xhtml2rest/xhtml2rest.py