[devdocsgjs/main: 1216/1867] eslint: update release 7.13.0




commit 65df0b3a335b45fde59b60c12e1e6d6990c32065
Author: Simon Legner <Simon Legner gmail com>
Date:   Wed Nov 18 22:30:28 2020 +0100

    eslint: update release 7.13.0

 lib/docs/filters/eslint/clean_html.rb | 5 +++--
 lib/docs/scrapers/eslint.rb           | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/lib/docs/filters/eslint/clean_html.rb b/lib/docs/filters/eslint/clean_html.rb
index c87e1ab7..fb3a113e 100644
--- a/lib/docs/filters/eslint/clean_html.rb
+++ b/lib/docs/filters/eslint/clean_html.rb
@@ -4,6 +4,7 @@ module Docs
       def call
         @doc = at_css('.doc') if at_css('.doc')
 
+        css('.eslint-ad').remove
         css('.glyphicon').remove
         css('hr', 'colgroup', 'td:empty').remove
 
@@ -11,8 +12,8 @@ module Docs
           node.before(node.children).remove
         end
 
-        css('div.highlighter-rouge').each do |node|
-          lang = node['class'][/language-(\w+)/, 1]
+        css('pre.hljs').each do |node|
+          lang = node['class'][/highlight-(\w+)/, 1]
           node['data-language'] = lang if lang
           node.content = node.content.strip
           node.name = 'pre'
diff --git a/lib/docs/scrapers/eslint.rb b/lib/docs/scrapers/eslint.rb
index 561b7fc1..13b1a8ea 100644
--- a/lib/docs/scrapers/eslint.rb
+++ b/lib/docs/scrapers/eslint.rb
@@ -2,7 +2,7 @@ module Docs
   class Eslint < UrlScraper
     self.name = 'ESLint'
     self.type = 'simple'
-    self.release = '6.8.0'
+    self.release = '7.13.0'
     self.base_url = 'https://eslint.org/docs/'
     self.root_path = 'user-guide/getting-started'
     self.links = {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]