| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line |
| 2 | class Electron < UrlScraper | 2 | class Electron < UrlScraper |
| 3 | self.type = 'simple' | 3 | self.type = 'simple' |
| 4 | self.base_url = 'https://www.electronjs.org/docs' | 4 | self.base_url = 'https://www.electronjs.org/docs' |
| 5 | self.release = '12.0.0' | 5 | self.release = '13.1.7' |
| 6 | self.links = { | 6 | self.links = { |
| 7 | home: 'https://www.electronjs.org/', | 7 | home: 'https://www.electronjs.org/', |
| 8 | code: 'https://github.com/electron/electron' | 8 | code: 'https://github.com/electron/electron' |
| @@ -13,7 +13,10 @@ module Docs · 4 unmodified lines |
| 13 | options[:trailing_slash] = false | 13 | options[:trailing_slash] = false |
| 14 | options[:container] = 'main' | 14 | options[:container] = 'main' |
| 15 | options[:skip] = %w(guides development tutorial versions all) | 15 | options[:skip] = %w(guides development tutorial versions all) |
| 16 | options[:skip_patterns] = [/\/history\z/] | 16 | options[:skip_patterns] = [ |
| | 17 | /\/history\z/, |
| | 18 | /\/latest/ # beta site |
| | 19 | ] |
| 17 | options[:replace_paths] = { | 20 | options[:replace_paths] = { |
| 18 | 'api/web-view-tag' => 'api/webview-tag' | 21 | 'api/web-view-tag' => 'api/webview-tag' |
| 19 | } | 22 | } |