From 30cb1a2715fc1f920fd225ce5f7452e77fc819f8 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 9 Apr 2018 23:53:45 +0300 Subject: [PATCH] Pass docs version to search form and switch to the new index. Also, move the search code to a separate file. --- README.md | 2 +- _includes/docs-sidebar.html | 2 +- _includes/scripts.html | 1 + assets/js/src/application.js | 28 -------------------------- assets/js/src/search.js | 38 ++++++++++++++++++++++++++++++++++++ 5 files changed, 41 insertions(+), 30 deletions(-) create mode 100644 assets/js/src/search.js diff --git a/README.md b/README.md index c7f6024cf6..2bd9336899 100644 --- a/README.md +++ b/README.md @@ -105,7 +105,7 @@ Have a bug or a feature request? Please first read the [issue guidelines](https: Bootstrap's documentation, included in this repo in the root directory, is built with [Jekyll](https://jekyllrb.com/) and publicly hosted on GitHub Pages at . The docs may also be run locally. -Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `assets/js/application.js` file. +Documentation search is powered by [Algolia's DocSearch](https://community.algolia.com/docsearch/). Working on our search? Be sure to set `debug: true` in `assets/js/src/search.js` file. ### Running documentation locally diff --git a/_includes/docs-sidebar.html b/_includes/docs-sidebar.html index c0a0982bcc..61edd8ec11 100644 --- a/_includes/docs-sidebar.html +++ b/_includes/docs-sidebar.html @@ -1,5 +1,5 @@