Skip to content

Commit 019f8e1

Browse files
authored
Merge pull request #968 from gonglexin/elixir-1.8
Update Elixir documentation (1.8.1 & 1.7.4)
2 parents 45a7493 + d5bcd6f commit 019f8e1

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

lib/docs/filters/elixir/clean_html.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def api
5757
node.parent.after(node)
5858
end
5959

60+
css('.signature').each do |node|
61+
non_text_children = node.xpath('node()[not(self::text())]')
62+
non_text_children.to_a.reverse.each { |child| node.parent.add_next_sibling(child) }
63+
end
64+
6065
css('pre').each do |node|
6166
node['data-language'] = 'elixir'
6267
node.content = node.content

lib/docs/scrapers/elixir.rb

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

36+
version '1.9' do
37+
self.release = '1.9.1'
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+
49+
version '1.8' do
50+
self.release = '1.8.2'
51+
self.base_urls = [
52+
"https://hexdocs.pm/elixir/#{release}/",
53+
"https://hexdocs.pm/eex/#{release}/",
54+
"https://hexdocs.pm/ex_unit/#{release}/",
55+
"https://hexdocs.pm/iex/#{release}/",
56+
"https://hexdocs.pm/logger/#{release}/",
57+
"https://hexdocs.pm/mix/#{release}/",
58+
'https://elixir-lang.org/getting-started/'
59+
]
60+
end
61+
3662
version '1.7' do
37-
self.release = '1.7.3'
63+
self.release = '1.7.4'
3864
self.base_urls = [
3965
"https://hexdocs.pm/elixir/#{release}/",
4066
"https://hexdocs.pm/eex/#{release}/",
@@ -47,7 +73,7 @@ def initial_urls
4773
end
4874

4975
version '1.6' do
50-
self.release = '1.6.5'
76+
self.release = '1.6.6'
5177
self.base_urls = [
5278
"https://hexdocs.pm/elixir/#{release}/",
5379
"https://hexdocs.pm/eex/#{release}/",

0 commit comments

Comments
 (0)