File tree Expand file tree Collapse file tree 3 files changed +60
-13
lines changed Expand file tree Collapse file tree 3 files changed +60
-13
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,11 @@ export default Route.extend({
50
50
// if there is no class, module, or namespace specified...
51
51
let latestVersion = getLastVersion ( model . get ( 'project.content' ) . hasMany ( 'projectVersions' ) . ids ( ) ) ;
52
52
let isLatestVersion = transitionVersion === latestVersion || transitionVersion === 'release' ;
53
+ let isEmberProject = model . get ( 'project.id' ) === 'ember' ;
53
54
let shouldConvertPackages = semverCompare ( model . get ( 'version' ) , '2.16' ) < 0 ;
54
- if ( ! shouldConvertPackages || isLatestVersion ) {
55
- // ... and the transition version is the latest release,
56
- // display the landing page at
55
+ if ( ( ! shouldConvertPackages || isLatestVersion ) && isEmberProject ) {
56
+ // ... and the transition version is the latest release, and the selected docs are
57
+ // ember (not Ember Data), then display the landing page at
57
58
return this . transitionTo ( 'project-version.index' ) ;
58
59
} else {
59
60
// else go to the version specified
Original file line number Diff line number Diff line change
1
+ <article class =" chapter" >
2
+ <h1 >
3
+ Ember Data API Documentation
4
+ </h1 >
5
+ <p >
6
+ Ember Data is a library for robustly managing data in applications built with Ember.js.
7
+ </p >
8
+ <h2 >
9
+ Commonly searched-for documentation
10
+ </h2 >
11
+ <ul class =" spec-method-list" >
12
+ <li >
13
+ {{ #link-to " project-version.classes.class" " Model" }}
14
+ Model
15
+ {{ /link-to }}
16
+ - an object that represents the underlying data that your application presents to the user.
17
+ </li >
18
+ <li >
19
+ {{ #link-to " project-version.classes.class" " Store" }}
20
+ Store
21
+ {{ /link-to }}
22
+ - a service that contains all of the data for records loaded from the server.
23
+ </li >
24
+ <li >
25
+ {{ #link-to " project-version.classes.class" " Adapter" }}
26
+ Adapter
27
+ {{ /link-to }}
28
+ - determines how data is persisted to a backend data store.
29
+ </li >
30
+ <li >
31
+ {{ #link-to " project-version.classes.class" " Serializer" }}
32
+ Serializer
33
+ {{ /link-to }}
34
+ - format the data sent to and received from the backend store.
35
+ </li >
36
+ </ul >
37
+ <h2 >
38
+ Useful links
39
+ </h2 >
40
+ <ul >
41
+ <li >
42
+ <h5 >
43
+ <a href =" https://github.com/ember-learn/ember-api-docs" >
44
+ API Documentation Github Repository
45
+ </a >
46
+ </h5 >
47
+ </li >
48
+ <li >
49
+ <h5 >
50
+ <a href =" https://guides.emberjs.com/release/models/" >
51
+ Introduction to Ember Data
52
+ </a >
53
+ </h5 >
54
+ </li >
55
+ </ul >
56
+ </article >
Original file line number Diff line number Diff line change @@ -15,16 +15,6 @@ module('Acceptance | redirects', function(hooks) {
15
15
assert . dom ( 'h1' ) . hasText ( 'Ember API Documentation' ) ;
16
16
} ) ;
17
17
18
- test ( 'visiting /ember-data' , async function ( assert ) {
19
- await visit ( '/ember-data' ) ;
20
- assert . equal (
21
- currentURL ( ) ,
22
- `/ember-data/release` ,
23
- 'routes to the landing page'
24
- ) ;
25
- assert . dom ( 'h1' ) . hasText ( 'Ember API Documentation' ) ;
26
- } ) ;
27
-
28
18
test ( 'visiting pre-2.16 version' , async function ( assert ) {
29
19
await visit ( '/ember/1.0' ) ;
30
20
You can’t perform that action at this time.
0 commit comments