Unified · Split
| @@ -1,10 +1,6 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Ember | 2 | class Ember |
| 3 | class EntriesFilter < Docs::EntriesFilter | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | def include_default_entry? | ||
| 5 | name != 'Handlebars Helpers' | ||
| 6 | end | ||
| 7 | |||
| 8 | def get_name | 4 | def get_name |
| 9 | name = at_css('.api-header').content.split.first | 5 | name = at_css('.api-header').content.split.first |
| 10 | # Remove "Ember." prefix if the next character is uppercase | 6 | # Remove "Ember." prefix if the next character is uppercase |
| @@ -13,16 +9,22 @@ module Docs · 2 unmodified lines | |||
| 13 | end | 9 | end |
| 14 | 10 | ||
| 15 | def get_type | 11 | def get_type |
| 12 | group = if css('p').any? { |node| node.content.include?('PRIVATE') } | ||
| 13 | 'Private' | ||
| 14 | elsif css('p').any? { |node| node.content.include?('DEPRECATED') } | ||
| 15 | 'Deprecated' | ||
| 16 | end | ||
| 17 | |||
| 16 | if at_css('.api-header').content.include?('Module') | 18 | if at_css('.api-header').content.include?('Module') |
| 17 | 'Modules' | 19 | 'Modules' |
| 18 | elsif name.start_with? 'DS' | 20 | elsif name.start_with? 'DS' |
| 19 | 'Data' | 21 | group ? "Data (#{group})" : 'Data' |
| 20 | elsif name.start_with? 'RSVP' | 22 | elsif name.start_with? 'RSVP' |
| 21 | 'RSVP' | 23 | 'RSVP' |
| 22 | elsif name.start_with? 'Test' | 24 | elsif name.start_with? 'Test' |
| 23 | 'Test' | 25 | 'Test' |
| 24 | else | 26 | else |
| 25 | name | 27 | group || name |
| 26 | end | 28 | end |
| 27 | end | 29 | end |
| 28 | 30 | ||
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | |||
| 3 | self.name = 'Ember.js' | 3 | self.name = 'Ember.js' |
| 4 | self.slug = 'ember' | 4 | self.slug = 'ember' |
| 5 | self.type = 'ember' | 5 | self.type = 'ember' |
| 6 | self.version = '1.12.0' | 6 | self.version = '1.13.3' |
| 7 | self.base_url = 'http://emberjs.com/api/' | 7 | self.base_url = 'http://emberjs.com/api/' |
| 8 | self.links = { | 8 | self.links = { |
| 9 | home: 'http://emberjs.com/', | 9 | home: 'http://emberjs.com/', |
| @@ -20,27 +20,7 @@ module Docs · 10 unmodified lines | |||
| 20 | end | 20 | end |
| 21 | 21 | ||
| 22 | # Duplicates | 22 | # Duplicates |
| 23 | options[:skip] = %w( | 23 | options[:skip] = %w(classes/String.html data/classes/DS.html) |
| 24 | classes/String.html | ||
| 25 | data/classes/DS.html) | ||
| 26 | |||
| 27 | # Private | ||
| 28 | options[:skip].concat %w( | ||
| 29 | classes/Backburner.html | ||
| 30 | classes/Ember.ComponentTemplateDeprecation.html | ||
| 31 | classes/Ember.ControllerContentModelAliasDeprecation.html | ||
| 32 | classes/Ember.Descriptor.html | ||
| 33 | classes/Ember.EachProxy.html | ||
| 34 | classes/Ember.EventDispatcher.html | ||
| 35 | classes/Ember.Map.html | ||
| 36 | classes/Ember.MapWithDefault.html | ||
| 37 | classes/Ember.OrderedSet.html | ||
| 38 | classes/Ember.TextSupport.html | ||
| 39 | classes/HandlebarsCompatibleHelper.html | ||
| 40 | classes/Libraries.html | ||
| 41 | data/classes/DS.ContainerProxy.html | ||
| 42 | data/classes/DS.DebugAdapter.html | ||
| 43 | data/classes/DS.RecordArrayManager.html) | ||
| 44 | 24 | ||
| 45 | options[:skip_patterns] = [/\._/] | 25 | options[:skip_patterns] = [/\._/] |
| 46 | 26 | ||