Unified · Split
| @@ -12,6 +12,7 @@ module Docs · 11 unmodified lines | |||
| 12 | 'Fetch' => 'Fetch', | 12 | 'Fetch' => 'Fetch', |
| 13 | 'File API' => 'File', | 13 | 'File API' => 'File', |
| 14 | 'Geolocation' => 'Geolocation', | 14 | 'Geolocation' => 'Geolocation', |
| 15 | 'Geometry' => 'Geometry', | ||
| 15 | 'Media Capture' => 'Media', | 16 | 'Media Capture' => 'Media', |
| 16 | 'Media Source' => 'Media', | 17 | 'Media Source' => 'Media', |
| 17 | 'MediaStream' => 'Media', | 18 | 'MediaStream' => 'Media', |
| @@ -24,7 +25,8 @@ module Docs · 6 unmodified lines | |||
| 24 | 'Web Messaging' => 'Web Messaging', | 25 | 'Web Messaging' => 'Web Messaging', |
| 25 | 'Web Storage' => 'Web Storage', | 26 | 'Web Storage' => 'Web Storage', |
| 26 | 'Web Workers' => 'Web Workers', | 27 | 'Web Workers' => 'Web Workers', |
| 27 | 'WebRTC' => 'WebRTC' } | 28 | 'WebRTC' => 'WebRTC', |
| 29 | 'WebVR' => 'WebVR' } | ||
| 28 | 30 | ||
| 29 | TYPE_BY_NAME_STARTS_WITH = { | 31 | TYPE_BY_NAME_STARTS_WITH = { |
| 30 | 'Audio' => 'Web Audio', | 32 | 'Audio' => 'Web Audio', |
| @@ -51,6 +53,7 @@ module Docs · 20 unmodified lines | |||
| 51 | 'Node' => 'Node', | 53 | 'Node' => 'Node', |
| 52 | 'Notification' => 'Notification', | 54 | 'Notification' => 'Notification', |
| 53 | 'ParentNode' => 'Node', | 55 | 'ParentNode' => 'Node', |
| 56 | 'Push' => 'Push', | ||
| 54 | 'Range' => 'Range', | 57 | 'Range' => 'Range', |
| 55 | 'RTC' => 'WebRTC', | 58 | 'RTC' => 'WebRTC', |
| 56 | 'screen' => 'Screen', | 59 | 'screen' => 'Screen', |
| @@ -79,6 +82,7 @@ module Docs · 22 unmodified lines | |||
| 79 | 'TextMetrics' => 'Canvas', | 82 | 'TextMetrics' => 'Canvas', |
| 80 | 'udio' => 'Web Audio', | 83 | 'udio' => 'Web Audio', |
| 81 | 'WebGL' => 'Canvas', | 84 | 'WebGL' => 'Canvas', |
| 85 | 'WebVR' => 'WebVR', | ||
| 82 | 'Worker' => 'Web Workers' } | 86 | 'Worker' => 'Web Workers' } |
| 83 | 87 | ||
| 84 | TYPE_BY_NAME_MATCHES = {} | 88 | TYPE_BY_NAME_MATCHES = {} |
| @@ -2,8 +2,8 @@ module Docs · 1 unmodified line | |||
| 2 | class Javascript | 2 | class Javascript |
| 3 | class EntriesFilter < Docs::EntriesFilter | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | TYPES = %w(Array ArrayBuffer Boolean DataView Date Function Intl JSON Map | 4 | TYPES = %w(Array ArrayBuffer Boolean DataView Date Function Intl JSON Map |
| 5 | Math Number Object Promise RegExp Set String Symbol TypedArray WeakMap | 5 | Math Number Object Promise RegExp Set SIMD String Symbol TypedArray |
| 6 | WeakSet) | 6 | WeakMap WeakSet) |
| 7 | INTL_OBJECTS = %w(Collator DateTimeFormat NumberFormat) | 7 | INTL_OBJECTS = %w(Collator DateTimeFormat NumberFormat) |
| 8 | 8 | ||
| 9 | def get_name | 9 | def get_name |
| @@ -21,6 +21,7 @@ module Docs · 11 unmodified lines | |||
| 21 | name | 21 | name |
| 22 | else | 22 | else |
| 23 | name = super | 23 | name = super |
| 24 | name.remove! 'Classes.' | ||
| 24 | name.remove! 'Functions.' | 25 | name.remove! 'Functions.' |
| 25 | name.remove! 'Functions and function scope.' | 26 | name.remove! 'Functions and function scope.' |
| 26 | name.remove! 'Operators.' | 27 | name.remove! 'Operators.' |
| @@ -34,6 +35,8 @@ module Docs · 7 unmodified lines | |||
| 34 | 'Statements' | 35 | 'Statements' |
| 35 | elsif slug.start_with? 'Operators' | 36 | elsif slug.start_with? 'Operators' |
| 36 | 'Operators' | 37 | 'Operators' |
| 38 | elsif slug.start_with? 'Classes' | ||
| 39 | 'Classes' | ||
| 37 | elsif slug.start_with?('Functions_and_function_scope') || slug.start_with?('Functions') || slug.include?('GeneratorFunction') | 40 | elsif slug.start_with?('Functions_and_function_scope') || slug.start_with?('Functions') || slug.include?('GeneratorFunction') |
| 38 | 'Function' | 41 | 'Function' |
| 39 | elsif slug.start_with? 'Global_Objects' | 42 | elsif slug.start_with? 'Global_Objects' |