| @@ -4,16 +4,7 @@ module Docs · 3 unmodified lines |
| 4 | | 4 | |
| 5 | self.name = 'Elixir' | 5 | self.name = 'Elixir' |
| 6 | self.type = 'elixir' | 6 | self.type = 'elixir' |
| 7 | self.release = '1.3.4' | 7 | self.root_path = 'api-reference.html' |
| 8 | self.base_urls = ['http://elixir-lang.org/docs/stable/', 'http://elixir-lang.org/getting-started/'] | | |
| 9 | self.root_path = 'elixir/api-reference.html' | | |
| 10 | self.initial_paths = %w( | | |
| 11 | eex/EEx.html | | |
| 12 | ex_unit/ExUnit.html | | |
| 13 | iex/IEx.html | | |
| 14 | logger/Logger.html | | |
| 15 | mix/Mix.html | | |
| 16 | ) | | |
| 17 | self.links = { | 8 | self.links = { |
| 18 | home: 'http://elixir-lang.org/', | 9 | home: 'http://elixir-lang.org/', |
| 19 | code: 'https://github.com/elixir-lang/elixir' | 10 | code: 'https://github.com/elixir-lang/elixir' |
| @@ -28,12 +19,44 @@ module Docs · 8 unmodified lines |
| 28 | options[:root_title] = 'Elixir' | 19 | options[:root_title] = 'Elixir' |
| 29 | | 20 | |
| 30 | options[:attribution] = <<-HTML | 21 | options[:attribution] = <<-HTML |
| 31 | © 2012–2016 Plataformatec<br> | 22 | © 2012–2017 Plataformatec<br> |
| 32 | Licensed under the Apache License, Version 2.0. | 23 | Licensed under the Apache License, Version 2.0. |
| 33 | HTML | 24 | HTML |
| 34 | | 25 | |
| 35 | def initial_urls | 26 | def initial_urls |
| 36 | super.tap { |urls| urls.last << 'introduction.html' } | 27 | [ "https://hexdocs.pm/elixir/#{self.class.release}/api-reference.html", |
| | 28 | "https://hexdocs.pm/eex/#{self.class.release}/EEx.html", |
| | 29 | "https://hexdocs.pm/ex_unit/#{self.class.release}/ExUnit.html", |
| | 30 | "https://hexdocs.pm/iex/#{self.class.release}/IEx.html", |
| | 31 | "https://hexdocs.pm/logger/#{self.class.release}/Logger.html", |
| | 32 | "https://hexdocs.pm/mix/#{self.class.release}/Mix.html", |
| | 33 | "http://elixir-lang.org/getting-started/introduction.html" ] |
| | 34 | end |
| | 35 | |
| | 36 | version '1.4' do |
| | 37 | self.release = '1.4.0' |
| | 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 | 'http://elixir-lang.org/getting-started/' |
| | 46 | ] |
| | 47 | end |
| | 48 | |
| | 49 | version '1.3' do |
| | 50 | self.release = '1.3.3' |
| | 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 | 'http://elixir-lang.org/getting-started/' |
| | 59 | ] |
| 37 | end | 60 | end |
| 38 | end | 61 | end |
| 39 | end | 62 | end |