[devdocsgjs/main: 1242/1867] codeceptjs: update to 3.0.2
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1242/1867] codeceptjs: update to 3.0.2
- Date: Fri, 19 Nov 2021 23:47:50 +0000 (UTC)
commit 23b43785825180909de7fcf9ab45a6f4915c6793
Author: samfundev <samdinner hotmail com>
Date: Wed Nov 18 22:14:12 2020 -0500
codeceptjs: update to 3.0.2
lib/docs/filters/codeceptjs/clean_html.rb | 4 ++--
lib/docs/filters/codeceptjs/entries.rb | 2 +-
lib/docs/scrapers/codeceptjs.rb | 10 +++++++++-
public/icons/docs/codeceptjs/16.png | Bin 834 -> 914 bytes
public/icons/docs/codeceptjs/16 2x png | Bin 2147 -> 2092 bytes
public/icons/docs/codeceptjs/SOURCE | 2 +-
6 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/lib/docs/filters/codeceptjs/clean_html.rb b/lib/docs/filters/codeceptjs/clean_html.rb
index 0a574027..20ff1863 100644
--- a/lib/docs/filters/codeceptjs/clean_html.rb
+++ b/lib/docs/filters/codeceptjs/clean_html.rb
@@ -7,9 +7,9 @@ module Docs
return doc
end
- @doc = doc.at_css('div.reference div[role=main]')
+ @doc = doc.at_css('article div.content__default')
- css('hr').remove
+ css('hr, a.header-anchor').remove
unless at_css('h1')
at_css('h2').name = 'h1'
diff --git a/lib/docs/filters/codeceptjs/entries.rb b/lib/docs/filters/codeceptjs/entries.rb
index 9411cac6..3503df3d 100644
--- a/lib/docs/filters/codeceptjs/entries.rb
+++ b/lib/docs/filters/codeceptjs/entries.rb
@@ -2,7 +2,7 @@ module Docs
class Codeceptjs
class EntriesFilter < Docs::EntriesFilter
def get_name
- at_css('h1').content
+ at_css('h1').content.strip
end
def get_type
diff --git a/lib/docs/scrapers/codeceptjs.rb b/lib/docs/scrapers/codeceptjs.rb
index 34d9b855..f71a8b76 100644
--- a/lib/docs/scrapers/codeceptjs.rb
+++ b/lib/docs/scrapers/codeceptjs.rb
@@ -3,7 +3,7 @@ module Docs
self.name = 'CodeceptJS'
self.type = 'simple'
self.root_path = 'index.html'
- self.release = '1.4.4'
+ self.release = '3.0.2'
self.base_url = 'https://codecept.io/'
self.links = {
home: 'https://codecept.io/',
@@ -17,6 +17,14 @@ module Docs
options[:skip_links] = ->(filter) { !filter.root_page? }
options[:skip_patterns] = [/changelog/, /quickstart\z/]
+ options[:fix_urls] = -> (url) do
+ url.sub! %r{\.html\z}, ''
+ url.sub! %r{custom-helpers\z}, 'helpers'
+ url
+ end
+
+ options[:trailing_slash] = true
+
options[:attribution] = <<-HTML
© 2015 DavertMik <davert codegyre com> (http://codegyre.com)<br>
Licensed under the MIT License.
diff --git a/public/icons/docs/codeceptjs/16.png b/public/icons/docs/codeceptjs/16.png
index fb01c25b..b50a546c 100644
Binary files a/public/icons/docs/codeceptjs/16.png and b/public/icons/docs/codeceptjs/16.png differ
diff --git a/public/icons/docs/codeceptjs/16 2x png b/public/icons/docs/codeceptjs/16 2x png
index 6e7db2f7..9ffb9511 100644
Binary files a/public/icons/docs/codeceptjs/16 2x png and b/public/icons/docs/codeceptjs/16 2x png differ
diff --git a/public/icons/docs/codeceptjs/SOURCE b/public/icons/docs/codeceptjs/SOURCE
index c7e6d443..5c1af619 100644
--- a/public/icons/docs/codeceptjs/SOURCE
+++ b/public/icons/docs/codeceptjs/SOURCE
@@ -1 +1 @@
-http://codecept.io/images/cjs-base.png
+https://github.com/codeceptjs/website/blob/a4e7e9a8ebe56db7ed3783cb1f1d8d26a6c87b43/docs/.vuepress/public/logo.svg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]