Browse Source

mdn: it's 2024

Simon Legner 1 year ago
parent
commit
e51c92e1b5
2 changed files with 10 additions and 4 deletions
  1. 9 3
      lib/docs/filters/mdn/compat_tables.rb
  2. 1 1
      lib/docs/scrapers/mdn/mdn.rb

+ 9 - 3
lib/docs/filters/mdn/compat_tables.rb

@@ -24,11 +24,13 @@ module Docs
       end
 
       BROWSERS = {
+        # Desktop
         'chrome' => 'Chrome',
         'edge' => 'Edge',
         'firefox' => 'Firefox',
         'opera' => 'Opera',
         'safari' => 'Safari',
+        # Mobile
         'chrome_android' => 'Chrome Android',
         'firefox_android' => 'Firefox for Android',
         'opera_android' => 'Opera Android',
@@ -43,7 +45,11 @@ module Docs
 
       def browsers
         if is_javascript
-          {}.merge(BROWSERS).merge({'deno' => 'Deno', 'nodejs' => 'Node.js'})
+          {}.merge(BROWSERS).merge({
+            # Server
+            'deno' => 'Deno',
+            'nodejs' => 'Node.js',
+          })
         else
           BROWSERS
         end
@@ -51,9 +57,9 @@ module Docs
 
       def browser_types
         if is_javascript
-          {'Desktop'=>6, 'Mobile'=>6, 'Server'=>2,}
+          {'Desktop'=>5, 'Mobile'=>6, 'Server'=>2,}
         else
-          {'Desktop'=>6, 'Mobile'=>6,}
+          {'Desktop'=>5, 'Mobile'=>6,}
         end
       end
 

+ 1 - 1
lib/docs/scrapers/mdn/mdn.rb

@@ -18,7 +18,7 @@ module Docs
     }
 
     options[:attribution] = <<-HTML
-      &copy; 2005&ndash;2023 MDN contributors.<br>
+      &copy; 2005&ndash;2024 MDN contributors.<br>
       Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
     HTML