This is a small plugin that generates a data.json which contains the content and title of each page and puts it in each distro. This file is indexed and searched with search template client side. This plugin provides a default search template that is ready to use, but if you want you can use your own search template. See the instructions below.
-
Make sure you have a working installation of python3
-
Create a virtualenv
python3 -m venv <name of virtualenv>
-
Activate the virtualenv
source <name of virtualenv>/bin/activate
-
Install
pip install git+https://github.com/smitthakkar96/ascii_binder_search_plugin
-
After your build your site, generate the data.json
ascii_binder_search
-
Download, and optionally customize search.html or other assets present in static directory
-
Add the search to the documentation site
ascii_binder_search -s <path_to_static_directory>
Everything that would be present in static folder will be copied to thier respective paths
Please consider using _javascripts/<js_file>
for javascripts and _stylesheets/<js_file>
for stylesheets in your search.html