Unified · Split
| @@ -3,6 +3,7 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | def get_name |
| 5 | 5 | return 'API' if subpath == '/api' |
| 6 | + return 'Structures' if slug == 'api/structures' | |
| 6 | 7 | |
| 7 | 8 | name = at_css('h1, h2').content |
| 8 | 9 | name.remove! 'Class: ' |
| @@ -14,7 +15,7 @@ module Docs · 5 unmodified lines | ||
| 14 | 15 | end |
| 15 | 16 | |
| 16 | 17 | def get_type |
| 17 | − return 'API' if subpath == '/api' | |
| 18 | + return 'API' if subpath == '/api' || slug == 'api/structures' | |
| 18 | 19 | |
| 19 | 20 | if subpath.start_with?('/tutorial') || subpath.in?(%w(/glossary /faq)) |
| 20 | 21 | 'Guides' |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Electron < UrlScraper |
| 3 | 3 | self.type = 'simple' |
| 4 | 4 | self.base_url = 'https://www.electronjs.org/docs' |
| 5 | − self.release = '12.0.0' | |
| 5 | + self.release = '13.1.7' | |
| 6 | 6 | self.links = { |
| 7 | 7 | home: 'https://www.electronjs.org/', |
| 8 | 8 | code: 'https://github.com/electron/electron' |
| @@ -13,7 +13,10 @@ module Docs · 4 unmodified lines | ||
| 13 | 13 | options[:trailing_slash] = false |
| 14 | 14 | options[:container] = 'main' |
| 15 | 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 | 20 | options[:replace_paths] = { |
| 18 | 21 | 'api/web-view-tag' => 'api/webview-tag' |
| 19 | 22 | } |