|
1 | | -import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router'; |
| 1 | +import EmberRouter from '@ember/routing/router'; |
2 | 2 | import config from './config/environment'; |
3 | 3 |
|
4 | | -const Router = AddonDocsRouter.extend({ |
| 4 | +const Router = EmberRouter.extend({ |
5 | 5 | location: config.locationType, |
6 | 6 | rootURL: config.rootURL, |
7 | 7 | }); |
8 | 8 |
|
9 | | -Router.map(function() { |
10 | | - docsRoute(this, function() { |
11 | | - this.route('getting-started', function() { |
12 | | - this.route('installation'); |
13 | | - this.route('configuration'); |
14 | | - }); |
15 | | - |
16 | | - this.route('ts', function() { |
17 | | - this.route('overview'); |
18 | | - this.route('decorators'); |
19 | | - this.route('with-addons'); |
20 | | - this.route('using-ts-effectively'); |
21 | | - this.route('current-limitations'); |
22 | | - }); |
23 | | - |
24 | | - this.route('ember', function() { |
25 | | - this.route('overview'); |
26 | | - this.route('components'); |
27 | | - this.route('services'); |
28 | | - this.route('testing'); |
29 | | - this.route('routes'); |
30 | | - this.route('controllers'); |
31 | | - this.route('helpers'); |
32 | | - this.route('apps-and-addons'); |
33 | | - }); |
34 | | - |
35 | | - this.route('ember-data', function() { |
36 | | - this.route('overview'); |
37 | | - this.route('models'); |
38 | | - // this.route('adapters'); |
39 | | - // this.route('serializers'); |
40 | | - // this.route('transforms'); |
41 | | - }); |
42 | | - |
43 | | - this.route('legacy', function() { |
44 | | - this.route('overview'); |
45 | | - this.route('ember-object'); |
46 | | - this.route('computed-properties'); |
47 | | - this.route('mixins'); |
48 | | - // this.route('ember-component'); |
49 | | - }); |
50 | | - |
51 | | - this.route('cookbook', function() { |
52 | | - this.route('overview'); |
53 | | - this.route('working-with-route-models'); |
54 | | - }); |
55 | | - |
56 | | - this.route('upgrade-notes'); |
57 | | - |
58 | | - this.route('troubleshooting', function() { |
59 | | - this.route('conflicting-types'); |
60 | | - }); |
61 | | - this.route('type-defs', function () { |
62 | | - this.route('package-names'); |
63 | | - }); |
64 | | - }); |
65 | | -}); |
| 9 | +Router.map(function() {}); |
66 | 10 |
|
67 | 11 | export default Router; |
0 commit comments