[devdocsgjs/main: 1764/1867] Update Electron documentation (13.1.7)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1764/1867] Update Electron documentation (13.1.7)
- Date: Fri, 19 Nov 2021 23:48:18 +0000 (UTC)
commit 0bb5d3e4a98f95da508166c6a9531c14a0ead976
Author: Enoc <brianhernandez222 hotmail com>
Date: Fri Aug 6 18:36:17 2021 -0600
Update Electron documentation (13.1.7)
lib/docs/filters/electron/entries.rb | 3 ++-
lib/docs/scrapers/electron.rb | 7 +++++--
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/lib/docs/filters/electron/entries.rb b/lib/docs/filters/electron/entries.rb
index e6b5540c..575ef12b 100644
--- a/lib/docs/filters/electron/entries.rb
+++ b/lib/docs/filters/electron/entries.rb
@@ -3,6 +3,7 @@ module Docs
class EntriesFilter < Docs::EntriesFilter
def get_name
return 'API' if subpath == '/api'
+ return 'Structures' if slug == 'api/structures'
name = at_css('h1, h2').content
name.remove! 'Class: '
@@ -14,7 +15,7 @@ module Docs
end
def get_type
- return 'API' if subpath == '/api'
+ return 'API' if subpath == '/api' || slug == 'api/structures'
if subpath.start_with?('/tutorial') || subpath.in?(%w(/glossary /faq))
'Guides'
diff --git a/lib/docs/scrapers/electron.rb b/lib/docs/scrapers/electron.rb
index da105f39..6cf32026 100644
--- a/lib/docs/scrapers/electron.rb
+++ b/lib/docs/scrapers/electron.rb
@@ -2,7 +2,7 @@ module Docs
class Electron < UrlScraper
self.type = 'simple'
self.base_url = 'https://www.electronjs.org/docs'
- self.release = '12.0.0'
+ self.release = '13.1.7'
self.links = {
home: 'https://www.electronjs.org/',
code: 'https://github.com/electron/electron'
@@ -13,7 +13,10 @@ module Docs
options[:trailing_slash] = false
options[:container] = 'main'
options[:skip] = %w(guides development tutorial versions all)
- options[:skip_patterns] = [/\/history\z/]
+ options[:skip_patterns] = [
+ /\/history\z/,
+ /\/latest/ # beta site
+ ]
options[:replace_paths] = {
'api/web-view-tag' => 'api/webview-tag'
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]