Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3649 from emberjs/disable-search
Browse files Browse the repository at this point in the history
Disable search temporarily
  • Loading branch information
sivakumar-kailasam authored Oct 20, 2018
2 parents 50ab830 + f3f610f commit 0ef5280
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions source/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</ul>
</li>
</ul>
<form class="navbar-form navbar-right searchbox">
<!-- <form class="navbar-form navbar-right searchbox">
<div class="input-group">
<label for="search-input" class="control-label sr-only">Search</label>
<input type="text"
Expand All @@ -82,7 +82,7 @@
/>
<span></span>
</div>
</form>
</form> -->
</div>
<!-- /.navbar-collapse -->
</div>
Expand Down
9 changes: 6 additions & 3 deletions source/javascripts/app/docsearch.js.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/**
(function() {
var script = document.createElement('script');
script.type = 'text/javascript';
Expand All @@ -10,9 +11,9 @@
var currentRevision = '<%= current_version %>';
var apiKey = '<%= data.search.api_key %>';
var inputSelector = '#search-input';
var indexName = 'emberjs_versions';
var indexName = 'ember-guides';
var hitsPerPage = 10;
var facetFilters = '[["version:' + currentRevision + '"]]';
# var facetFilters = '[["version:' + currentRevision + '"]]';
$(window).load(function () {
docsearch({
Expand All @@ -21,7 +22,9 @@ $(window).load(function () {
inputSelector: inputSelector,
algoliaOptions: {
hitsPerPage: hitsPerPage,
facetFilters: facetFilters
# facetFilters: facetFilters
}
});
});
**/

0 comments on commit 0ef5280

Please sign in to comment.