From f4a17d085fdc80e7e5524264dcd9e80101aadc04 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 2 Aug 2023 21:55:42 +0200 Subject: [PATCH] Update Elixir documentation (1.15.4) --- lib/docs/filters/elixir/clean_html.rb | 4 +++- lib/docs/scrapers/elixir.rb | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/elixir/clean_html.rb b/lib/docs/filters/elixir/clean_html.rb index 85c5b729..c2c31d46 100644 --- a/lib/docs/filters/elixir/clean_html.rb +++ b/lib/docs/filters/elixir/clean_html.rb @@ -54,7 +54,7 @@ module Docs node.name = 'h3' node['id'] = id - source_href = node.at_css('.view-source').attr('href') + source_href = node.at_css('a.icon-action[title="View Source"]').attr('href') node.content = node.at_css('.signature').inner_text node << %(Source) @@ -69,6 +69,8 @@ module Docs node['data-language'] = 'elixir' node.content = node.content end + + css('.icon-action').remove end end end diff --git a/lib/docs/scrapers/elixir.rb b/lib/docs/scrapers/elixir.rb index c7e66585..75bee5e9 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.15' do + self.release = '1.15.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.14' do self.release = '1.14.1' self.base_urls = [