From 10e2893f9f116180a97c03a7c005f00a6a4910f0 Mon Sep 17 00:00:00 2001 From: Andrew Kraut Date: Wed, 4 May 2022 15:43:09 -0700 Subject: [PATCH 1/2] Add Elixir v1.13.4 --- lib/docs/scrapers/elixir.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/docs/scrapers/elixir.rb b/lib/docs/scrapers/elixir.rb index 26fd00e3..3b423264 100644 --- a/lib/docs/scrapers/elixir.rb +++ b/lib/docs/scrapers/elixir.rb @@ -33,6 +33,19 @@ module Docs "https://elixir-lang.org/getting-started/introduction.html" ] end + version '1.13' do + self.release = '1.13.4' + self.base_urls = [ + "https://hexdocs.pm/elixir/#{release}/", + "https://hexdocs.pm/eex/#{release}/", + "https://hexdocs.pm/ex_unit/#{release}/", + "https://hexdocs.pm/iex/#{release}/", + "https://hexdocs.pm/logger/#{release}/", + "https://hexdocs.pm/mix/#{release}/", + 'https://elixir-lang.org/getting-started/' + ] + end + version '1.12' do self.release = '1.12.0' self.base_urls = [ From c3bce85947b2c624f08fbb658cd7e0e0f121f6f4 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Mon, 16 May 2022 20:28:50 +0200 Subject: [PATCH 2/2] elixir: fix get_name --- lib/docs/filters/elixir/entries.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/filters/elixir/entries.rb b/lib/docs/filters/elixir/entries.rb index 91caa237..182191fd 100644 --- a/lib/docs/filters/elixir/entries.rb +++ b/lib/docs/filters/elixir/entries.rb @@ -5,7 +5,7 @@ module Docs css('h1 .app-vsn').remove if current_url.path.start_with?('/getting-started') - at_css('h1').content.strip.remove(/\.\z/) + (at_css('h1 > span') or at_css('h1')).content.strip.remove(/\.\z/) else name = at_css('h1').content.strip name = name.split(' ').first unless name.start_with?('mix ') # ecto