forked from miragejs/ember-cli-mirage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request miragejs#2407 from miragejs/extract-docs-app
Extract docs into separate app
- Loading branch information
Showing
53 changed files
with
13 additions
and
5,077 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,9 @@ | ||
import AddonDocsRouter, { docsRoute } from 'ember-cli-addon-docs/router'; | ||
import EmberRouter from '@ember/routing/router'; | ||
import config from 'dummy/config/environment'; | ||
|
||
export default class Router extends AddonDocsRouter { | ||
export default class Router extends EmberRouter { | ||
location = config.locationType; | ||
rootURL = config.rootURL; | ||
} | ||
|
||
Router.map(function () { | ||
docsRoute(this, function () { | ||
this.route('getting-started', function () { | ||
this.route('what-is-mirage'); | ||
this.route('installation'); | ||
this.route('upgrade-guide'); | ||
this.route('overview'); | ||
}); | ||
|
||
this.route('route-handlers', function () { | ||
this.route('functions'); | ||
this.route('shorthands'); | ||
}); | ||
|
||
this.route('data-layer', function () { | ||
this.route('database'); | ||
this.route('orm'); | ||
this.route('models'); | ||
this.route('relationships'); | ||
this.route('factories'); | ||
this.route('fixtures'); | ||
this.route('serializers', function () { | ||
this.route('ember-data-serializer'); | ||
}); | ||
}); | ||
|
||
this.route('testing', function () { | ||
this.route('setup-mirage'); | ||
this.route('acceptance-tests'); | ||
this.route('integration-and-unit-tests'); | ||
this.route('assertions'); | ||
}); | ||
|
||
this.route('advanced', function () { | ||
this.route('environment-options'); | ||
this.route('server-configuration'); | ||
this.route('simulating-cookie-responses'); | ||
this.route('mocking-guids'); | ||
this.route('customizing-the-inflector'); | ||
this.route('switching-between-scenarios'); | ||
}); | ||
|
||
this.route('api', function () { | ||
this.route('class', { path: '/:class_id' }); | ||
}); | ||
}); | ||
|
||
this.route('blog', function () { | ||
this.route('detail', { path: '/:post_slug_and_id' }); | ||
}); | ||
|
||
this.route('not-found', { path: '/*path' }); | ||
}); | ||
Router.map(function () {}); |
File renamed without changes.
23 changes: 0 additions & 23 deletions
23
packages/ember-cli-mirage/tests/dummy/app/routes/application.js
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
packages/ember-cli-mirage/tests/dummy/app/routes/blog/detail.js
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
packages/ember-cli-mirage/tests/dummy/app/routes/blog/index.js
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
packages/ember-cli-mirage/tests/dummy/app/routes/docs/index.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.