Skip to content

Commit f4a17d0

Browse files
committed
Update Elixir documentation (1.15.4)
1 parent f0e52f8 commit f4a17d0

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

lib/docs/filters/elixir/clean_html.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def api
5454
node.name = 'h3'
5555
node['id'] = id
5656

57-
source_href = node.at_css('.view-source').attr('href')
57+
source_href = node.at_css('a.icon-action[title="View Source"]').attr('href')
5858

5959
node.content = node.at_css('.signature').inner_text
6060
node << %(<a href="#{source_href}" class="source">Source</a>)
@@ -69,6 +69,8 @@ def api
6969
node['data-language'] = 'elixir'
7070
node.content = node.content
7171
end
72+
73+
css('.icon-action').remove
7274
end
7375
end
7476
end

lib/docs/scrapers/elixir.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ def initial_urls
3333
"https://elixir-lang.org/getting-started/introduction.html" ]
3434
end
3535

36+
version '1.15' do
37+
self.release = '1.15.4'
38+
self.base_urls = [
39+
"https://hexdocs.pm/elixir/#{release}/",
40+
"https://hexdocs.pm/eex/#{release}/",
41+
"https://hexdocs.pm/ex_unit/#{release}/",
42+
"https://hexdocs.pm/iex/#{release}/",
43+
"https://hexdocs.pm/logger/#{release}/",
44+
"https://hexdocs.pm/mix/#{release}/",
45+
'https://elixir-lang.org/getting-started/'
46+
]
47+
end
48+
3649
version '1.14' do
3750
self.release = '1.14.1'
3851
self.base_urls = [

0 commit comments

Comments
 (0)