summaryrefslogtreecommitdiff
path: root/docs/_templates/sidebarintro.html
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.org>2019-04-22 22:21:34 -0400
committerGitHub <noreply@github.com>2019-04-22 22:21:34 -0400
commit2b9ce02e3c2b46dcd323db37d2e8e0c65cdd7a5d (patch)
tree8892bca7b83c8b94c3afe7e767a281b4591fe47c /docs/_templates/sidebarintro.html
parent0937c9f9ecb9014a600556009516e48dd36ff00b (diff)
parentf9f28d3d8684c8b17943107b40ba7eb35b9a53f4 (diff)
downloadtablib-2b9ce02e3c2b46dcd323db37d2e8e0c65cdd7a5d.tar.gz
Merge pull request #364 from s-pace/doc/update
[doc website] Add a nice search experience
Diffstat (limited to 'docs/_templates/sidebarintro.html')
-rw-r--r--docs/_templates/sidebarintro.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/_templates/sidebarintro.html b/docs/_templates/sidebarintro.html
index a87a69a..81f1166 100644
--- a/docs/_templates/sidebarintro.html
+++ b/docs/_templates/sidebarintro.html
@@ -2,6 +2,28 @@
<p>
Tablib is an MIT Licensed format-agnostic tabular dataset library, written in Python. It allows you to import, export, and manipulate tabular data sets. Advanced features include, segregation, dynamic columns, tags & filtering, and seamless format import & export.
</p>
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
+<style>
+.algolia-autocomplete{
+ width: 100%;
+ height: 1.5em;
+ margin: 1em auto;
+}
+.algolia-autocomplete a{
+ border-bottom: none !important;
+}
+#doc_search{
+ width: 100%;
+ height: 100%;
+}
+</style>
+<input id="doc_search" placeholder="Search the doc" autofocus/>
+<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js" onload="docsearch({
+ apiKey: 'fdf64af44731dc9838761b703228e4fd',
+ indexName: 'python-tablib',
+ inputSelector: '#doc_search',
+ debug: false // Set debug to true if you want to inspect the dropdown
+})" async></script>
<h3>Feedback</h3>
<p>