Skip to content

Commit 4ca5341

Browse files
committed
No thanks, Prettier
1 parent 3efae81 commit 4ca5341

File tree

5 files changed

+55
-57
lines changed

5 files changed

+55
-57
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import Controller from "@ember/controller";
1+
import Controller from '@ember/controller';
22

33
export default Controller.extend({
4+
45
actions: {
56
toggleIsShowing() {
6-
this.toggleProperty("isShowing");
7+
this.toggleProperty('isShowing');
78
}
89
}
10+
911
});
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import Component from "@ember/component";
1+
import Component from '@ember/component';
22

33
export default Component.extend({
4+
45
actions: {
56
// BEGIN-SNIPPET docs-demo-multiple.js
67
toggleIsShowing() {
7-
this.toggleProperty("isShowing");
8+
this.toggleProperty('isShowing');
89
}
910
// END-SNIPPET
1011
}
12+
1113
});

tests/dummy/app/pods/docs/components/docs-logo/demo2/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// BEGIN-SNIPPET docs-logo-ember-cli-styles.scss
22
.my-ember-cli-addon-logo {
3-
background: #f44336;
3+
background: #F44336;
44
color: white;
55
width: 50%;
66
height: 50%;

tests/dummy/app/pods/docs/components/docs-logo/demo3/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// BEGIN-SNIPPET docs-logo-ember-data-styles.scss
22
.my-ember-data-addon-logo {
3-
background: #2196f3;
3+
background: #2196F3;
44
color: white;
55
width: 50%;
66
height: 50%;

tests/dummy/app/pods/docs/quickstart/template.md

Lines changed: 45 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ This quickstart guide will get you going with a docs site for your brand new add
44

55
1. **Install the addon.**
66

7-
8-
```
9-
ember install ember-learn/ember-cli-addon-docs
10-
```
7+
```
8+
ember install ember-learn/ember-cli-addon-docs
9+
```
1110

1211
2. **Add the docs route.** Open `tests/dummy/app/router.js` and add a route named `docs`. Go ahead and make it nested, since this is where you'll be defining additional documentation pages.
1312

14-
{{#docs-snippet name='quickstart-router.js' title='tests/dummy/app/router.js'}}
15-
this.route('docs', function() {
16-
this.route('api', function() {
17-
this.route('class', { path: '/:class_id' });
18-
});
19-
});
20-
{{/docs-snippet}}
13+
{{#docs-snippet name='quickstart-router.js' title='tests/dummy/app/router.js'}}
14+
this.route('docs', function() {
15+
this.route('api', function() {
16+
this.route('class', { path: '/:class_id' });
17+
});
18+
});
19+
{{/docs-snippet}}
2120

22-
3. **Create your app skeleton.** Open your application template and add the DocsNavbar component, customizing its properties for your project. You can also add the global keyboard shortcuts component (use `?` to show the help window). Here's our application template:
21+
3. **Create your app skeleton.** You can add the global keyboard shortcuts component to enable keyboard navigation around your docs site (use `?` to show the help window). Here's our application template:
2322

24-
{{docs-snippet name="docs-demo-application-template.hbs" title="tests/dummy/app/templates/application.hbs"}}
23+
{{docs-snippet name="docs-demo-application-template.hbs" title="tests/dummy/app/templates/application.hbs"}}
2524

2625
4. **Create your docs skeleton.** Create a template for the `docs` route and add the DocsViewer component.
2726

28-
{{#docs-snippet name='quickstart-skeleton.hbs' title='tests/dummy/app/pods/docs/template.hbs'}}
29-
{{#docs-viewer as |viewer|}}
30-
{{#viewer.nav as |nav|}}
31-
{{nav.item 'Overview' 'docs.index'}}
32-
{{/viewer.nav}}
27+
{{#docs-snippet name='quickstart-skeleton.hbs' title='tests/dummy/app/pods/docs/template.hbs'}}
28+
{{#docs-viewer as |viewer|}}
29+
30+
{{#viewer.nav as |nav|}}
31+
{{nav.item 'Overview' 'docs.index'}}
32+
{{/viewer.nav}}
3333

3434
{{#viewer.main}}
3535
<div class="docs-container docs__center">
@@ -38,56 +38,50 @@ this.route('class', { path: '/:class_id' });
3838
</div>
3939
</div>
4040
{{/viewer.main}}
41-
{{/docs-viewer}}
4241

43-
{{/docs-snippet}}
42+
{{/docs-viewer}}
43+
{{/docs-snippet}}
4444

4545
5. **Fill out the index of your docs page.** We called it Overview but you can call it whatever you want. Since Addon Docs supports markdown templates out of the box, we can make this a Markdown file.
4646

47-
{{#docs-snippet name='quickstart-markdown.md' title='tests/dummy/app/templates/docs/index.md' language='markdown'}} # Overview
47+
{{#docs-snippet name='quickstart-markdown.md' title='tests/dummy/app/templates/docs/index.md' language='markdown'}}
48+
# Overview
4849

4950
This is my new addon, and it rocks!
50-
51-
{{/docs-snippet}}
51+
{{/docs-snippet}}
5252

5353
6. **Add a 404 route.** Add a route to the end of your router and create an associated template.
5454

55-
{{#docs-snippet name='quickstart-404.js' title='tests/dummy/app/router.js'}}
56-
this.route('not-found', { path: '/\*path' });
57-
{{/docs-snippet}}
55+
{{#docs-snippet name='quickstart-404.js' title='tests/dummy/app/router.js'}}
56+
this.route('not-found', { path: '/*path' });
57+
{{/docs-snippet}}
5858

59-
<br />
60-
61-
{{#docs-snippet name='quickstart-404.hbs' title='tests/dummy/app/templates/not-found.hbs'}}
62-
<div class="docs-container">
63-
<h1>Not found</h1>
64-
<p>This page doesn't exist. {{#link-to 'index'}}Head home?{{/link-to}}</p>
65-
</div>
66-
{{/docs-snippet}}
59+
{{#docs-snippet name='quickstart-404.hbs' title='tests/dummy/app/templates/not-found.hbs'}}
60+
<div class="docs-container">
61+
<h1>Not found</h1>
62+
<p>This page doesn't exist. {{#link-to 'index'}}Head home?{{/link-to}}</p>
63+
</div>
64+
{{/docs-snippet}}
6765

6866
8. **Add more docs pages.** It's up to you how to structure your docs - use the Snippet, Viewer and Demo components to help you write your documentation. Let's add another page to ours: we'll add the route, link to our docs viewer, and the actual template.
6967

70-
{{#docs-snippet name='quickstart-more-docs.js' title='tests/dummy/app/router.js'}}
71-
this.route('docs', function() {
72-
this.route('installation');
73-
});
74-
{{/docs-snippet}}
75-
76-
<br />
68+
{{#docs-snippet name='quickstart-more-docs.js' title='tests/dummy/app/router.js'}}
69+
this.route('docs', function() {
70+
this.route('installation');
71+
});
72+
{{/docs-snippet}}
7773

78-
{{#docs-snippet name='quickstart-more-nav.hbs' title='tests/dummy/app/templates/docs.hbs'}}
79-
{{#viewer.nav as |nav|}}
80-
{{nav.item 'Installation' 'docs.installation'}}
81-
{{/viewer.nav}}
82-
{{/docs-snippet}}
74+
{{#docs-snippet name='quickstart-more-nav.hbs' title='tests/dummy/app/templates/docs.hbs'}}
75+
{{#viewer.nav as |nav|}}
76+
{{nav.item 'Installation' 'docs.installation'}}
77+
{{/viewer.nav}}
78+
{{/docs-snippet}}
8379

84-
<br />
85-
86-
{{#docs-snippet name='quickstart-installation-readme.md' title='tests/dummy/app/templates/docs/installation.md'}} # Installation
80+
{{#docs-snippet name='quickstart-installation-readme.md' title='tests/dummy/app/templates/docs/installation.md'}}
81+
# Installation
8782

8883
To install My Addon, run...
89-
90-
{{/docs-snippet}}
84+
{{/docs-snippet}}
9185

9286
8. **Round out your site.**
9387

0 commit comments

Comments
 (0)