Skip to content

Commit 18958f4

Browse files
committed
Update Flow docs
clean up homepage, 0.117
1 parent 88b6261 commit 18958f4

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/docs/filters/flow/clean_html.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ def root
1414
end
1515

1616
css('a.card').each do |node|
17-
node.at_css('.text-primary').replace %(<br><a href="#{node['href']}">Read more</a>)
17+
title = node.at_css('.card-title')
18+
title.inner_html = %(<a href="#{node['href']}">#{title.inner_html}</a>)
19+
node.at_css('.text-primary').remove
20+
node.css('[class]').each { |node| node.delete 'class' }
1821
node.before(node.children).remove
1922
end
2023
end

lib/docs/scrapers/flow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Docs
22
class Flow < UrlScraper
33
self.type = 'simple'
4-
self.release = '0.116.0'
4+
self.release = '0.117.0'
55
self.base_url = 'https://flow.org/en/docs/'
66
self.links = {
77
home: 'https://flow.org/',

0 commit comments

Comments
 (0)