From be0c3a95b66a2704e507a05624882f4d3bc0dad0 Mon Sep 17 00:00:00 2001 From: Rodrigo Dlugokenski Date: Wed, 13 Jul 2022 15:27:08 -0300 Subject: [PATCH 1/3] Hint for rbenv and asdf --- .tool-versions | 1 + 1 file changed, 1 insertion(+) create mode 100644 .tool-versions diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..1ade7321 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +ruby 2.7.4 From 4578ec01f1fcf7775b03d62e116bacfec39557ad Mon Sep 17 00:00:00 2001 From: Rodrigo Dlugokenski Date: Wed, 13 Jul 2022 15:27:50 -0300 Subject: [PATCH 2/3] Elixir/Phoenix: Fix settings button appearing on header --- lib/docs/filters/elixir/clean_html.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/docs/filters/elixir/clean_html.rb b/lib/docs/filters/elixir/clean_html.rb index e357f3df..85c5b729 100644 --- a/lib/docs/filters/elixir/clean_html.rb +++ b/lib/docs/filters/elixir/clean_html.rb @@ -27,6 +27,8 @@ module Docs def api css('.hover-link', 'footer', ':not(.detail-header) > .view-source').remove + css('h1 .settings').remove + css('.summary').each do |node| node.name = 'dl' end From b46e9580c84b0f6b29c3431a306c67c1f50d748c Mon Sep 17 00:00:00 2001 From: Rodrigo Dlugokenski Date: Wed, 13 Jul 2022 15:29:56 -0300 Subject: [PATCH 3/3] Phoenix: Bump ver, ignore old vers & JS specific docs --- lib/docs/scrapers/phoenix.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/phoenix.rb b/lib/docs/scrapers/phoenix.rb index 1aaba7ce..d115ef05 100644 --- a/lib/docs/scrapers/phoenix.rb +++ b/lib/docs/scrapers/phoenix.rb @@ -1,7 +1,7 @@ module Docs class Phoenix < UrlScraper self.type = 'elixir' - self.release = '1.5.6' + self.release = '1.6.11' self.base_url = 'https://hexdocs.pm/' self.root_path = 'phoenix/Phoenix.html' self.initial_paths = %w( @@ -20,7 +20,7 @@ module Docs options[:container] = '#content' - options[:skip_patterns] = [/extra-api-reference/] + options[:skip_patterns] = [/extra-api-reference/, /js/, /\d+\.\d+\.\d+/] options[:only_patterns] = [ /\Aphoenix\//, /\Aecto\//,