Update DOM documentation

pull/343/merge
Thibaut Courouble 9 years ago
parent 35df0414dc
commit ed8a22a61f

@ -14,13 +14,16 @@ module Docs
'File API' => 'File',
'Geolocation' => 'Geolocation',
'Geometry' => 'Geometry',
'High Resolution Time' => 'Web Performance',
'Media Capture' => 'Media',
'Media Source' => 'Media',
'MediaStream' => 'Media',
'Navigation Timing' => 'Navigation Timing',
'Navigation Timing' => 'Web Performance',
'Network Information' => 'Network Information',
'Performance Timeline' => 'Web Performance',
'Pointer Events' => 'Pointer Events',
'Push API' => 'Push',
'Presentation API' => 'Presentation',
'Shadow DOM' => 'Shadow DOM',
'Server-Sent Events' => 'Server-Sent Events',
'Service Workers' => 'Service Workers',
@ -54,6 +57,7 @@ module Docs
'File' => 'File',
'GlobalEventHandlers' => 'GlobalEventHandlers',
'history' => 'History',
'HTML Drag' => 'Drag & Drop',
'HTML' => 'Elements',
'IDB' => 'IndexedDB',
'location' => 'Location',
@ -62,8 +66,10 @@ module Docs
'Node' => 'Node',
'Notification' => 'Notification',
'ParentNode' => 'Node',
'Performance' => 'Web Performance',
'Push' => 'Push',
'Range' => 'Range',
'Resource Timing' => 'Web Performance',
'RTC' => 'WebRTC',
'screen' => 'Screen',
'Selection' => 'Selection',
@ -71,8 +77,8 @@ module Docs
'StyleSheet' => 'CSS',
'Stylesheet' => 'CSS',
'SVG' => 'SVG',
'timing' => 'Navigation Timing',
'Timing' => 'Navigation Timing',
'timing' => 'Web Performance',
'Timing' => 'Web Performance',
'Touch' => 'Touch Events',
'TreeWalker' => 'TreeWalker',
'URL' => 'URL',
@ -95,8 +101,9 @@ module Docs
'Pointer' => 'Pointer Events',
'Server-sent' => 'Server-Sent Events',
'ServiceWorker' => 'Service Workers',
'Speech' => 'Web Speech',
'TextMetrics' => 'Canvas',
'timing' => 'Navigation Timing',
'timing' => 'Web Performance',
'udio' => 'Web Audio',
'WebSocket' => 'Web Sockets',
'WebGL' => 'WebGL',
@ -177,6 +184,8 @@ module Docs
def include_default_entry?
return true if type == 'Console'
return true unless node = doc.at_css('.overheadIndicator')
node = node.parent while node.parent != doc
return true if node.previous_element.try(:name).in?(%w(h2 h3))
content = node.content
SKIP_CONTENT.none? { |str| content.include?(str) }
end

@ -49,8 +49,8 @@ module Docs
Server\ Sent\ Events WebSocket Web\ Messaging Web\ Workers)
def get_name
name = super.split.first
name << " (#{type})" if APPEND_TYPE.include?(type)
name = super
name = "#{name.split.first} (#{type})" if APPEND_TYPE.include?(type)
name
end

@ -30,7 +30,8 @@ module Docs
/window/getAttention
/window/messageManager
/window/updateCommands
/window/pkcs11)
/window/pkcs11
/OES_texture_float)
options[:skip_patterns] = [
/NS/,

Loading…
Cancel
Save