Update Ember.js documentation (1.13.3)

pull/229/merge
Thibaut 10 years ago
parent 83c70fd7ce
commit 05d5b93967

@ -1,10 +1,6 @@
module Docs
class Ember
class EntriesFilter < Docs::EntriesFilter
def include_default_entry?
name != 'Handlebars Helpers'
end
def get_name
name = at_css('.api-header').content.split.first
# Remove "Ember." prefix if the next character is uppercase
@ -13,16 +9,22 @@ module Docs
end
def get_type
group = if css('p').any? { |node| node.content.include?('PRIVATE') }
'Private'
elsif css('p').any? { |node| node.content.include?('DEPRECATED') }
'Deprecated'
end
if at_css('.api-header').content.include?('Module')
'Modules'
elsif name.start_with? 'DS'
'Data'
group ? "Data (#{group})" : 'Data'
elsif name.start_with? 'RSVP'
'RSVP'
elsif name.start_with? 'Test'
'Test'
else
name
group || name
end
end

@ -3,7 +3,7 @@ module Docs
self.name = 'Ember.js'
self.slug = 'ember'
self.type = 'ember'
self.version = '1.12.0'
self.version = '1.13.3'
self.base_url = 'http://emberjs.com/api/'
self.links = {
home: 'http://emberjs.com/',
@ -20,27 +20,7 @@ module Docs
end
# Duplicates
options[:skip] = %w(
classes/String.html
data/classes/DS.html)
# Private
options[:skip].concat %w(
classes/Backburner.html
classes/Ember.ComponentTemplateDeprecation.html
classes/Ember.ControllerContentModelAliasDeprecation.html
classes/Ember.Descriptor.html
classes/Ember.EachProxy.html
classes/Ember.EventDispatcher.html
classes/Ember.Map.html
classes/Ember.MapWithDefault.html
classes/Ember.OrderedSet.html
classes/Ember.TextSupport.html
classes/HandlebarsCompatibleHelper.html
classes/Libraries.html
data/classes/DS.ContainerProxy.html
data/classes/DS.DebugAdapter.html
data/classes/DS.RecordArrayManager.html)
options[:skip] = %w(classes/String.html data/classes/DS.html)
options[:skip_patterns] = [/\._/]

Loading…
Cancel
Save