From 23b43785825180909de7fcf9ab45a6f4915c6793 Mon Sep 17 00:00:00 2001 From: samfundev Date: Wed, 18 Nov 2020 22:14:12 -0500 Subject: [PATCH] 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)
Licensed under the MIT License. diff --git a/public/icons/docs/codeceptjs/16.png b/public/icons/docs/codeceptjs/16.png index fb01c25b7c1020c704d55b75a06368cd9877092e..b50a546c0f94d6bce658d845e041b650adbed37a 100644 GIT binary patch delta 892 zcmV-?1B3j+29gJmBYyx1a7bBm00029000290lCwP1ONa48FWQhbW?9;ba!ELWdL_~ zcP?peYja~^aAhuUa%Y?FJQ@H110P95K~y-6U6WmGlXVovfB*m6_U)(r+?cI}jeX(J zO>spAA;OJ9;td)J7)?x!cjApo;)MyJdZpeF@4S!%HHL_ZXn&LmintjZTVSqeU~}2J zy0x8a*Xh>w?Z^A~V%gX{S0^XWbMl!t@dr%T+!%z zwEM#Yz1{JRc(K;}_Q&9!OlJCARXN+dE(f~R#HSa~ghBlC934>~M|Uqx3{NdTdHl$! z={24P&_8(X<$s~u$qQYPdc)q(9xy@rn`0&-y zpD)kIRQm2aT~Vv8H88_MrESwc?q&mIa?2d-apANS)_>=ZY^%$MwwmWpoH(P)#iio@ z9pNeflUXa%i;;EU*o=m5)94Iaxj5F$*NGN#r62%%+Gj?S-PhA|b5^Z$hvHc4`bErb2r+lbSNl)F|Yl`VyR*Z=gO5Hxy9xOIh5g|5g7K0UX|-sQ63?_7ziacN*lNuKj3q4VMnAMuxM-|jwUs}9I}yK62FSN zcJ$+SUr)h?G~O#EPQL%a3z0ze6`K@03q|3X$;*Y3p@tBAcJ}m}Uw}|+=>GtUq&461 SGDxKW0000$MH6C@3haP9FhGnPqzo0CTpUe{S*Zm5U_ z7&{^{(BFpr%}%(jUHCe;65X;2{Fo(1MMVnajDv;V1b@Ir;cz(}-{t155x1V*;Mz_IdE0SD~;~g2t{I_F`)*6Vbvz1i2hc4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