From ff29aa240c651f8992458e77c42fbc3d816d6fd4 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 19 Nov 2020 00:02:12 +0100 Subject: [PATCH] homebrew: update release 2.5.11 --- lib/docs/filters/homebrew/clean_html.rb | 1 + lib/docs/scrapers/homebrew.rb | 2 +- public/icons/docs/homebrew/SOURCE | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/homebrew/clean_html.rb b/lib/docs/filters/homebrew/clean_html.rb index 6a81a5c6..206a2455 100644 --- a/lib/docs/filters/homebrew/clean_html.rb +++ b/lib/docs/filters/homebrew/clean_html.rb @@ -11,6 +11,7 @@ module Docs css('div.highlighter-rouge').each do |node| lang = node['class'][/language-(\w+)/, 1] + lang = 'bash' if lang == 'sh' node['data-language'] = lang if lang node.content = node.content.strip node.name = 'pre' diff --git a/lib/docs/scrapers/homebrew.rb b/lib/docs/scrapers/homebrew.rb index 5743735f..4b9e3bd8 100644 --- a/lib/docs/scrapers/homebrew.rb +++ b/lib/docs/scrapers/homebrew.rb @@ -2,7 +2,7 @@ module Docs class Homebrew < UrlScraper self.name = 'Homebrew' self.type = 'simple' - self.release = '2.1.9' + self.release = '2.5.11' self.base_url = 'https://docs.brew.sh/' self.links = { home: 'https://brew.sh', diff --git a/public/icons/docs/homebrew/SOURCE b/public/icons/docs/homebrew/SOURCE index f7c36907..d7bf204c 100644 --- a/public/icons/docs/homebrew/SOURCE +++ b/public/icons/docs/homebrew/SOURCE @@ -1 +1 @@ -https://github.com/Homebrew/brew/tree/master/docs/img \ No newline at end of file +https://docs.brew.sh/assets/img/apple-touch-icon.png