Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Add Algolia search experience
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Bannykh committed Sep 8, 2017
1 parent 7022960 commit 23ad665
Show file tree
Hide file tree
Showing 12 changed files with 11,455 additions and 47 deletions.
11 changes: 10 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,18 @@ incremental: false
gems:
- jekyll-redirect-from


algolia:
application_id: '0TXGQJVHZF'
application_id: 'E642SEDTHL'
index_name: 'devdocs'
api_key: 'd2d0f33ab73e291ef8d88d8b565e754c'
lazy_update: true
excluded_files:
- german/SFS.de.md
- german/ReturnsProcess.de.md
- german/index.md
- german/CustomerServiceUserGuidel.de.md
- german/AdminUserGuide.de.md


exclude: ['scss', 'bin', 'node_modules', 'vendor', '.git', '.idea', 'guides/v2.2']
6 changes: 3 additions & 3 deletions _layouts/search.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<script>

app({
appId: '0TXGQJVHZF',
apiKey: '60a4902ca2720b6ba576d1c4a1ba97fe',
indexName: 'mcom',
appId: "{{ site.algolia.application_id }}",
apiKey: "{{ site.algolia.api_key }}",
indexName: "{{ site.algolia.index_name }}",
urlSync: true
});

Expand Down
3 changes: 1 addition & 2 deletions common/js/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/app.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/print.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/_includes/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $(function() {


// Algola autocomplete:
var client = algoliasearch("0TXGQJVHZF", "60a4902ca2720b6ba576d1c4a1ba97fe");
var client = algoliasearch("E642SEDTHL", "d2d0f33ab73e291ef8d88d8b565e754c");
var index = client.initIndex('devdocs');
//initialize autocomplete on search input (ID selector must match)

Expand Down
Loading

0 comments on commit 23ad665

Please sign in to comment.