Update Flow docs

clean up homepage, 0.117
This commit is contained in:
Jed Fox 2020-01-29 11:49:15 -05:00
parent 88b62616e1
commit 18958f4cd2
2 changed files with 5 additions and 2 deletions

View file

@ -14,7 +14,10 @@ module Docs
end
css('a.card').each do |node|
node.at_css('.text-primary').replace %(<br><a href="#{node['href']}">Read more</a>)
title = node.at_css('.card-title')
title.inner_html = %(<a href="#{node['href']}">#{title.inner_html}</a>)
node.at_css('.text-primary').remove
node.css('[class]').each { |node| node.delete 'class' }
node.before(node.children).remove
end
end

View file

@ -1,7 +1,7 @@
module Docs
class Flow < UrlScraper
self.type = 'simple'
self.release = '0.116.0'
self.release = '0.117.0'
self.base_url = 'https://flow.org/en/docs/'
self.links = {
home: 'https://flow.org/',