diff --git a/assets/javascripts/app/app.coffee b/assets/javascripts/app/app.coffee index 6b0cabf6..cde88680 100644 --- a/assets/javascripts/app/app.coffee +++ b/assets/javascripts/app/app.coffee @@ -71,7 +71,10 @@ return start: -> - @entries.add doc.entries.all() for doc in @docs.all() + for doc in @docs.all() + @entries.add doc.toEntry() + @entries.add type.toEntry() for type in doc.types.all() + @entries.add doc.entries.all() @trigger 'ready' @router.start() @hideLoading() diff --git a/assets/javascripts/models/type.coffee b/assets/javascripts/models/type.coffee index c68ba0ea..6351ad16 100644 --- a/assets/javascripts/models/type.coffee +++ b/assets/javascripts/models/type.coffee @@ -6,3 +6,9 @@ class app.models.Type extends app.Model entries: -> @doc.entries.findAllBy 'type', @name + + toEntry: -> + new app.models.Entry + doc: @doc + name: "#{@doc.name} / #{@name}" + path: '..' + @fullPath() diff --git a/assets/javascripts/templates/pages/news_tmpl.coffee b/assets/javascripts/templates/pages/news_tmpl.coffee index 5106e568..8e284a18 100644 --- a/assets/javascripts/templates/pages/news_tmpl.coffee +++ b/assets/javascripts/templates/pages/news_tmpl.coffee @@ -24,7 +24,10 @@ newsItem = (date, news) -> result app.news = [ - [ 1390694400000, # January 26, 2013 + [ 1392163200000, # February 12, 2013 + """ The root/category pages are now included in the search index (e.g. CSS) """, + ], [ + 1390694400000, # January 26, 2013 """ Updated Angular.js documentation """, ], [ 1390089600000, # January 19, 2013