Skip to content

Commit

Permalink
Merge pull request #2400 from breunigs/ex18
Browse files Browse the repository at this point in the history
Update Elixir documentation (1.18)
  • Loading branch information
simon04 authored Jan 11, 2025
2 parents 79682e8 + 38f4be0 commit aa16f83
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/docs/filters/elixir/clean_html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def api
node.name = 'h3'
node['id'] = id

source_href = node.at_css('a.icon-action[title="View Source"]').attr('href')
a = node.at_css('a.icon-action[title="View Source"]')
a ||= node.at_css('a.icon-action[aria-label="View Source"]')
source_href = a.attr('href')

node.content = node.at_css('.signature').inner_text
node << %(<a href="#{source_href}" class="source">Source</a>)
Expand Down
12 changes: 12 additions & 0 deletions lib/docs/scrapers/elixir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ def initial_urls
"https://hexdocs.pm/mix/#{self.class.release}/Mix.html" ]
end

version '1.18' do
self.release = '1.18.1'
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}/"
]
end

version '1.17' do
self.release = '1.17.2'
self.base_urls = [
Expand Down

0 comments on commit aa16f83

Please sign in to comment.