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.
Restructure docs from pods to classic structure
pods support is removed from ember-cli-addon-docs in latest versions.
- Loading branch information
1 parent
83cf540
commit 7741e8c
Showing
44 changed files
with
77 additions
and
59 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 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
File renamed without changes.
6 changes: 5 additions & 1 deletion
6
tests/dummy/app/pods/blog/detail/route.js → tests/dummy/app/routes/blog/detail.js
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Route from '@ember/routing/route'; | ||
import { inject as service } from '@ember/service'; | ||
|
||
export default class extends Route { | ||
@service router; | ||
|
||
beforeModel() { | ||
this.router.transitionTo('docs.getting-started.what-is-mirage'); | ||
} | ||
} |
8 changes: 7 additions & 1 deletion
8
tests/dummy/app/pods/not-found/route.js → tests/dummy/app/routes/not-found.js
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
Empty file.
4 changes: 2 additions & 2 deletions
4
...s/dummy/app/pods/application/template.hbs → tests/dummy/app/templates/application.hbs
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<DocsViewer as |viewer|> | ||
|
||
<viewer.nav as |nav|> | ||
<nav.section @label="Getting started" /> | ||
<nav.item @label="What is Mirage?" @route="docs.getting-started.what-is-mirage" /> | ||
<nav.item @label="Installation" @route="docs.getting-started.installation" /> | ||
<nav.item @label="Upgrade guide" @route="docs.getting-started.upgrade-guide" /> | ||
<nav.item @label="Overview" @route="docs.getting-started.overview" /> | ||
|
||
<nav.section @label="Route handlers" /> | ||
<nav.item @label="Functions" @route="docs.route-handlers.functions" /> | ||
<nav.item @label="Shorthands" @route="docs.route-handlers.shorthands" /> | ||
|
||
<nav.section @label="Data layer" /> | ||
<nav.item @label="The Database" @route="docs.data-layer.database" /> | ||
<nav.item @label="Why an ORM?" @route="docs.data-layer.orm" /> | ||
<nav.item @label="Models" @route="docs.data-layer.models" /> | ||
<nav.item @label="Relationships" @route="docs.data-layer.relationships" /> | ||
<nav.item @label="Factories" @route="docs.data-layer.factories" /> | ||
<nav.item @label="Fixtures" @route="docs.data-layer.fixtures" /> | ||
<nav.item @label="Serializers" @route="docs.data-layer.serializers" /> | ||
<nav.subnav as |nav|> | ||
<nav.item @label="Ember Data Serializer" @route="docs.data-layer.serializers.ember-data-serializer" /> | ||
</nav.subnav> | ||
|
||
<nav.section @label="Testing" /> | ||
<nav.item @label="setupMirage test helper" @route="docs.testing.setup-mirage" /> | ||
<nav.item @label="Acceptance tests" @route="docs.testing.acceptance-tests" /> | ||
<nav.item @label="Integration and unit tests" @route="docs.testing.integration-and-unit-tests" /> | ||
<nav.item @label="Assertions" @route="docs.testing.assertions" /> | ||
|
||
<nav.section @label="Advanced" /> | ||
<nav.item @label="Environment options" @route="docs.advanced.environment-options" /> | ||
<nav.item @label="Server Configuration" @route="docs.advanced.server-configuration" /> | ||
<nav.item @label="Simulating cookie responses" @route="docs.advanced.simulating-cookie-responses" /> | ||
<nav.item @label="Mocking GUIDs" @route="docs.advanced.mocking-guids" /> | ||
<nav.item @label="Customizing the inflector" @route="docs.advanced.customizing-the-inflector" /> | ||
<nav.item @label="Switching between scenarios" @route="docs.advanced.switching-between-scenarios" /> | ||
|
||
</viewer.nav> | ||
|
||
<viewer.main> | ||
{{outlet}} | ||
</viewer.main> | ||
|
||
</DocsViewer> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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