Showing the changes to lib/docs (2 of 2 files). Show all
Unified · Split
| @@ -11,15 +11,18 @@ module Docs · 10 unmodified lines | ||
| 11 | 11 | 'Geolocation' => 'Geolocation', |
| 12 | 12 | 'Media Capture' => 'Media', |
| 13 | 13 | 'Media Source' => 'Media', |
| 14 | + 'MediaStream' => 'MediaRecorder', | |
| 14 | 15 | 'Navigation Timing' => 'Navigation Timing', |
| 15 | 16 | 'Network Information' => 'Network Information', |
| 16 | 17 | 'Web Audio' => 'Web Audio', |
| 17 | − 'Web Workers' => 'Web Workers' } | |
| 18 | + 'Web Workers' => 'Web Workers', | |
| 19 | + 'WebRTC' => 'WebRTC' } | |
| 18 | 20 | |
| 19 | 21 | TYPE_BY_NAME_STARTS_WITH = { |
| 22 | + 'Audio' => 'Audio', | |
| 20 | 23 | 'Canvas' => 'Canvas', |
| 21 | 24 | 'ChildNode' => 'Node', |
| 22 | − 'console' => 'Console', | |
| 25 | + 'Console' => 'Console', | |
| 23 | 26 | 'CSS' => 'CSS', |
| 24 | 27 | 'document' => 'Document', |
| 25 | 28 | 'DocumentFragment' => 'DocumentFragment', |
| @@ -31,12 +34,14 @@ module Docs · 5 unmodified lines | ||
| 31 | 34 | 'GlobalEventHandlers' => 'GlobalEventHandlers', |
| 32 | 35 | 'history' => 'History', |
| 33 | 36 | 'IDB' => 'IndexedDB', |
| 37 | + 'IndexedDB' => 'IndexedDB', | |
| 34 | 38 | 'Location' => 'Location', |
| 35 | 39 | 'navigator' => 'Navigator', |
| 36 | 40 | 'Node' => 'Node', |
| 37 | 41 | 'Notification' => 'Notification', |
| 38 | 42 | 'ParentNode' => 'Node', |
| 39 | 43 | 'Range' => 'Range', |
| 44 | + 'RTC' => 'WebRTC', | |
| 40 | 45 | 'Selection' => 'Selection', |
| 41 | 46 | 'StyleSheet' => 'CSS', |
| 42 | 47 | 'SVG' => 'SVG', |
| @@ -104,9 +109,9 @@ module Docs · 61 unmodified lines | ||
| 104 | 109 | end |
| 105 | 110 | |
| 106 | 111 | def include_default_entry? |
| 107 | − !(node = doc.at_css '.overheadIndicator') || | |
| 108 | − !node.content.include?('not on a standards track') && | |
| 109 | − !node.content.include?('removed from the Web') | |
| 112 | + (node = doc.at_css '.overheadIndicator').nil? || | |
| 113 | + type == 'Console' || | |
| 114 | + (node.content.exclude?('not on a standards track') && node.content.exclude?('removed from the Web')) | |
| 110 | 115 | end |
| 111 | 116 | end |
| 112 | 117 | end |
| @@ -10,11 +10,9 @@ module Docs · 9 unmodified lines | ||
| 10 | 10 | # Don't want |
| 11 | 11 | options[:skip] = %w( |
| 12 | 12 | /App |
| 13 | − /Apps | |
| 14 | 13 | /CallEvent |
| 15 | 14 | /CanvasPixelArray |
| 16 | 15 | /ChromeWorker |
| 17 | − /ContactManager | |
| 18 | 16 | /document.createProcessingInstruction |
| 19 | 17 | /document.documentURIObject |
| 20 | 18 | /document.loadOverlay |
| @@ -33,9 +31,10 @@ module Docs · 12 unmodified lines | ||
| 33 | 31 | /PowerManager |
| 34 | 32 | /PushManager |
| 35 | 33 | /ProcessingInstruction |
| 36 | − /select.type | |
| 37 | 34 | /TCPServerSocket |
| 38 | 35 | /TCPSocket |
| 36 | + /TypeInfo | |
| 37 | + /Web_Video_Text_Tracks_Format | |
| 39 | 38 | /WifiManager |
| 40 | 39 | /window.controllers |
| 41 | 40 | /window.crypto |
| @@ -48,7 +47,6 @@ module Docs · 6 unmodified lines | ||
| 48 | 47 | /window.navigator.requestWakeLock |
| 49 | 48 | /window.updateCommands |
| 50 | 49 | /window.pkcs11 |
| 51 | − /XMLDocument | |
| 52 | 50 | /XMLHttpRequest/Using_XMLHttpRequest) |
| 53 | 51 | |
| 54 | 52 | options[:skip_patterns] = [ |
| @@ -57,20 +55,29 @@ module Docs · 2 unmodified lines | ||
| 57 | 55 | /moz/i, |
| 58 | 56 | /gecko/i, |
| 59 | 57 | /webkit/i, |
| 58 | + /gamepad/i, | |
| 59 | + /UserData/, | |
| 60 | 60 | /\A\/Camera/, |
| 61 | 61 | /\A\/DeviceStorage/, |
| 62 | 62 | /\A\/document\.xml/, |
| 63 | + /\A\/XMLDocument/, | |
| 63 | 64 | /\A\/DOMCursor/, |
| 64 | 65 | /\A\/DOMRequest/, |
| 65 | 66 | /\A\/element\.on/, |
| 66 | 67 | /\A\/Entity/, |
| 67 | − /\A\/HTMLIFrameElement\./, | |
| 68 | 68 | /\A\/navigator\.id/i, |
| 69 | 69 | /\A\/Settings/, |
| 70 | 70 | /\A\/Telephony/, |
| 71 | 71 | /\A\/Bluetooth/, |
| 72 | − /UserData/, | |
| 73 | − /\A\/Window\.\w+bar/i] | |
| 72 | + /\A\/Window\.\w+bar/i, | |
| 73 | + /\A\/CSS_Object_Model\//, | |
| 74 | + /\A\/Web_Audio_API\//, | |
| 75 | + /\A\/IndexedDB_API\//, | |
| 76 | + /\A\/MediaRecorder_API\//, | |
| 77 | + /\A\/Apps/, | |
| 78 | + /\A\/Contact/, | |
| 79 | + /\A\/L10n/, | |
| 80 | + /\A\/Permission/] | |
| 74 | 81 | |
| 75 | 82 | # Broken / Empty |
| 76 | 83 | options[:skip].concat %w( |
| @@ -86,7 +93,13 @@ module Docs · 9 unmodified lines | ||
| 86 | 93 | /Window.QueryInterface) |
| 87 | 94 | |
| 88 | 95 | # Duplicates |
| 89 | − options[:skip].concat %w(/Reference) | |
| 96 | + options[:skip].concat %w( | |
| 97 | + /Reference | |
| 98 | + /Index | |
| 99 | + /form.elements | |
| 100 | + /select.type | |
| 101 | + /table.rows | |
| 102 | + /XMLHttpRequest/FormData) | |
| 90 | 103 | |
| 91 | 104 | options[:fix_urls] = ->(url) do |
| 92 | 105 | return if url.include?('_') || url.include?('?') |
| @@ -99,6 +112,11 @@ module Docs · 6 unmodified lines | ||
| 99 | 112 | url.sub! "#{Dom.base_url}/notification", "#{Dom.base_url}/Notification" |
| 100 | 113 | url.sub! "#{Dom.base_url}/range", "#{Dom.base_url}/Range" |
| 101 | 114 | url.sub! "#{Dom.base_url}/Window", "#{Dom.base_url}/window" |
| 115 | + url.sub! "#{Dom.base_url}/window.navigator", "#{Dom.base_url}/navigator" | |
| 116 | + url.sub! "#{Dom.base_url}/Selection/", "#{Dom.base_url}/Selection." | |
| 117 | + url.sub! "#{Dom.base_url}/windowTimers", "#{Dom.base_url}/window" | |
| 118 | + url.sub! "#{Dom.base_url}/windowEventHandlers", "#{Dom.base_url}/window" | |
| 119 | + url.sub! "#{Dom.base_url}/Screen.", "#{Dom.base_url}/window.screen" | |
| 102 | 120 | url |
| 103 | 121 | end |
| 104 | 122 | end |