History

Update Elixir documentation (1.18)

Stefan Breunig committed 1 year ago

Commit 38f4be01 parent 79682e82 files · +15 −1Browse files

Unified · Split

2 files
  1. lib/docs/filters/elixir/clean_html.rb +3 −1
  2. lib/docs/scrapers/elixir.rb +12 −0
lib/docs/filters/elixir/clean_html.rb+3−1
@@ -34,7 +34,9 @@ module Docs · 33 unmodified lines
34 node.name = 'h3'34 node.name = 'h3'
35 node['id'] = id35 node['id'] = id
36 36
37 source_href = node.at_css('a.icon-action[title="View Source"]').attr('href')37 a = node.at_css('a.icon-action[title="View Source"]')
38 a ||= node.at_css('a.icon-action[aria-label="View Source"]')
39 source_href = a.attr('href')
38 40
39 node.content = node.at_css('.signature').inner_text41 node.content = node.at_css('.signature').inner_text
40 node << %(<a href="#{source_href}" class="source">Source</a>)42 node << %(<a href="#{source_href}" class="source">Source</a>)
lib/docs/scrapers/elixir.rb+12−0
@@ -30,6 +30,18 @@ module Docs · 29 unmodified lines
30 "https://hexdocs.pm/mix/#{self.class.release}/Mix.html" ]30 "https://hexdocs.pm/mix/#{self.class.release}/Mix.html" ]
31 end31 end
32 32
33 version '1.18' do
34 self.release = '1.18.1'
35 self.base_urls = [
36 "https://hexdocs.pm/elixir/#{release}/",
37 "https://hexdocs.pm/eex/#{release}/",
38 "https://hexdocs.pm/ex_unit/#{release}/",
39 "https://hexdocs.pm/iex/#{release}/",
40 "https://hexdocs.pm/logger/#{release}/",
41 "https://hexdocs.pm/mix/#{release}/"
42 ]
43 end
44
33 version '1.17' do45 version '1.17' do
34 self.release = '1.17.2'46 self.release = '1.17.2'
35 self.base_urls = [47 self.base_urls = [