Skip to content

Commit

Permalink
replaced default search with Google
Browse files Browse the repository at this point in the history
  • Loading branch information
sadiqkhoja committed Sep 29, 2023
1 parent fbb189f commit 568a908
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/_templates/sidebar/search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<form class="sidebar-search-container" method="get" action="../google-search/" role="search">
<input class="sidebar-search" placeholder="Search" name="q" aria-label="Search" autocomplete="off">
</form>
<div>
9 changes: 9 additions & 0 deletions docs/google-search.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Search Results
================

.. raw:: html

<script async src="https://cse.google.com/cse.js?cx=3762c7974c3874eb3">
</script>
<div class="gcse-searchresults-only" data-darkmode="true"></div>

0 comments on commit 568a908

Please sign in to comment.