@@ -116,7 +116,7 @@ Here is what this site does
116
116
``` ts
117
117
// app/routes/application.ts
118
118
import Route from " @ember/routing/route" ;
119
- import { service } from " @ember/service " ;
119
+ import { setupKolay } from " kolay/setup " ;
120
120
121
121
import rehypeShikiFromHighlighter from " @shikijs/rehype/core" ;
122
122
import { colorScheme , sync } from " ember-primitives/color-scheme" ;
@@ -125,11 +125,9 @@ import getWasm from "shiki/wasm";
125
125
126
126
sync ();
127
127
128
- import type { DocsService , Manifest } from " kolay" ;
128
+ import type { Manifest } from " kolay" ;
129
129
130
130
export default class ApplicationRoute extends Route {
131
- @service (" kolay/docs" ) declare docs: DocsService ;
132
-
133
131
async model(): Promise <{ manifest: Manifest }> {
134
132
const highlighter = await getHighlighterCore ({
135
133
themes: [import (" shiki/themes/github-dark.mjs" ), import (" shiki/themes/github-light.mjs" )],
@@ -147,9 +145,7 @@ export default class ApplicationRoute extends Route {
147
145
loadWasm: getWasm ,
148
146
});
149
147
150
- await this .docs .setup ({
151
- apiDocs: import (" kolay/api-docs:virtual" ),
152
- manifest: import (" kolay/manifest:virtual" ),
148
+ const manifest = await setupKolay ({
153
149
resolve: {
154
150
" ember-primitives" : import (" ember-primitives" ),
155
151
kolay: import (" kolay" ),
@@ -169,7 +165,7 @@ export default class ApplicationRoute extends Route {
169
165
],
170
166
});
171
167
172
- return { manifest: this . docs . manifest };
168
+ return { manifest };
173
169
}
174
170
}
175
171
```
0 commit comments