diff options
author | s-pace <sylvain.pace@algolia.com> | 2019-04-22 22:30:14 +0200 |
---|---|---|
committer | s-pace <sylvain.pace@algolia.com> | 2019-04-22 22:40:48 +0200 |
commit | f9f28d3d8684c8b17943107b40ba7eb35b9a53f4 (patch) | |
tree | 8892bca7b83c8b94c3afe7e767a281b4591fe47c | |
parent | 0cb50bb00839a339cb0b8d8d16218660ad4c0796 (diff) | |
download | tablib-f9f28d3d8684c8b17943107b40ba7eb35b9a53f4.tar.gz |
feat: add search to the main introduction page
-rw-r--r-- | docs/_templates/sidebarintro.html | 22 |
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> |