summaryrefslogtreecommitdiff
path: root/docs/_templates
diff options
context:
space:
mode:
authors-pace <sylvain.pace@algolia.com>2019-04-22 22:29:47 +0200
committers-pace <sylvain.pace@algolia.com>2019-04-22 22:40:35 +0200
commit0cb50bb00839a339cb0b8d8d16218660ad4c0796 (patch)
treef074afef3e1cb957d7d536ab0e9c6a3f5879c077 /docs/_templates
parent0937c9f9ecb9014a600556009516e48dd36ff00b (diff)
downloadtablib-0cb50bb00839a339cb0b8d8d16218660ad4c0796.tar.gz
feat: add search to every documentation pages
Diffstat (limited to 'docs/_templates')
-rw-r--r--docs/_templates/sidebarlogo.html24
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/_templates/sidebarlogo.html b/docs/_templates/sidebarlogo.html
index a7bfa65..1734310 100644
--- a/docs/_templates/sidebarlogo.html
+++ b/docs/_templates/sidebarlogo.html
@@ -1,4 +1,26 @@
<h3><a href="http://docs.python-tablib.org/">About Tablib</a></h3>
<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> \ No newline at end of file
+</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> \ No newline at end of file