Skip to content

Commit 6029d11

Browse files
committed
adding search
1 parent 26fcc77 commit 6029d11

File tree

5 files changed

+488
-4
lines changed

5 files changed

+488
-4
lines changed

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
/.node_modules.ember-try/
2222
/bower.json.ember-try
2323
/package.json.ember-try
24+
25+
config/credentials.json

Diff for: config/deploy.js

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/* eslint-env node */
2+
'use strict';
3+
4+
let credentials;
5+
6+
try {
7+
credentials = require('./credentials.json');
8+
} catch (e) {
9+
credentials = {};
10+
}
11+
12+
module.exports = function(deployTarget) {
13+
let ENV = {
14+
build: {},
15+
'prember-algolia': {
16+
indexName: credentials.algoliaIndex || process.env.ALGOLIA_INDEX,
17+
applicationId: credentials.algoliaApplication || process.env.ALGOLIA_APPLICATION,
18+
apiKey: credentials.algoliaKey || process.env.ALGOLIA_KEY,
19+
tagsToExclude: '.old-version-warning,.edit-page,code,pre',
20+
cssSelector: 'section',
21+
pathPattern: /^release\/(.*)\/index.html$/,
22+
}
23+
};
24+
25+
if (deployTarget === 'development') {
26+
ENV.build.environment = 'development';
27+
// configure other plugins for development deploy target here
28+
}
29+
30+
if (deployTarget === 'staging') {
31+
ENV.build.environment = 'production';
32+
// configure other plugins for staging deploy target here
33+
}
34+
35+
if (deployTarget === 'production') {
36+
ENV.build.environment = 'production';
37+
// configure other plugins for production deploy target here
38+
}
39+
40+
// Note: if you need to build some configuration asynchronously, you can return
41+
// a promise that resolves with the ENV object instead of returning the
42+
// ENV object synchronously.
43+
return ENV;
44+
};

Diff for: config/environment.js

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ module.exports = function(environment) {
3838
},
3939
sourceRepo: 'https://github.com/authmaker/documentation',
4040
},
41+
42+
algolia: {
43+
algoliaId: 'EUXSOLYEM4',
44+
algoliaKey: '17fae2d7d0064205f77c9f69e6efe151',
45+
indexName: 'beginner-guides'
46+
},
4147
};
4248

4349
if (environment === 'development') {

0 commit comments

Comments
 (0)