@@ -4,35 +4,58 @@ class Elixir < UrlScraper
44
55 self . name = 'Elixir'
66 self . type = 'elixir'
7- self . root_path = 'api-reference .html'
7+ self . root_path = 'introduction .html'
88 self . links = {
99 home : 'https://elixir-lang.org/' ,
1010 code : 'https://github.com/elixir-lang/elixir'
1111 }
1212
1313 html_filters . push 'elixir/clean_html' , 'elixir/entries' , 'title'
1414
15- options [ :container ] = -> ( filter ) {
16- filter . current_url . path . start_with? ( '/getting-started' ) ? '#main' : '#content'
17- }
15+ options [ :container ] = '#content'
1816 options [ :title ] = false
1917 options [ :root_title ] = 'Elixir'
2018
2119 options [ :attribution ] = <<-HTML
22- © 2012 Plataformatec < br >
20+ © 2012-2024 The Elixir Team < br >
2321 Licensed under the Apache License, Version 2.0.
2422 HTML
2523
2624 def initial_urls
27- [ "https://hexdocs.pm/elixir/#{ self . class . release } /api-reference .html" ,
25+ [ "https://hexdocs.pm/elixir/#{ self . class . release } /introduction .html" ,
2826 "https://hexdocs.pm/eex/#{ self . class . release } /EEx.html" ,
2927 "https://hexdocs.pm/ex_unit/#{ self . class . release } /ExUnit.html" ,
3028 "https://hexdocs.pm/iex/#{ self . class . release } /IEx.html" ,
3129 "https://hexdocs.pm/logger/#{ self . class . release } /Logger.html" ,
32- "https://hexdocs.pm/mix/#{ self . class . release } /Mix.html" ,
33- "https://elixir-lang.org/getting-started/introduction.html" ]
30+ "https://hexdocs.pm/mix/#{ self . class . release } /Mix.html" ]
31+ end
32+
33+ version '1.17' do
34+ self . release = '1.17.2'
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+ ]
3443 end
3544
45+ version '1.16' do
46+ self . release = '1.16.3'
47+ self . base_urls = [
48+ "https://hexdocs.pm/elixir/#{ release } /" ,
49+ "https://hexdocs.pm/eex/#{ release } /" ,
50+ "https://hexdocs.pm/ex_unit/#{ release } /" ,
51+ "https://hexdocs.pm/iex/#{ release } /" ,
52+ "https://hexdocs.pm/logger/#{ release } /" ,
53+ "https://hexdocs.pm/mix/#{ release } /"
54+ ]
55+ end
56+
57+ # scraping of older versions is no longer supported!
58+
3659 version '1.15' do
3760 self . release = '1.15.4'
3861 self . base_urls = [
0 commit comments