File tree Expand file tree Collapse file tree 5 files changed +14073
-13122
lines changed Expand file tree Collapse file tree 5 files changed +14073
-13122
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,5 @@ local.log
43
43
/.node_modules.ember-try /
44
44
/bower.json.ember-try
45
45
/package.json.ember-try
46
+
47
+ /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" ,
112
113
"qunit" : " ^2.16.0" ,
113
114
"qunit-dom" : " ^1.6.0" ,
114
115
"sanitize-html" : " ^2.3.2" ,
115
- "sass" : " ^1.25.0 " ,
116
+ "sass" : " ^1.54.4 " ,
116
117
"semver-compare" : " ^1.0.0" ,
117
118
"spawndamnit" : " 2.0.0" ,
118
119
"testem" : " ^2.14.0"
119
120
},
120
121
"engines" : {
121
- "node" : " 10 .* || 12 .* || 14 .*" ,
122
+ "node" : " 14 .* || 16 .* || 18 .*" ,
122
123
"npm" : " 7" ,
123
124
"yarn" : " 1.22.*"
124
125
},
You can’t perform that action at this time.
0 commit comments