Bladeren bron

Update Support Tables documentation (1.0.30001442)

Simon Legner 2 jaren geleden
bovenliggende
commit
1554c00ab4
1 gewijzigde bestanden met toevoegingen van 9 en 2 verwijderingen
  1. 9 2
      lib/docs/scrapers/support_tables.rb

+ 9 - 2
lib/docs/scrapers/support_tables.rb

@@ -1,13 +1,20 @@
 require 'yajl/json_gem'
 
 module Docs
-  class SupportTables < Doc
+  class SupportTables < Scraper
     include Instrumentable
 
     self.name = 'Support Tables'
     self.slug = 'browser_support_tables'
     self.type = 'support_tables'
-    self.release = '1.0.30001431'
+    self.release = '1.0.30001442'
+    self.base_url = 'https://github.com/Fyrd/caniuse/raw/main/'
+
+    # https://github.com/Fyrd/caniuse/blob/main/LICENSE
+    options[:attribution] = <<-HTML
+      &copy; 2020 Alexis Deveria<br>
+      Licensed under the Creative Commons Attribution 4.0 International License.
+    HTML
 
     def build_pages
       url = 'https://github.com/Fyrd/caniuse/raw/main/data.json'