From e51c92e1b5760bfa77df536c5c7d7d78dc123a7b Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Tue, 20 Aug 2024 20:37:43 +0200 Subject: [PATCH] mdn: it's 2024 --- lib/docs/filters/mdn/compat_tables.rb | 12 +++++++++--- lib/docs/scrapers/mdn/mdn.rb | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/docs/filters/mdn/compat_tables.rb b/lib/docs/filters/mdn/compat_tables.rb index ceaa8987..4982d548 100644 --- a/lib/docs/filters/mdn/compat_tables.rb +++ b/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 diff --git a/lib/docs/scrapers/mdn/mdn.rb b/lib/docs/scrapers/mdn/mdn.rb index 7ca01b05..ebc482e7 100644 --- a/lib/docs/scrapers/mdn/mdn.rb +++ b/lib/docs/scrapers/mdn/mdn.rb @@ -18,7 +18,7 @@ module Docs } options[:attribution] = <<-HTML - © 2005–2023 MDN contributors.
+ © 2005–2024 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later. HTML