Skip to content

Commit 38f4be0

Browse files
committed
Update Elixir documentation (1.18)
1 parent 79682e8 commit 38f4be0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

lib/docs/filters/elixir/clean_html.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def api
3434
node.name = 'h3'
3535
node['id'] = id
3636

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')
3840

3941
node.content = node.at_css('.signature').inner_text
4042
node << %(<a href="#{source_href}" class="source">Source</a>)

lib/docs/scrapers/elixir.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ def initial_urls
3030
"https://hexdocs.pm/mix/#{self.class.release}/Mix.html" ]
3131
end
3232

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+
3345
version '1.17' do
3446
self.release = '1.17.2'
3547
self.base_urls = [

0 commit comments

Comments
 (0)