You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.route('api', function() { // autogenerated API homepage (required)
21
+
this.route('item', { path: '/*path' }); // autogenerated API subpages (required)
17
22
});
18
23
});
19
24
{{/docs-snippet}}
20
25
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:
26
+
3.**Create your docs skeleton.** Create a new template for the `docs` route
27
+
and make sure it contains the `DocsViewer` component and navigation items for
@@ -42,15 +46,48 @@ This quickstart guide will get you going with a docs site for your brand new add
42
46
{{/docs-viewer}}
43
47
{{/docs-snippet}}
44
48
45
-
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.
49
+
4.**Create your Markdown templates.** Markdown templates contain the actual
50
+
documentation for your addon and live in the folder
51
+
`tests/dummy/app/templates/docs`. Since Addon Docs supports Markdown out
52
+
of the box we will create two `.md` files (one for your docs `index` and one
@@ -63,28 +100,30 @@ This quickstart guide will get you going with a docs site for your brand new add
63
100
</div>
64
101
{{/docs-snippet}}
65
102
66
-
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.
103
+
7.**Launch your docs site**. Run `ember serve` and browse to
104
+
`localhost:4200/docs` to enjoy your brand new documentation website.
0 commit comments