[devdocsgjs/main: 43/69] Update ESLint documentation (8.23.0)




commit cf2c992c14683641a81f1474850a6d2a3d7aeccb
Author: Simon Legner <Simon Legner gmail com>
Date:   Tue Sep 6 14:24:51 2022 +0200

    Update ESLint documentation (8.23.0)

 lib/docs/filters/eslint/clean_html.rb | 3 ++-
 lib/docs/scrapers/eslint.rb           | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/lib/docs/filters/eslint/clean_html.rb b/lib/docs/filters/eslint/clean_html.rb
index fb3a113e..9bc18709 100644
--- a/lib/docs/filters/eslint/clean_html.rb
+++ b/lib/docs/filters/eslint/clean_html.rb
@@ -2,7 +2,8 @@ module Docs
   class Eslint
     class CleanHtmlFilter < Filter
       def call
-        @doc = at_css('.doc') if at_css('.doc')
+        @doc = at_css('#main') if at_css('#main')
+        @doc = at_css('.docs-main__content') if at_css('.docs-main__content')
 
         css('.eslint-ad').remove
         css('.glyphicon').remove
diff --git a/lib/docs/scrapers/eslint.rb b/lib/docs/scrapers/eslint.rb
index 4210523b..0395071e 100644
--- a/lib/docs/scrapers/eslint.rb
+++ b/lib/docs/scrapers/eslint.rb
@@ -2,8 +2,8 @@ module Docs
   class Eslint < UrlScraper
     self.name = 'ESLint'
     self.type = 'simple'
-    self.release = '8.16.0'
-    self.base_url = 'https://eslint.org/docs/'
+    self.release = '8.23.0'
+    self.base_url = 'https://eslint.org/docs/latest/'
     self.root_path = 'user-guide/getting-started'
     self.links = {
       home: 'https://eslint.org/',
@@ -13,7 +13,7 @@ module Docs
     html_filters.push 'eslint/entries', 'eslint/clean_html'
 
     options[:skip_patterns] = [/maintainer-guide/]
-    options[:skip] = %w(about about/ rules)
+    options[:skip] = %w(about about/ rules versions)
     options[:replace_paths] = { 'user-guide' => 'user-guide/' }
 
     options[:attribution] = <<-HTML


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