Closes #55.
Showing the changes to assets/javascripts (3 of 3 files). Show all
Unified · Split
| @@ -71,7 +71,10 @@ · 70 unmodified lines | ||
| 71 | 71 | return |
| 72 | 72 | |
| 73 | 73 | start: -> |
| 74 | − @entries.add doc.entries.all() for doc in @docs.all() | |
| 74 | + for doc in @docs.all() | |
| 75 | + @entries.add doc.toEntry() | |
| 76 | + @entries.add type.toEntry() for type in doc.types.all() | |
| 77 | + @entries.add doc.entries.all() | |
| 75 | 78 | @trigger 'ready' |
| 76 | 79 | @router.start() |
| 77 | 80 | @hideLoading() |
| @@ -6,3 +6,9 @@ class app.models.Type extends app.Model · 5 unmodified lines | ||
| 6 | 6 | |
| 7 | 7 | entries: -> |
| 8 | 8 | @doc.entries.findAllBy 'type', @name |
| 9 | + | |
| 10 | + toEntry: -> | |
| 11 | + new app.models.Entry | |
| 12 | + doc: @doc | |
| 13 | + name: "#{@doc.name} / #{@name}" | |
| 14 | + path: '..' + @fullPath() | |
| @@ -24,7 +24,10 @@ newsItem = (date, news) -> · 23 unmodified lines | ||
| 24 | 24 | result |
| 25 | 25 | |
| 26 | 26 | app.news = [ |
| 27 | − [ 1390694400000, # January 26, 2013 | |
| 27 | + [ 1392163200000, # February 12, 2013 | |
| 28 | + """ The root/category pages are now included in the search index (e.g. <a href="/#q=CSS">CSS</a>) """, | |
| 29 | + ], [ | |
| 30 | + 1390694400000, # January 26, 2013 | |
| 28 | 31 | """ Updated <a href="/angular/">Angular.js</a> documentation """, |
| 29 | 32 | ], [ |
| 30 | 33 | 1390089600000, # January 19, 2013 |