forked from emberjs/guides
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issues emberjs#1183, emberjs#1184: Replaced Swiftype with Algolia Doc…
…Search Removed Swiftype gem, scripts and styles. Added DocSearch scripts and styles. Changed default DocSearch colours to Ember colours.
- Loading branch information
Showing
16 changed files
with
247 additions
and
781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
engine_key: 'UdruvUp_iEcu2wdYqw9D' | ||
api_key: '70c6f2593b56f14e561a361d1b787a1e' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(function() { | ||
var script = document.createElement('script'); | ||
script.type = 'text/javascript'; | ||
script.async = true; | ||
script.src = '//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js'; | ||
var entry = document.getElementsByTagName('script')[0]; | ||
entry.parentNode.insertBefore(script, entry); | ||
}()); | ||
|
||
window.GUIDE_VERSIONS.onReady(function (versions) { | ||
var currentRevision = versions.current; | ||
var apiKey = '<%= data.search.api_key %>'; | ||
var inputSelector = '#search-input'; | ||
var indexName = 'emberjs'; | ||
var hitsPerPage = 10; | ||
var facetFilters = '(tags:api,tags:' + currentRevision + ')'; | ||
|
||
$(window).load(function() { | ||
docsearch({ | ||
apiKey: apiKey, | ||
indexName: indexName, | ||
inputSelector: inputSelector, | ||
algoliaOptions: { | ||
hitsPerPage: hitsPerPage, | ||
facetFilters: facetFilters | ||
} | ||
}); | ||
}); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
//= require underscore | ||
//= require vendor/getDevicePixelRatio-min | ||
//= require vendor/select2 | ||
//= require vendor/jquery.swiftype.autocomplete | ||
//= require_tree ./app |
Oops, something went wrong.