diff options
author | Derek Jones <derek.jones@ellislab.com> | 2012-08-21 03:10:39 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2012-08-21 03:10:39 +0200 |
commit | 329834e354d75ed239c83f410adacdd294ae2f64 (patch) | |
tree | d95e3c652d16c91861744eee85498352246cfed9 /user_guide_src/source/_themes/eldocs/searchbox.html | |
parent | 87687e10c582b085afdc649ec810a2d2cf34e98b (diff) |
Switching to Sphinx's built in JavaScript search
- disabled rST source copying, the contextual results for the search don't render, so they look goofy
- added .highlighted class to CSS for highlighting search terms
- replaced Google search form with native search form (and separated into its own theme file)
- added body class to #content div for JS highlighter to hook onto
Diffstat (limited to 'user_guide_src/source/_themes/eldocs/searchbox.html')
-rw-r--r-- | user_guide_src/source/_themes/eldocs/searchbox.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/user_guide_src/source/_themes/eldocs/searchbox.html b/user_guide_src/source/_themes/eldocs/searchbox.html new file mode 100644 index 000000000..039590bd9 --- /dev/null +++ b/user_guide_src/source/_themes/eldocs/searchbox.html @@ -0,0 +1,21 @@ +<!-- + -------------------------------- + Original Google search box block + -------------------------------- + +<form method="get" action="http://www.google.com/search"> + <fieldset> + <input type="text" name="q" id="q" value=""> + <input type="hidden" name="as_sitesearch" id="as_sitesearch" value="{{ project_domain }}/user_guide/" /> + <input class="grades" type="submit" value="search"> + </fieldset> +</form> +--> + + +<form class="search" action="{{ pathto('search') }}" method="get"> + <input type="text" name="q" id="q" value="" /> + <input type="submit" value="search" /> + <input type="hidden" name="check_keywords" value="yes" /> + <input type="hidden" name="area" value="default" /> +</form> |