File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -40,3 +40,5 @@ local.log
40
40
/.node_modules.ember-try /
41
41
/bower.json.ember-try
42
42
/package.json.ember-try
43
+
44
+ /ember-api-docs-data /
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { pluralize } from 'ember-inflector';
6
6
import { isBlank } from '@ember/utils' ;
7
7
8
8
export default class Application extends JSONAPIAdapter {
9
- host = ENV . API_HOST ;
9
+ // host = ENV.API_HOST;
10
10
currentProject = '' ;
11
11
currentProjectVersion = '' ;
12
12
@@ -47,7 +47,7 @@ export default class Application extends JSONAPIAdapter {
47
47
48
48
async findRecord ( store , { modelName } , id ) {
49
49
let url ;
50
- let host = this . host ;
50
+ // let host = this.host;
51
51
let projectName = this . currentProject ;
52
52
53
53
if ( [ 'namespace' , 'class' , 'module' ] . indexOf ( modelName ) > - 1 ) {
@@ -85,7 +85,7 @@ export default class Application extends JSONAPIAdapter {
85
85
throw new Error ( 'Unexpected model lookup' ) ;
86
86
}
87
87
88
- url = `${ host } /${ url } .json` ;
88
+ url = `/${ url } .json` ;
89
89
90
90
let response = await fetch ( url ) ;
91
91
let json = await response . json ( ) ;
Original file line number Diff line number Diff line change @@ -66,5 +66,10 @@ module.exports = function (defaults) {
66
66
include : [ 'mappings.json' ] ,
67
67
destDir : '/assets/' ,
68
68
} ) ;
69
- return mergeTrees ( [ app . toTree ( ) , mappingsTree ] ) ;
69
+
70
+ let docsJsonTree = new Funnel ( 'ember-api-docs-data' , {
71
+ include : [ '**/json-docs/**' , '**/rev-index/**' ] ,
72
+ } ) ;
73
+
74
+ return mergeTrees ( [ app . toTree ( ) , mappingsTree , docsJsonTree ] ) ;
70
75
} ;
Original file line number Diff line number Diff line change 13
13
"test" : " tests"
14
14
},
15
15
"scripts" : {
16
+ "clone" : " rm -rf ember-api-docs-data && git clone https://github.com/ember-learn/ember-api-docs-data.git" ,
16
17
"build" : " ember build --environment=production" ,
17
18
"lint" : " npm-run-all --aggregate-output --continue-on-error --parallel 'lint:!(fix)'" ,
18
19
"lint:fix" : " npm-run-all --aggregate-output --continue-on-error --parallel lint:*:fix" ,
You can’t perform that action at this time.
0 commit comments