diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index 9a1389b7..91c50812 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -221,7 +221,7 @@ credits = [
'https://raw.githubusercontent.com/emberjs/ember.js/master/LICENSE'
], [
'Elixir',
- '2012-2016 Plataformatec',
+ '2012-2017 Plataformatec',
'Apache',
'https://raw.githubusercontent.com/elixir-lang/elixir/master/LICENSE'
], [
diff --git a/lib/docs/filters/elixir/clean_html.rb b/lib/docs/filters/elixir/clean_html.rb
index bd05bb17..6e2bd366 100644
--- a/lib/docs/filters/elixir/clean_html.rb
+++ b/lib/docs/filters/elixir/clean_html.rb
@@ -37,10 +37,10 @@ module Docs
end
css('.details-list').each do |list|
- type = list['id'].remove(/s\z/)
+ type = list['id'].remove(/s\z/) if list['id']
list.css('.detail-header').each do |node|
node.name = 'h3'
- node['class'] += " #{type}"
+ node['class'] += " #{type}" if type
end
end
diff --git a/lib/docs/scrapers/elixir.rb b/lib/docs/scrapers/elixir.rb
index 2b323bf4..f6810940 100644
--- a/lib/docs/scrapers/elixir.rb
+++ b/lib/docs/scrapers/elixir.rb
@@ -4,16 +4,7 @@ module Docs
self.name = 'Elixir'
self.type = 'elixir'
- self.release = '1.3.4'
- self.base_urls = ['http://elixir-lang.org/docs/stable/', 'http://elixir-lang.org/getting-started/']
- self.root_path = 'elixir/api-reference.html'
- self.initial_paths = %w(
- eex/EEx.html
- ex_unit/ExUnit.html
- iex/IEx.html
- logger/Logger.html
- mix/Mix.html
- )
+ self.root_path = 'api-reference.html'
self.links = {
home: 'http://elixir-lang.org/',
code: 'https://github.com/elixir-lang/elixir'
@@ -28,12 +19,44 @@ module Docs
options[:root_title] = 'Elixir'
options[:attribution] = <<-HTML
- © 2012–2016 Plataformatec
+ © 2012–2017 Plataformatec
Licensed under the Apache License, Version 2.0.
HTML
def initial_urls
- super.tap { |urls| urls.last << 'introduction.html' }
+ [ "https://hexdocs.pm/elixir/#{self.class.release}/api-reference.html",
+ "https://hexdocs.pm/eex/#{self.class.release}/EEx.html",
+ "https://hexdocs.pm/ex_unit/#{self.class.release}/ExUnit.html",
+ "https://hexdocs.pm/iex/#{self.class.release}/IEx.html",
+ "https://hexdocs.pm/logger/#{self.class.release}/Logger.html",
+ "https://hexdocs.pm/mix/#{self.class.release}/Mix.html",
+ "http://elixir-lang.org/getting-started/introduction.html" ]
+ end
+
+ version '1.4' do
+ self.release = '1.4.0'
+ 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}/",
+ 'http://elixir-lang.org/getting-started/'
+ ]
+ end
+
+ version '1.3' do
+ self.release = '1.3.3'
+ 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}/",
+ 'http://elixir-lang.org/getting-started/'
+ ]
end
end
end